diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index 76281a3..c5567c8 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -203,7 +203,7 @@ import HandleFormItem from "./HandleFormItem.vue"; import { isEqual } from "@/utils/index.js"; import { isShowOther } from "@/utils/formPackageCommon.js"; import { EventBus } from "@/utils/eventBus"; -import { getuuid } from "@/utils/index.js"; +import { getuuid,justUpdateFilledFormData } from "@/utils/index.js"; import { isRegent } from "@/utils/index.js"; import { isValueEmpty } from '@/utils/index.js'; @@ -322,7 +322,7 @@ export default { onDeleteCheckboxTag(rowIndex, col, tagIndex) { this.localDataSource[rowIndex][col.prop].splice(tagIndex, 1); this.$emit("onDeleteTag", rowIndex, col, tagIndex); - this.justUpdateFilledFormData(); + justUpdateFilledFormData(); }, onCheckboxTagChange(rowIndex, colIndex, col, value) { // value 现在是整个数组 @@ -349,7 +349,7 @@ export default { error.field === col.prop) ); this.$emit("onCheckboxChange", rowIndex, col, value); - this.justUpdateFilledFormData(); + justUpdateFilledFormData(); }, handleClickButton(e, data, key, rowIndex, colIndex) { this.$emit("clickButton", key, rowIndex, colIndex, e, data,) @@ -836,7 +836,7 @@ export default { this.localDataSource[rowIndex] = { ...this.localDataSource[rowIndex], ...data }; this.localDataSource = [...this.localDataSource]; this.checkCompareToOnDataLoad(); - this.justUpdateFilledFormData(); + justUpdateFilledFormData(); }, // 比较newData和oldData的值是否相等,只要有一对不相等就返回false compareOldAndCurrentFormFields(newData, oldData) { @@ -852,15 +852,6 @@ export default { return true; }, - // 只是更新已填写的表单数据,不触发校验 - justUpdateFilledFormData() { - const params = { - type: "fieldChanged", - newRecord: null, - resourceList: null, - } - EventBus.$emit('onModifyRecord', params,) - }, // 处理全选 handleCheckAllChange(val) { this.localDataSource.forEach(row => { @@ -898,7 +889,7 @@ export default { targetDiluentVolumePrecision: 3,//小数点精度默认为3 targetStartSolutionVolumePrecision: 3,//小数点精度默认为3 }); - this.justUpdateFilledFormData() + justUpdateFilledFormData() }, // 添加行 diff --git a/src/components/Template/Step.vue b/src/components/Template/Step.vue index 34b75cf..5bcf70a 100644 --- a/src/components/Template/Step.vue +++ b/src/components/Template/Step.vue @@ -2,36 +2,36 @@