Просмотр исходного кода

bug-8161 流程审批:同意按钮预设的文案有误

CHINAMI-P698360\Administrator 1 месяц назад
Родитель
Сommit
adf549a5c2
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      src/business/platform/bpmn/components/approval-opinion/index.vue

+ 11 - 0
src/business/platform/bpmn/components/approval-opinion/index.vue

@@ -216,6 +216,17 @@ export default {
       handler(val, oldVal) {
         if (this.enableCommon && !this.disabled) {
           this.$nextTick(() => {
+            if (this.action) {
+              this.data = ''
+              setTimeout(() => {
+                this.data =
+                  this.action == 'agree'
+                    ? '同意'
+                    : this.action == 'stop'
+                    ? '终止'
+                    : ''
+              }, 500)
+            }
             this.loadCommonStatment()
           })
         }