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;