diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index 86747e9..3f553f5 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -270,7 +270,6 @@ export default { EventBus.$emit('onModifyRecord', { type: "checkbox", fieldCheckObj: JSON.stringify({ ...this.getFieldCheckObj(), [this.fieldKey]: { checked: val } }),//复选框状态对象 - }); this.updateFieldCheckObj({ [this.fieldKey]: { checked: val } }); // this.$emit('input', val); @@ -355,26 +354,24 @@ export default { zIndex: 10000, }); - const baseInfo = this.getCommonRecordInfo(); - const record = { - ...baseInfo, - oldValue: this.oldValue, - value: this.inputValue, - title: this.oldValue ? "修改记录" : "填写", - time: moment().format("YYYY-MM-DD HH:mm:ss"), - - } - const params = { - type: "fieldChanged", - newRecord: record, - password: passwordResult, - resourceList: deepClone(this.getZdxgjl()), - } - this.$emit("onModifyRecord", params,) - this.updateZdxgjl(record); - - console.log(params, "params") + + + } + const baseInfo = this.getCommonRecordInfo(); + const record = { + ...baseInfo, + oldValue: this.oldValue, + value: this.inputValue, + title: this.oldValue ? "修改记录" : "填写", + time: moment().format("YYYY-MM-DD HH:mm:ss"), + } + const params = { + type: "fieldChanged", + newRecord: record, + resourceList: deepClone(this.getZdxgjl()), } + EventBus.$emit('onModifyRecord', params,) + this.updateZdxgjl(record); //用户输入密码并点击确定,保存修改 this.oldValue = this.inputValue; // 更新旧值 this.$emit("blur", val);