From 5e185a43eb2bf716ab4fb8cac4f706f0396d6ccb Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Sun, 22 Mar 2026 20:32:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][upd?= =?UTF-8?q?ate]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/BaseInfoFormPackage.vue | 9 +++- src/components/Template/CustomTable.vue | 3 +- src/components/Template/HandleFormItem.vue | 17 ++++--- .../comps/template/comps/sp/comps/LadderConfig.vue | 13 +++--- .../comps/template/mixins/templateMixin.js | 52 ++++++++++++++-------- 5 files changed, 62 insertions(+), 32 deletions(-) diff --git a/src/components/Template/BaseInfoFormPackage.vue b/src/components/Template/BaseInfoFormPackage.vue index 7017902..7c09f51 100644 --- a/src/components/Template/BaseInfoFormPackage.vue +++ b/src/components/Template/BaseInfoFormPackage.vue @@ -445,10 +445,17 @@ export default { }, // 获取按钮项 getButtonItem(sItem) { + const o = { + ...sItem, + key: sItem.subKey, + fillType: sItem.subFillType || sItem.fillType + }; + if(sItem.hasOwnProperty("subDisabled")){ + o.disabled = sItem.disabled; + } return { ...sItem, key: sItem.subKey, - disabled: sItem.subDisabled, fillType: sItem.subFillType || sItem.fillType } }, diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index 4e285fb..0a16432 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -800,7 +800,7 @@ export default { const compareToValue = this.localDataSource[rowIndex][col.compareTo]; // 比较当前值和compareTo值,如果不相等则设置橙色背景 - if (value !== compareToValue) { + if (!isEqual(value, compareToValue)) { this.setOrangeBg(rowIndex, colIndex, colKey, true); } else { // 相等则移除橙色背景 @@ -1069,6 +1069,7 @@ export default { targetDiluentVolumePrecision: 3,//小数点精度默认为3 targetStartSolutionVolumePrecision: 3,//小数点精度默认为3 id:getuuid(), + rowIndex:this.localDataSource.length, }); justUpdateFilledFormData() }, diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index e0d5b01..eaa4a89 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -111,6 +111,7 @@