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