|
|
@ -832,27 +832,14 @@ export default { |
|
|
|
this.listQuery.templateId = this.id |
|
|
|
this.form.templateId = this.id |
|
|
|
this.formLabelAlign.templateId = this.id |
|
|
|
this.getList() |
|
|
|
|
|
|
|
if (this.id) { |
|
|
|
this.loadFormData(this.index) |
|
|
|
this.getList() |
|
|
|
} else { |
|
|
|
console.log(this.formTemplate, 5454242) |
|
|
|
this.$refs['formTemplate'].resetFields() |
|
|
|
this.formTemplate = { |
|
|
|
tempName: '', |
|
|
|
tempCategory: '', |
|
|
|
bglx: null, |
|
|
|
jianyanleibie: '', |
|
|
|
shebeizhongleidaima: '', |
|
|
|
shebeileibiedaima: '', |
|
|
|
tempPath: '', |
|
|
|
jianyanyiju: '', |
|
|
|
withDicCode: '', |
|
|
|
parentId: '', |
|
|
|
version: '', |
|
|
|
sort: null, |
|
|
|
cleanState: false, |
|
|
|
showPageStatus: true |
|
|
|
} |
|
|
|
this.clearForm() |
|
|
|
} |
|
|
|
this.getSbList(undefined, undefined, 1) |
|
|
|
this.getBglxList() |
|
|
@ -1165,13 +1152,11 @@ export default { |
|
|
|
this.$refs.settingList.toggleRowSelection(row) |
|
|
|
this.getDemoList(row.id) |
|
|
|
}, |
|
|
|
beforeClose(done) { |
|
|
|
this.list.length = 0 |
|
|
|
this.gridData.length = 0 |
|
|
|
this.formTemplate = Object.assign({ |
|
|
|
clearForm() { |
|
|
|
this.formTemplate = { |
|
|
|
tempName: '', |
|
|
|
tempCategory: '', |
|
|
|
bglx: 1, |
|
|
|
bglx: null, |
|
|
|
jianyanleibie: '', |
|
|
|
shebeizhongleidaima: '', |
|
|
|
shebeileibiedaima: '', |
|
|
@ -1180,11 +1165,17 @@ export default { |
|
|
|
withDicCode: '', |
|
|
|
parentId: '', |
|
|
|
version: '', |
|
|
|
sort: 0, |
|
|
|
sort: null, |
|
|
|
cleanState: false, |
|
|
|
showPageStatus: true |
|
|
|
}, this.formTemplate) |
|
|
|
this.$refs['formTemplate'].resetFields() |
|
|
|
} |
|
|
|
this.neibuleibie = [] |
|
|
|
this.shebeipinzhongdaima = [] |
|
|
|
}, |
|
|
|
beforeClose(done) { |
|
|
|
this.list.length = 0 |
|
|
|
this.gridData.length = 0 |
|
|
|
this.clearForm() |
|
|
|
this.$emit('closeTemplateDrawer') |
|
|
|
} |
|
|
|
} |
|
|
|