diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index 1b3f5c7..61386f4 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -185,6 +185,16 @@ export default { this.headerSelectFields = JSON.parse(JSON.stringify(headerSelectFields)) } }, + localDataSource:{ + immediate: true, + deep: true, + handler(newVal,oldVal){ + // if(newVal.length == 0){ + // return + // } + // this.localDataSource = [...newVal]; + } + } }, mounted() { // this.initHeaderSelectValues(); @@ -239,7 +249,6 @@ export default { // 数据校验 const validateResult = this.validateFormData(); - console.log(validateResult,"validateResult") return new Promise((resolve, reject) => { if (validateResult.valid) { resolve({ diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index e266c53..70df2f2 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -353,7 +353,8 @@ export default { // 值发生了变化,需要弹出密码输入框 const isSame = this.isEqual(this.oldValue, this.inputValue); if (this.oldValue && !isSame && this.templateFillType === "actFill") { - this.$refs.editSignRef.show() + // this.$refs.editSignRef.show() + this.handleUpdateRecord(); }else{//如果是第一次填写,不需要密码验证 this.handleUpdateRecord() } @@ -389,12 +390,14 @@ export default { newRecord: record, resourceList: this.getZdxgjl(), } - EventBus.$emit('onModifyRecord', params,) //用户输入密码并点击确定,保存修改 this.oldValue = this.inputValue; // 更新旧值 this.$emit("blur", this.inputValue); this.$emit('input', this.inputValue); this.$emit("change", this.inputValue); + setTimeout(() => { + EventBus.$emit('onModifyRecord', params,) + }, 10); }, //判断两个值是否相等 diff --git a/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue b/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue index 4b2a77a..0f80726 100644 --- a/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue +++ b/src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue @@ -2,8 +2,8 @@