Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
e0428b48d3
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/components/Template/HandleFormItem.vue

+ 6
- 2
src/components/Template/HandleFormItem.vue View File

@ -58,11 +58,12 @@
<span>{{ index + 1 }}.</span>
<span> {{ getUserName(record) }} </span>
<span>{{ record.time }} </span>
<span>{{ modificationRecords.length-1==index?"填写":"修改记录" }}</span>
<span>{{ modificationRecords.length-1==index?"提交":"修改" }}</span>
</div>
<div v-if = "modificationRecords.length-1!==index">
<div>原值{{ record.oldValue }}</div>
<div>修改值{{ record.value }}</div>
<div v-if="record.reason">备注{{ record.reason }}</div>
</div>
</div>
<!-- 回复记录 -->
@ -352,6 +353,9 @@ export default {
//
const isSame = this.isEqual(this.oldValue, this.inputValue);
if(isSame){
return;
}
if (this.oldValue && !isSame && this.templateFillType === "actFill") {
this.$refs.editSignRef.show()
// this.handleUpdateRecord();
@ -376,7 +380,7 @@ export default {
...baseInfo,
oldValue: this.oldValue,
value: this.inputValue,
title: this.oldValue ? "修改记录" : "填写",
title: this.oldValue ? "修改" : "提交",
time: moment().format("YYYY-MM-DD HH:mm:ss"),
}
if (data) {

Loading…
Cancel
Save