From 9f33e126f4ff9742ed55230b75140ae676c79986 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Sun, 18 Jan 2026 18:17:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][?= =?UTF-8?q?=E7=83=A6=E4=BA=BA=E7=9A=84=E6=B5=93=E5=BA=A6=E8=AE=A1=E7=AE=97?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/CustomTable.vue | 11 +- src/components/Template/HandleFormItem.vue | 7 +- .../comps/template/comps/sp/SWYPNBGZYZBB.vue | 447 ++++++--------------- .../template/formConfig/paralleAndLadderConfig.js | 297 ++++++++++++-- .../comps/template/mixins/templateMixin.js | 20 +- 5 files changed, 416 insertions(+), 366 deletions(-) diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index 1b3f5c7..61386f4 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -185,6 +185,16 @@ export default { this.headerSelectFields = JSON.parse(JSON.stringify(headerSelectFields)) } }, + localDataSource:{ + immediate: true, + deep: true, + handler(newVal,oldVal){ + // if(newVal.length == 0){ + // return + // } + // this.localDataSource = [...newVal]; + } + } }, mounted() { // this.initHeaderSelectValues(); @@ -239,7 +249,6 @@ export default { // 数据校验 const validateResult = this.validateFormData(); - console.log(validateResult,"validateResult") return new Promise((resolve, reject) => { if (validateResult.valid) { resolve({ diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index e266c53..70df2f2 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -353,7 +353,8 @@ export default { // 值发生了变化,需要弹出密码输入框 const isSame = this.isEqual(this.oldValue, this.inputValue); if (this.oldValue && !isSame && this.templateFillType === "actFill") { - this.$refs.editSignRef.show() + // this.$refs.editSignRef.show() + this.handleUpdateRecord(); }else{//如果是第一次填写,不需要密码验证 this.handleUpdateRecord() } @@ -389,12 +390,14 @@ export default { newRecord: record, resourceList: this.getZdxgjl(), } - EventBus.$emit('onModifyRecord', params,) //用户输入密码并点击确定,保存修改 this.oldValue = this.inputValue; // 更新旧值 this.$emit("blur", this.inputValue); this.$emit('input', this.inputValue); this.$emit("change", this.inputValue); + setTimeout(() => { + EventBus.$emit('onModifyRecord', params,) + }, 10); }, //判断两个值是否相等 diff --git a/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue b/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue index 4b2a77a..0f80726 100644 --- a/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue +++ b/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue @@ -2,8 +2,8 @@