mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 09:09:37 +08:00
1
This commit is contained in:
parent
c7ae1d8054
commit
3fa8b9abeb
@ -204,6 +204,7 @@ export default {
|
|||||||
add() {
|
add() {
|
||||||
this.form.resetFields()
|
this.form.resetFields()
|
||||||
this.edit({ id: 0 })
|
this.edit({ id: 0 })
|
||||||
|
this.imageUrl = null
|
||||||
},
|
},
|
||||||
edit(record) {
|
edit(record) {
|
||||||
this.mdl = Object.assign(record)
|
this.mdl = Object.assign(record)
|
||||||
@ -211,7 +212,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(this.mdl, 'id', 'userId', 'customerId', 'intervieweeId', 'name', 'phone', 'joinTime', 'visitTime', 'leaveTime', 'visitContent', 'cardType', 'cardNo', 'status', 'createBy', 'createTime', 'updateBy', 'updateTime', 'version', 'deleteFlag', 'photo'))
|
this.form.setFieldsValue(pick(this.mdl, 'id', 'userId', 'customerId', 'intervieweeId', 'name', 'phone', 'joinTime', 'visitTime', 'leaveTime', 'visitContent', 'cardType', 'cardNo', 'status', 'createBy', 'createTime', 'updateBy', 'updateTime', 'version', 'deleteFlag', 'photo'))
|
||||||
})
|
})
|
||||||
if(this.mdl.photo){
|
if (this.mdl.photo) {
|
||||||
this.imageUrl = process.env.VUE_APP_API_BASE_URL + this.mdl.photo
|
this.imageUrl = process.env.VUE_APP_API_BASE_URL + this.mdl.photo
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user