695593266@qq.com пре 1 недеља
родитељ
комит
92d77d82e7
1 измењених фајлова са 25 додато и 8 уклоњено
  1. 25 8
      src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue

+ 25 - 8
src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue

@@ -52,7 +52,8 @@
               v-if="
                 scope.row.type === 60 ||
                 scope.row.type === 70 ||
-                scope.row.type === 80
+                scope.row.type === 80 ||
+                scope.row.type === 71
               "
             >
               {{ getAssignRuleOptionName(scope.row) }}
@@ -226,7 +227,9 @@
           </el-select>
         </el-form-item>
         <el-form-item
-          v-if="form.typeS === 70 && title != '修改抄送规则'"
+          v-if="
+            (form.typeS === 70 || form.typeS === 71) && title != '修改抄送规则'
+          "
           label="审核方向"
           prop="direction"
         >
@@ -241,7 +244,9 @@
           </el-select>
         </el-form-item>
         <el-form-item
-          v-if="form.typeS === 70 && title != '修改抄送规则'"
+          v-if="
+            (form.typeS === 70 || form.typeS === 71) && title != '修改抄送规则'
+          "
           label="指定部门负责人"
           prop="topLevel"
         >
@@ -520,8 +525,16 @@
         if (this.title == '修改任务规则') {
           this.form.options = [];
           this.form.variableName = '';
-          this.$set(this.form, 'direction', val == '70' ? '0' : '');
-          this.$set(this.form, 'topLevel', val == '70' ? '1' : '');
+          this.$set(
+            this.form,
+            'direction',
+            val == '70' || val == '71' ? '0' : ''
+          );
+          this.$set(
+            this.form,
+            'topLevel',
+            val == '70' || val == '71' ? '1' : ''
+          );
         } else {
           this.form.ccOptions = [];
           this.form.ccVariableName = '';
@@ -604,7 +617,7 @@
           this.form.userGroupIds.push(...row.options);
         } else if (row.type === 50) {
           this.form.scripts.push(...row.options);
-        } else if (row.type === 70 || row.type === 80) {
+        } else if (row.type === 70 || row.type === 80 || row.type == 71) {
           let res = row.variableName ? JSON.parse(row.variableName) : {};
           this.$set(this.form, 'direction', res.direction);
           this.$set(this.form, 'topLevel', res.topLevel);
@@ -640,7 +653,11 @@
               form.options = form.userGroupIds;
             } else if (form.type === 50) {
               form.options = form.scripts;
-            } else if (form.type === 70 || form.type === 80) {
+            } else if (
+              form.type === 70 ||
+              form.type === 80 ||
+              form.type == 71
+            ) {
               form.variableName = JSON.stringify({
                 direction: form.direction,
                 topLevel: form.topLevel
@@ -790,7 +807,7 @@
           }
         } else if (row.type === 60) {
           return row.variableName;
-        } else if (row.type === 70) {
+        } else if (row.type === 70 || row.type == 71) {
           let data = JSON.parse(row.variableName);
           if (data.direction == 1) {
             return topLevel2.find((item) => item.value == data.topLevel)?.label;