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

优化流程提交对话框,添加类型70的处理逻辑并修复条件判断

yusheng 9 месяцев назад
Родитель
Сommit
6573afe135
1 измененных файлов с 10 добавлено и 3 удалено
  1. 10 3
      src/BIZComponents/processSubmitDialog/processSubmitDialog.vue

+ 10 - 3
src/BIZComponents/processSubmitDialog/processSubmitDialog.vue

@@ -166,7 +166,7 @@
             >
               <template v-slot="scope">
                 <div
-                  v-if="scope.row.type !== 60 && scope.row.options.length > 0"
+                  v-if="scope.row.type !== 60 &&scope.row.type !== 70 && scope.row.options.length > 0"
                 >
                   <el-tag
                     size="medium"
@@ -177,7 +177,7 @@
                   </el-tag>
                 </div>
 
-                <el-tag size="medium" v-if="scope.row.type === 60">
+                <el-tag size="medium" v-if="scope.row.type === 60||scope.row.type === 70">
                   {{ getAssignRuleOptionName(scope.row) }}
                 </el-tag>
               </template>
@@ -286,6 +286,7 @@
   import { getToken } from '@/utils/token-util';
   import { mapGetters } from 'vuex';
   import staffSelection from '@/components/staffSelection/staffSelection.vue';
+  import { topLevel1, topLevel2 } from '@/enum/dict';
   import dayjs from 'dayjs';
   import { number } from 'echarts';
   import { del } from 'vue';
@@ -415,7 +416,6 @@ this.postOptions.push(...response.data);
           [key]: data[key]
         });
         this.changePrice(data[key]);
- 
       },
       changePrice(data) {
         let num = 0;
@@ -559,6 +559,13 @@ this.postOptions.push(...response.data);
           );
         } else if (row.type === 60) {
           return row.variableName;
+        } else if (row.type === 70) {
+          let data = JSON.parse(row.variableName);
+          if (data.direction == 1) {
+            return topLevel1.find((item) => item.value == data.topLevel)?.label;
+          } else {
+            return topLevel2.find((item) => item.value == data.topLevel)?.label;
+          }
         }
         return '未知(' + option + ')';
       },