From 40a75dae3182cb55b30a2e8093c5eed82465f59c Mon Sep 17 00:00:00 2001
From: LiuHao <liuhaoai545@gmail.com>
Date: 星期一, 15 四月 2024 10:40:33 +0800
Subject: [PATCH] fix 修复代码缩进.

---
 src/views/workflow/processInstance/index.vue |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/views/workflow/processInstance/index.vue b/src/views/workflow/processInstance/index.vue
index 0da78bc..764ca2f 100644
--- a/src/views/workflow/processInstance/index.vue
+++ b/src/views/workflow/processInstance/index.vue
@@ -23,8 +23,8 @@
         <div class="mb-[10px]">
           <el-card shadow="hover" class="text-center">
             <el-radio-group v-model="tab" @change="changeTab(tab)">
-              <el-radio-button label="running">杩愯涓�</el-radio-button>
-              <el-radio-button label="finish">宸插畬鎴�</el-radio-button>
+              <el-radio-button value="running">杩愯涓�</el-radio-button>
+              <el-radio-button value="finish">宸插畬鎴�</el-radio-button>
             </el-radio-group>
           </el-card>
         </div>
@@ -59,7 +59,11 @@
           <el-table v-loading="loading" border :data="processInstanceList" @selection-change="handleSelectionChange">
             <el-table-column type="selection" width="55" align="center" />
             <el-table-column align="center" type="index" label="搴忓彿" width="60"></el-table-column>
-            <el-table-column align="center" prop="processDefinitionName" label="娴佺▼瀹氫箟鍚嶇О"></el-table-column>
+            <el-table-column :show-overflow-tooltip="true" align="center" label="娴佺▼瀹氫箟鍚嶇О">
+              <template #default="scope">
+                <span>{{ scope.row.processDefinitionName }}v{{ scope.row.processDefinitionVersion }}.0</span>
+              </template>
+            </el-table-column>
             <el-table-column align="center" prop="processDefinitionKey" label="娴佺▼瀹氫箟KEY"></el-table-column>
             <el-table-column align="center" prop="processDefinitionVersion" label="鐗堟湰鍙�" width="90">
               <template #default="scope"> v{{ scope.row.processDefinitionVersion }}.0</template>
@@ -70,9 +74,9 @@
                 <el-tag v-else type="danger">鎸傝捣</el-tag>
               </template>
             </el-table-column>
-            <el-table-column align="center" prop="businessStatusName" label="娴佺▼鐘舵��" min-width="70">
+            <el-table-column align="center" label="娴佺▼鐘舵��" min-width="70">
               <template #default="scope">
-                <el-tag type="success">{{ scope.row.businessStatusName }}</el-tag>
+                <dict-tag :options="wf_business_status" :value="scope.row.businessStatus"></dict-tag>
               </template>
             </el-table-column>
             <el-table-column align="center" prop="startTime" label="鍚姩鏃堕棿" width="160"></el-table-column>
@@ -165,6 +169,7 @@
 import { RouterJumpVo } from '@/api/workflow/workflowCommon/types';
 //瀹℃壒璁板綍缁勪欢
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
+const { wf_business_status } = toRefs<any>(proxy?.useDict('wf_business_status'));
 const queryFormRef = ref<ElFormInstance>();
 const categoryTreeRef = ref<ElTreeInstance>();
 
@@ -299,7 +304,7 @@
   proxy?.$modal.msgSuccess('鍒犻櫎鎴愬姛');
 };
 const changeTab = async (data: string) => {
-  processInstanceList.value = []
+  processInstanceList.value = [];
   queryParams.value.pageNum = 1;
   if ('running' === data) {
     getProcessInstanceRunningList();
@@ -356,7 +361,7 @@
     taskId: row.id,
     type: 'view'
   });
-  workflowCommon.routerJump(routerJumpVo,proxy)
+  workflowCommon.routerJump(routerJumpVo, proxy);
 };
 
 onMounted(() => {

--
Gitblit v1.9.3