Merge branch 'shoot-hand-html' of gitee.com:elegant_wings/dbd-meeting-html into shoot-hand-html

This commit is contained in:
SelfRidicule 2024-08-30 19:02:59 +08:00
commit e4aefbe663
2 changed files with 26 additions and 19 deletions

View File

@ -9,40 +9,44 @@
>
<a-form :form="form">
<a-form-item style="display:none">
<a-input v-decorator="['id']"/>
<a-input v-decorator="['id']" />
</a-form-item>
<a-form-item style="display:none">
<a-input v-decorator="['version']"/>
<a-input v-decorator="['version']" />
</a-form-item>
<a-form-item style="display:none">
<a-input v-decorator="['addressId']"/>
<a-input v-decorator="['addressId']" />
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="楼层">
<a-input placeholder="楼层" v-decorator="['name']"/>
<a-input placeholder="楼层" v-decorator="['name']" />
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="网格长">
<a-select show-search v-decorator="['adminId', {rules: [{ required: true, message: '网格长' }]}]" optionFilterProp="label"
<a-select show-search v-decorator="['adminId', {rules: [{ required: true, message: '网格长' }]}]"
optionFilterProp="label"
>
<a-select-option v-for="item in staffLists" :key="item.id" :label="item.mobile">{{ item.username }}--{{ item.mobile}}</a-select-option>
<a-select-option v-for="item in staffLists" :key="item.id" :label="item.mobile">{{ item.username
}}--{{ item.mobile }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="序号">
<a-input placeholder="编码" v-decorator="['bm']" />
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="备注">
<a-input placeholder="备注" v-decorator="['remark']"/>
<a-input placeholder="备注" v-decorator="['remark']" />
</a-form-item>
</a-form>
</a-modal>
</template>
<script>
import {saveRepairRoom,selectDispatcher} from '@/api/admin/repair/repairAddressFloor'
import pick from 'lodash.pick'
import { saveRepairRoom, selectDispatcher } from '@/api/admin/repair/repairAddressFloor'
import pick from 'lodash.pick'
export default {
export default {
name: 'RepairRoomModal',
props: {
},
components: {
},
props: {},
components: {},
data () {
return {
visible: false,
@ -67,10 +71,10 @@
this.staffList()
},
methods: {
staffList (){
staffList () {
// id
selectDispatcher().then(res =>{
this.staffLists =res.data
selectDispatcher().then(res => {
this.staffLists = res.data
})
},
show (addressId) {
@ -87,7 +91,7 @@
this.mdl = Object.assign({}, record)
this.visible = true
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.mdl, 'id', 'name', 'remark', 'adminId', 'deleteFlag', 'createBy', 'createTime', 'updateBy', 'updateTime', 'tenantId', 'parkId', 'addressId'))
this.form.setFieldsValue(pick(this.mdl, 'id', 'name', 'remark', 'adminId', 'deleteFlag', 'bm', 'createBy', 'createTime', 'updateBy', 'updateTime', 'tenantId', 'parkId', 'addressId'))
})
},
handleSubmit (e) {

View File

@ -17,6 +17,9 @@
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="故障类型">
<a-input placeholder="请输入故障类型" v-decorator="['name']" />
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="预计完成时间">
<a-input-number placeholder="预计完成时间" v-decorator="['days']" />
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="派单员">
<a-select show-search v-decorator="['staffId', {rules: [{ required: true, message: '派单员' }]}]" optionFilterProp="label"
>
@ -91,7 +94,7 @@ export default {
console.log(this.mdl)
this.visible = true
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.mdl, 'id', 'name', 'staffId', 'workerId', 'staffLists', 'remark', 'deleteFlag', 'createBy', 'createTime', 'updateBy', 'updateTime', 'tenantId', 'parkId'))
this.form.setFieldsValue(pick(this.mdl, 'id', 'name', 'staffId', 'workerId','days', 'staffLists', 'remark', 'deleteFlag', 'createBy', 'createTime', 'updateBy', 'updateTime', 'tenantId', 'parkId'))
})
},
handleSubmit (e) {