|
|
@ -270,7 +270,6 @@ export default { |
|
|
EventBus.$emit('onModifyRecord', { |
|
|
EventBus.$emit('onModifyRecord', { |
|
|
type: "checkbox", |
|
|
type: "checkbox", |
|
|
fieldCheckObj: JSON.stringify({ ...this.getFieldCheckObj(), [this.fieldKey]: { checked: val } }),//复选框状态对象 |
|
|
fieldCheckObj: JSON.stringify({ ...this.getFieldCheckObj(), [this.fieldKey]: { checked: val } }),//复选框状态对象 |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
this.updateFieldCheckObj({ [this.fieldKey]: { checked: val } }); |
|
|
this.updateFieldCheckObj({ [this.fieldKey]: { checked: val } }); |
|
|
// this.$emit('input', val); |
|
|
// this.$emit('input', val); |
|
|
@ -355,26 +354,24 @@ export default { |
|
|
zIndex: 10000, |
|
|
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.oldValue = this.inputValue; // 更新旧值 |
|
|
this.$emit("blur", val); |
|
|
this.$emit("blur", val); |
|
|
|