From 89e018819218f6d44aed581b23f0c233b75fc3ef Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Fri, 27 Aug 2021 17:23:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A8=A1=E6=9D=BF=E5=88=97?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E6=A8=A1=E6=9D=BF=E9=85=8D=E7=BD=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawerDialog/index.vue | 42 +++++++++++++++++---------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/src/components/drawerDialog/index.vue b/src/components/drawerDialog/index.vue index bbaff9b..3ddab06 100644 --- a/src/components/drawerDialog/index.vue +++ b/src/components/drawerDialog/index.vue @@ -262,12 +262,12 @@
- 模板详情 + 模板配置 新增 @@ -373,7 +373,7 @@ icon="el-icon-edit" circle title="编辑" - @click="editFnTem(scope.row)" + @click="editTemplateSettingFn(scope.row)" /> @@ -398,12 +398,12 @@
- 模板详情 + 检验项目列配置{{ templateSettingLabel }} 新增 @@ -441,7 +441,7 @@ icon="el-icon-edit" circle title="编辑" - @click="editFn(scope.row)" + @click="editTemplateJyxmFn(scope.row)" /> @@ -883,7 +883,8 @@ export default { total1: 0, jyxmModes: ['检验项目', '附表', '不合格整改检验项目', '大型起重机械检验项目', '报告检验项目'], writeModes: ['CN模式', 'DN模式', 'KV模式', 'CFI模式', 'SA模式'], - affiliatedAddModes: ['固定表格', '附页文件', 'word自动切换'] + affiliatedAddModes: ['固定表格', '附页文件', 'word自动切换'], + templateSettingLabel: '' } }, mounted() {}, @@ -957,15 +958,24 @@ export default { affiliatedAddMode: 0 } }, - addTemFn() { + addTemplateSettingFn() { this.initTemplateSettingForm() this.dialogVisible1 = true }, - editFnTem(row) { + editTemplateSettingFn(row) { this.form = this.common.deepCopy(row) this.dialogVisible1 = true }, - addtemFn() { + addTemplateJyxmFn() { + this.$set(this, 'formLabelAlign', { + field: '', + fieldMode: 0, + indexFromRight: '', + templateId: '', // 模板id + templateSettingId: '', // 配置id + alias: '', + underlineStitching: false + }) this.dialogVisible = true }, getList() { @@ -988,14 +998,14 @@ export default { } }) }, - deleteModelFn(row) { + deleteTemplateSettingFn(row) { TemplateApi.deleteModuleFn({ ids: [row.id] }).then((data) => { this.getList() }) }, - deleteFn(row, index) { + deleteTemplateJyxmFn(row, index) { const arr = [] arr.push(row.id) TemplateApi.deleteTemplateJyxm({ @@ -1037,7 +1047,7 @@ export default { toggleFn(val) { this.multipleSelection = val }, - editFn(row) { + editTemplateJyxmFn(row) { this.dialogVisible = true this.formLabelAlign = this.common.deepCopy(row) }, @@ -1260,6 +1270,7 @@ export default { return false } this.templateSettingId = row.id + this.templateSettingLabel = this.jyxmModes[row.jyxmMode] + '-' + row.sort this.$refs.settingList.toggleRowSelection(row) this.getDemoList() }, @@ -1286,6 +1297,7 @@ export default { beforeClose(done) { this.list.length = 0 this.gridData.length = 0 + this.templateSettingLabel = '' this.clearForm() this.$emit('closeTemplateDrawer') }