Commit f05271fe by Joey

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

parent 894cb298
...@@ -173,6 +173,7 @@ export default { ...@@ -173,6 +173,7 @@ export default {
selectedSuggestion: [], selectedSuggestion: [],
themeColor: this.define?.config?.fontColor || '#5369D8', themeColor: this.define?.config?.fontColor || '#5369D8',
currentHoverSuggestion: null, currentHoverSuggestion: null,
currentTagId: null,
} }
}, },
watch: { watch: {
...@@ -187,6 +188,7 @@ export default { ...@@ -187,6 +188,7 @@ export default {
// this.reviewParam['billid'] = this.$route.query.id; // this.reviewParam['billid'] = this.$route.query.id;
this.context.bill.setGlobalParam('reviewParam',this.reviewParam); this.context.bill.setGlobalParam('reviewParam',this.reviewParam);
this.value = this.context.bill.getGlobalParam('reviewParam').suggestions 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-edit', this.openEditModal)
window.GMS.vbus.$on('approval-user-control-add', this.handleAdd) window.GMS.vbus.$on('approval-user-control-add', this.handleAdd)
this.getSuggestionOptions() this.getSuggestionOptions()
...@@ -200,6 +202,7 @@ export default { ...@@ -200,6 +202,7 @@ export default {
this.$set(suggestion, 'visible', true) this.$set(suggestion, 'visible', true)
}, },
openEditModal() { openEditModal() {
if (this.currentTagId && this.currentTagId != window.nros.context.getCurrTag()) return
this.suggestionOptionModal = true this.suggestionOptionModal = true
}, },
genCode() { genCode() {
...@@ -260,6 +263,8 @@ export default { ...@@ -260,6 +263,8 @@ export default {
this.value = s.spyj this.value = s.spyj
}, },
handleAdd() { handleAdd() {
if (this.currentTagId && this.currentTagId != window.nros.context.getCurrTag()) return
this.currentEditSuggestion = { this.currentEditSuggestion = {
code: this.genCode(), code: this.genCode(),
spyj: this.value, 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