mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 04:29:36 +08:00
描述:企业编辑员工
This commit is contained in:
parent
8dac2e7560
commit
96f2c139fc
@ -12,7 +12,7 @@
|
|||||||
<a-input v-decorator="['id']"/>
|
<a-input v-decorator="['id']"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item style="display:none">
|
<a-form-item style="display:none">
|
||||||
<a-input v-decorator="['customerId']" />
|
<a-input v-decorator="['icsCustomerId']" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='姓名'>
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='姓名'>
|
||||||
<a-input placeholder='姓名' v-decorator="['name', {rules: [{required: true, message: '请输入姓名'}]}]" />
|
<a-input placeholder='姓名' v-decorator="['name', {rules: [{required: true, message: '请输入姓名'}]}]" />
|
||||||
@ -232,6 +232,7 @@ export default {
|
|||||||
this.edit(contactInfo)
|
this.edit(contactInfo)
|
||||||
},
|
},
|
||||||
edit (record) {
|
edit (record) {
|
||||||
|
record.icsCustomerId = this.$route.query.customerId
|
||||||
this.mdl = Object.assign(record)
|
this.mdl = Object.assign(record)
|
||||||
console.log(this.mdl.photo)
|
console.log(this.mdl.photo)
|
||||||
if (this.mdl.photo) {
|
if (this.mdl.photo) {
|
||||||
@ -242,7 +243,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(this.mdl, 'id','name','username','mobile','gender',
|
this.form.setFieldsValue(pick(this.mdl, 'id','icsCustomerId','name','username','mobile','gender',
|
||||||
'photo','avatar','cardNo','address','email','degree','urgent', 'customerId', 'remark'))
|
'photo','avatar','cardNo','address','email','degree','urgent', 'customerId', 'remark'))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user