Commit 73d8e3d0 authored by 沈翠玲's avatar 沈翠玲

修改bug

parent 9e2fefe9
...@@ -352,8 +352,11 @@ export default { ...@@ -352,8 +352,11 @@ export default {
methods: { methods: {
templateChange(){ templateChange(){
const item = this.templateOptions.find(v => v.id === this.form.templateId) const item = this.templateOptions.find(v => v.id === this.form.templateId)
console.log('item', item)
if (item) { if (item) {
this.form.filePath = item.filePath || '' this.form.filePath = item.filePath || ''
} else {
this.form.filePath = ''
} }
}, },
onItemSelected(obj) { onItemSelected(obj) {
...@@ -418,7 +421,7 @@ export default { ...@@ -418,7 +421,7 @@ export default {
templateCode: null, templateCode: null,
templateId: null, templateId: null,
createBy: null, createBy: null,
filePath: null filePath: ''
} }
this.resetForm('form') this.resetForm('form')
}, },
...@@ -464,7 +467,9 @@ export default { ...@@ -464,7 +467,9 @@ export default {
if(!row || !row.id) row = this.selectedRows[0] if(!row || !row.id) row = this.selectedRows[0]
this.reset() this.reset()
this.form = row this.form = row
this.$nextTick(() => {
this.templateChange() this.templateChange()
})
this.open = true this.open = true
this.title = '修改客户产品标签模板对照表' this.title = '修改客户产品标签模板对照表'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment