mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 14:59:36 +08:00
1111
This commit is contained in:
parent
48c28a9b41
commit
f8fa62c8ce
@ -19,12 +19,14 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='派单员'>
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='派单员'>
|
||||||
<a-select v-decorator="['staffId', {rules: [{ required: true, message: '派单员' }]}]">
|
<a-select v-decorator="['staffId', {rules: [{ required: true, message: '派单员' }]}]">
|
||||||
<a-select-option v-for='item in staffLists' :key='item.id'>{{ item.username }}--{{ item.mobile }}</a-select-option>
|
<a-select-option v-for='item in staffLists' :key='item.id'>{{ item.username }}--{{ item.mobile }}
|
||||||
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='维修员'>
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='维修员'>
|
||||||
<a-select mode="multiple" v-decorator="['workerId', {rules: [{ required: true, message: '维修员' }]}]">
|
<a-select mode='multiple' v-decorator="['workerId', {rules: [{ required: true, message: '维修员' }]}]">
|
||||||
<a-select-option v-for='item in staffLists' :key='item.id'>{{ item.username }}--{{ item.mobile }}</a-select-option>
|
<a-select-option v-for='item in staffLists' :key='item.id'>{{ item.username }}--{{ item.mobile }}
|
||||||
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='备注'>
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='备注'>
|
||||||
@ -62,23 +64,22 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.selectUserListByType()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectUserListByType (){
|
selectUserListByType() {
|
||||||
selectUserListByType().then(res =>{
|
selectUserListByType().then(res => {
|
||||||
this.staffLists =res.data
|
this.staffLists = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
|
|
||||||
this.form.resetFields()
|
this.form.resetFields()
|
||||||
this.edit({ id: 0 })
|
this.edit({ id: 0 })
|
||||||
},
|
},
|
||||||
edit(record) {
|
edit(record) {
|
||||||
this.selectUserListByType()
|
|
||||||
|
|
||||||
this.mdl = Object.assign(record)
|
this.mdl = Object.assign(record)
|
||||||
console.log(this.mdl)
|
console.log('edit', this.mdl)
|
||||||
|
console.log('this.staffLists ' , this.staffLists )
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
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', 'staffLists', 'remark', 'deleteFlag', 'createBy', 'createTime', 'updateBy', 'updateTime', 'tenantId', 'parkId'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user