diff --git a/src/components/drawerDialog/index.vue b/src/components/drawerDialog/index.vue index cfe94c2..83a2987 100644 --- a/src/components/drawerDialog/index.vue +++ b/src/components/drawerDialog/index.vue @@ -23,12 +23,21 @@ :model="formTemplate" class="small-space" label-position="left" - label-width="80px" + label-width="110px" style="margin-left: 50px" > + + + + @@ -305,7 +314,7 @@ > @@ -474,6 +483,17 @@ + + + + {{ item }} + + + - + 检验项目 - + 目录页 @@ -639,6 +659,23 @@ inactive-text="不是" /> + + + + 取 消 @@ -767,6 +804,7 @@ export default { templateSettingId: '' }, totalCount1: 0, + jyxmModes: ['检验项目', '附表', '不合格整改检验项目', '大型起重机械检验项目', '报告检验项目'], writeModes: ['CN模式', 'DN模式', 'KV模式', 'CFI模式', 'SA模式'] } }, @@ -904,11 +942,7 @@ export default { }, editFn(row) { this.dialogVisible = true - this.formLabelAlign.field = row.filed - this.formLabelAlign.fieldMode = row.fieldMode - this.formLabelAlign.indexFromRight = row.indexFromRight - this.formLabelAlign.templateSettingId = row.id - this.formLabelAlign.templateId = this.id + this.formLabelAlign = this.common.deepCopy(row) }, handleChange(value) { this.formLabelAlign.indexFromRight = value @@ -918,7 +952,7 @@ export default { this.formLabelAlign.templateId = this.id this.api({ url: '/templateJyxm', - method: 'post', + method: this.formLabelAlign.id ? 'put' : 'post', data: this.formLabelAlign }).then((res) => { this.dialogVisible = false