Prechádzať zdrojové kódy

执行列表增加流程任务

liuyanpeng 2 rokov pred
rodič
commit
7a028aa243
1 zmenil súbory, kde vykonal 27 pridanie a 16 odobranie
  1. 27 16
      src/workflow/ExecutionList.vue

+ 27 - 16
src/workflow/ExecutionList.vue

@@ -9,6 +9,9 @@
       <li>
         <a data-toggle="tab" @click="changeSelectTab('PROCESS_REPORT')">流程报表实例</a>
       </li>
+      <li>
+        <a data-toggle="tab" @click="changeSelectTab('PROCESS')">流程任务</a>
+      </li>
     </ul>
 
     <div id="myTabContent" class="tab-content">
@@ -70,12 +73,24 @@
             <template #headerCell="{ column }">
               <template v-if="column.key == 'httpRequestType'">
                 <span>
-                  {{ taskType == "HTTP" ? "HTTP请求类型" : "流程报表文件编码" }}
+                  {{
+                    taskType == "HTTP"
+                      ? "HTTP请求类型"
+                      : taskType == "PROCESS"
+                        ? "流程编号"
+                        : "流程报表文件编码"
+                  }}
                 </span>
               </template>
               <template v-if="column.key == 'httpRequestUrl'">
                 <span>
-                  {{ taskType == "HTTP" ? "HTTP请求路径" : "流程报表名称" }}
+                  {{
+                    taskType == "HTTP"
+                      ? "HTTP请求路径"
+                      : taskType == "PROCESS"
+                        ? "流程任务名称"
+                        : "流程报表名称"
+                  }}
                 </span>
               </template>
             </template>
@@ -86,21 +101,27 @@
                     ? ""
                     : record.taskType == "HTTP"
                       ? "HTTP请求"
-                      : "流程报表"
+                      : record.taskType == "PROCESS"
+                        ? "流程任务"
+                        : "流程报表"
                 }}
               </template>
               <template v-if="column.key == 'httpRequestType'">
                 {{
                   record.taskType == "HTTP"
                     ? record.httpRequestType
-                    : record.processReportNo
+                    : taskType == "PROCESS"
+                      ? record.processNo
+                      : record.processReportNo
                 }}
               </template>
               <template v-if="column.key == 'httpRequestUrl'">
                 {{
                   record.taskType == "HTTP"
                     ? record.httpRequestUrl
-                    : record.processReportName
+                    : taskType == "PROCESS"
+                      ? record.taskName
+                      : record.processReportName
                 }}
               </template>
               <template v-if="column.key == 'taskInstanceStatus'">
@@ -185,17 +206,7 @@ export default {
           key: 'operationResult',
           width: 180,
           fixed: 'right',
-          customCell : () => {
-            return {
-              style: {
-                width: '180px',
-                overflow: 'hidden',
-                whiteSpace: 'nowrap',
-                textOverflow:'ellipsis',
-                cursor:'pointer',
-              },
-            };
-          },
+          ellipsis: true,
         },
       ].map(item => ({ ...item, align: 'center' })),