This commit is contained in:
SelfRidicule 2024-03-22 17:10:47 +08:00
parent c7ae1d8054
commit 3fa8b9abeb

View File

@ -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
} }
}, },