Browse Source

fix 修复 流程定义分页问题

疯狂的狮子Li 5 months ago
parent
commit
bfc6e7b8da
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/views/workflow/processDefinition/index.vue

+ 9 - 1
src/views/workflow/processDefinition/index.vue

@@ -116,7 +116,7 @@
               v-model:page="queryParams.pageNum"
               v-model:limit="queryParams.pageSize"
               :total="total"
-              @pagination="handleQuery"
+              @pagination="getPageList"
             />
           </el-tabs>
         </el-card>
@@ -323,6 +323,14 @@ const handleSelectionChange = (selection: any) => {
   multiple.value = !selection.length;
 };
 //分页
+const getPageList = async () => {
+  if (activeName.value === '0') {
+    getList();
+  } else {
+    getUnPublishList();
+  }
+};
+//分页
 const getList = async () => {
   loading.value = true;
   const resp = await listDefinition(queryParams.value);