Commit f05271fe by Joey

fix(@gms/gms-plugin-billexpand): 审批意见避免可能的多页签重复添加

parent 894cb298
......@@ -173,6 +173,7 @@ export default {
selectedSuggestion: [],
themeColor: this.define?.config?.fontColor || '#5369D8',
currentHoverSuggestion: null,
currentTagId: null,
}
},
watch: {
......@@ -187,6 +188,7 @@ export default {
// this.reviewParam['billid'] = this.$route.query.id;
this.context.bill.setGlobalParam('reviewParam',this.reviewParam);
this.value = this.context.bill.getGlobalParam('reviewParam').suggestions
this.currentTagId = window.nros.context.getCurrTag()
window.GMS.vbus.$on('approval-user-control-edit', this.openEditModal)
window.GMS.vbus.$on('approval-user-control-add', this.handleAdd)
this.getSuggestionOptions()
......@@ -200,6 +202,7 @@ export default {
this.$set(suggestion, 'visible', true)
},
openEditModal() {
if (this.currentTagId && this.currentTagId != window.nros.context.getCurrTag()) return
this.suggestionOptionModal = true
},
genCode() {
......@@ -260,6 +263,8 @@ export default {
this.value = s.spyj
},
handleAdd() {
if (this.currentTagId && this.currentTagId != window.nros.context.getCurrTag()) return
this.currentEditSuggestion = {
code: this.genCode(),
spyj: this.value,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment