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 @@