From 83171d64a9f0d5d970ec5c9d4a2fcd2f03cd4929 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Wed, 25 Mar 2026 15:00:56 +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/CustomTable.vue | 3 +-- src/components/Template/HandleFormItem.vue | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index ed15152..842239a 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -1024,8 +1024,7 @@ export default { this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource)); this.localDataSource[rowIndex] = { ...this.localDataSource[rowIndex], ...data }; this.localDataSource = [...this.localDataSource]; - console.log(signData,"signData") - if(signData && signData.remark){ + if(updateFields.length > 0){ updateFields.map((key)=>{ const ref = this.$refs[key+rowIndex]; if(ref){ diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index d2955b2..83c8450 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -1244,7 +1244,8 @@ console.log("fillll") //处理更新记录 handleUpdateRecord(data, recordData) { const baseInfo = this.getCommonRecordInfo(); - if (!this.oldValue && !this.inputValue) { + //有recordData表示从组件外部调用的更新操作, + if (!this.oldValue && !this.inputValue && !recordData) { return } let finallyKey = this.fieldKey;