From 66a31b620bab3defbdb336bceb1f3e37a902ac90 Mon Sep 17 00:00:00 2001
From: gssong <1742057357@qq.com>
Date: 星期四, 21 三月 2024 21:20:42 +0800
Subject: [PATCH] add 添加已办查看

---
 src/views/workflow/task/myDocument.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/workflow/task/myDocument.vue b/src/views/workflow/task/myDocument.vue
index 1e1d2a0..1e71f1f 100644
--- a/src/views/workflow/task/myDocument.vue
+++ b/src/views/workflow/task/myDocument.vue
@@ -42,9 +42,9 @@
             </el-row>
           </template>
 
-          <el-table v-loading="loading" :data="processInstanceList" @selection-change="handleSelectionChange">
+          <el-table v-loading="loading" border :data="processInstanceList" @selection-change="handleSelectionChange">
             <el-table-column type="selection" width="55" align="center" />
-            <el-table-column fixed align="center" type="index" label="搴忓彿" width="50"></el-table-column>
+            <el-table-column fixed align="center" type="index" label="搴忓彿" width="60"></el-table-column>
             <el-table-column v-if="false" fixed align="center" prop="id" label="id"></el-table-column>
             <el-table-column fixed align="center" prop="processDefinitionName" label="娴佺▼瀹氫箟鍚嶇О"></el-table-column>
             <el-table-column fixed align="center" prop="processDefinitionKey" label="娴佺▼瀹氫箟KEY"></el-table-column>
@@ -107,7 +107,7 @@
 </template>
 
 <script lang="ts" setup>
-import { getCurrentSubmitByPage, deleteRuntimeProcessAndHisInst, cancelProcessApply } from '@/api/workflow/processInstance';
+import { getPageByCurrent, deleteRunAndHisInstance, cancelProcessApply } from '@/api/workflow/processInstance';
 import ApprovalRecord from '@/components/Process/approvalRecord.vue';
 import SubmitVerify from '@/components/Process/submitVerify.vue';
 import { listCategory } from '@/api/workflow/category';
@@ -218,7 +218,7 @@
 //鍒嗛〉
 const getList = () => {
   loading.value = true;
-  getCurrentSubmitByPage(queryParams.value).then((resp) => {
+  getPageByCurrent(queryParams.value).then((resp) => {
     processInstanceList.value = resp.rows;
     total.value = resp.total;
     loading.value = false;
@@ -231,7 +231,7 @@
   await proxy?.$modal.confirm('鏄惁纭鍒犻櫎id涓恒��' + id + '銆戠殑鏁版嵁椤癸紵');
   loading.value = true;
   if ('running' === tab.value) {
-    await deleteRuntimeProcessAndHisInst(id).finally(() => (loading.value = false));
+    await deleteRunAndHisInstance(id).finally(() => (loading.value = false));
     getList();
   }
   proxy?.$modal.msgSuccess('鍒犻櫎鎴愬姛');

--
Gitblit v1.9.3