|
|
|
@ -41,7 +41,7 @@ |
|
|
|
</div> |
|
|
|
<img v-if="getIsShowCopyIcon()" @click="onCopy" src="@/assets/images/copy-icon.svg" class="handle-icon" |
|
|
|
alt="" /> |
|
|
|
<img v-if="getIsShowRecordIcon()" @mouseenter="(e) => onMouseEnter('modifyRecord', e)" |
|
|
|
<img v-if="getIsShowRecordIcon()" @mouseenter="(e) => onMouseEnter('fieldChanged', e)" |
|
|
|
@mouseleave="onMouseLeave" src="@/assets/images/record-icon.svg" class="handle-icon" alt="" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -53,7 +53,7 @@ |
|
|
|
<div class="records-list"> |
|
|
|
<div v-for="(record, index) in modificationRecords" :key="index" class="record-item"> |
|
|
|
<!-- 字段修改记录 --> |
|
|
|
<div class="record-row" v-if="currentRecordType === 'modifyRecord'"> |
|
|
|
<div class="record-row" v-if="currentRecordType === 'fieldChanged'"> |
|
|
|
<div> |
|
|
|
<span>{{ index + 1 }}.</span> |
|
|
|
<span> {{ record.userName }} </span> |
|
|
|
@ -216,11 +216,11 @@ export default { |
|
|
|
this.updateFhyjjl(record);//qc直接插入数据源 |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const params = { |
|
|
|
type: "reply", |
|
|
|
newRecord: record, |
|
|
|
list: deepClone(this.fhyjjl), |
|
|
|
resourceList: deepClone(this.fhyjjl), |
|
|
|
} |
|
|
|
// 触发回复记录事件 |
|
|
|
EventBus.$emit('onModifyRecord', params); |
|
|
|
@ -249,13 +249,13 @@ export default { |
|
|
|
}, |
|
|
|
// 复选框变化处理 |
|
|
|
onCheckboxChange(val) { |
|
|
|
console.log(JSON.stringify({...this.fieldCheckObj,[this.fieldKey]:{checked:val}}),"kkk") |
|
|
|
// 触发修改记录事件 |
|
|
|
EventBus.$emit('onModifyRecord', { |
|
|
|
type: "checkbox", |
|
|
|
key: this.fieldKey, |
|
|
|
checked: val, |
|
|
|
fieldCheckObj:JSON.stringify({...this.fieldCheckObj,[this.fieldKey]:{checked:val}}),//复选框状态对象 |
|
|
|
|
|
|
|
}); |
|
|
|
console.log(val,"fff") |
|
|
|
this.updateFieldCheckObj({[this.fieldKey]:{checked:val}}); |
|
|
|
// this.$emit('input', val); |
|
|
|
// this.$emit('change', val); |
|
|
|
@ -288,7 +288,6 @@ export default { |
|
|
|
onClickQuestion() { |
|
|
|
if(this.templateFillType == 'actFill' || this.templateFillType){ |
|
|
|
const field = this.fieldCheckObj[this.fieldKey]; |
|
|
|
console.log(field,this.fieldCheckObj,"click") |
|
|
|
if(field && field.checked){ |
|
|
|
this.$message({ |
|
|
|
message: '该字段已勾选复核框,请先取消勾选后再进行提交疑问', |
|
|
|
@ -329,10 +328,10 @@ export default { |
|
|
|
title: this.oldValue ? "修改记录" : "填写", |
|
|
|
} |
|
|
|
const params = { |
|
|
|
type: "modifyRecord", |
|
|
|
type: "fieldChanged", |
|
|
|
newRecord: record, |
|
|
|
password: passwordResult, |
|
|
|
list: deepClone(this.zdxgjl), |
|
|
|
resourceList: deepClone(this.zdxgjl), |
|
|
|
} |
|
|
|
this.$emit("onModifyRecord", params,) |
|
|
|
this.updateZdxgjl(record); |
|
|
|
@ -476,7 +475,7 @@ export default { |
|
|
|
this.currentRecordType = type; |
|
|
|
clearTimeout(this.modalTimer); |
|
|
|
let record = []; |
|
|
|
if (type === "modifyRecord") { |
|
|
|
if (type === "fieldChanged") { |
|
|
|
record = this.getModifyRecords(); |
|
|
|
} else if (type === "replyRecord") { |
|
|
|
record = this.getReplyRecords(); |
|
|
|
|