|
@@ -327,10 +327,16 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (data.yuan_she_bei_bian) {
|
|
if (data.yuan_she_bei_bian) {
|
|
|
- data.yuan_she_bei_bian = String(data.yuan_she_bei_bian).replace(/\s/g, '')
|
|
|
|
|
|
|
+ data.yuan_she_bei_bian = String(data.yuan_she_bei_bian).replace(
|
|
|
|
|
+ /\s/g,
|
|
|
|
|
+ ''
|
|
|
|
|
+ )
|
|
|
}
|
|
}
|
|
|
if (data.she_bei_ming_chen) {
|
|
if (data.she_bei_ming_chen) {
|
|
|
- data.she_bei_ming_chen = String(data.she_bei_ming_chen).replace(/\s/g, '')
|
|
|
|
|
|
|
+ data.she_bei_ming_chen = String(data.she_bei_ming_chen).replace(
|
|
|
|
|
+ /\s/g,
|
|
|
|
|
+ ''
|
|
|
|
|
+ )
|
|
|
}
|
|
}
|
|
|
list.push(data)
|
|
list.push(data)
|
|
|
})
|
|
})
|
|
@@ -430,10 +436,23 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.handleImportData(() => {
|
|
this.handleImportData(() => {
|
|
|
this.closeDialog()
|
|
this.closeDialog()
|
|
|
|
|
+ this.refreshList()
|
|
|
}, this.paramForm.xlsxList)
|
|
}, this.paramForm.xlsxList)
|
|
|
},
|
|
},
|
|
|
|
|
+ refreshList() {
|
|
|
|
|
+ const template = (window.JTemplate && window.JTemplate.$template) || null
|
|
|
|
|
+ if (template && typeof template.search === 'function') {
|
|
|
|
|
+ template.search()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
closeDialog() {
|
|
closeDialog() {
|
|
|
|
|
+ this.dialogVisible = false
|
|
|
this.resetUpload()
|
|
this.resetUpload()
|
|
|
|
|
+ const template = (window.JTemplate && window.JTemplate.$template) || null
|
|
|
|
|
+ if (template && 'dialogTemplate' in template) {
|
|
|
|
|
+ template.dialogTemplate = null
|
|
|
|
|
+ template.dialogTemplateAtts = {}
|
|
|
|
|
+ }
|
|
|
this.$emit('close', false)
|
|
this.$emit('close', false)
|
|
|
},
|
|
},
|
|
|
getField(type = 'export') {
|
|
getField(type = 'export') {
|