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

修改bug

parent 9e2fefe9
......@@ -352,8 +352,11 @@ export default {
methods: {
templateChange(){
const item = this.templateOptions.find(v => v.id === this.form.templateId)
console.log('item', item)
if (item) {
this.form.filePath = item.filePath || ''
} else {
this.form.filePath = ''
}
},
onItemSelected(obj) {
......@@ -418,7 +421,7 @@ export default {
templateCode: null,
templateId: null,
createBy: null,
filePath: null
filePath: ''
}
this.resetForm('form')
},
......@@ -464,7 +467,9 @@ export default {
if(!row || !row.id) row = this.selectedRows[0]
this.reset()
this.form = row
this.$nextTick(() => {
this.templateChange()
})
this.open = true
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