Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
03857e75bc
1 changed files with 17 additions and 20 deletions
  1. +17
    -20
      src/components/Template/HandleFormItem.vue

+ 17
- 20
src/components/Template/HandleFormItem.vue View File

@ -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);

Loading…
Cancel
Save