diff --git a/src/api/workflow/task/index.ts b/src/api/workflow/task/index.ts
index 2c31a23..88973ba 100644
--- a/src/api/workflow/task/index.ts
+++ b/src/api/workflow/task/index.ts
@@ -52,4 +52,28 @@ export const completeTask = (data: object) => {
});
};
+/**
+ * 认领任务
+ * @param taskId
+ * @returns {*}
+ */
+export const claim = (taskId: string) => {
+ return request({
+ url: '/workflow/task/claim/' + taskId,
+ method: 'post'
+ });
+};
+
+/**
+ * 归还任务
+ * @param taskId
+ * @returns {*}
+ */
+export const returnTask = (taskId: string) => {
+ return request({
+ url: '/workflow/task/returnTask/' + taskId,
+ method: 'post'
+ });
+};
+
diff --git a/src/views/workflow/processInstance/index.vue b/src/views/workflow/processInstance/index.vue
index b2493a7..0edde02 100644
--- a/src/views/workflow/processInstance/index.vue
+++ b/src/views/workflow/processInstance/index.vue
@@ -111,7 +111,7 @@
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
- @pagination="getProcessInstanceRunningList"
+ @pagination="handleQuery"
/>
@@ -219,7 +219,6 @@ const handleApprovalRecord = (row: any) => {
};
/** 搜索按钮操作 */
const handleQuery = () => {
- queryParams.value.pageNum = 1;
if ('running' === tab.value) {
getProcessInstanceRunningList();
} else {
@@ -274,6 +273,7 @@ const handleDelete = async (row: any) => {
proxy?.$modal.msgSuccess('删除成功');
};
const changeTab = async (data: string) => {
+ queryParams.value.pageNum = 1;
if ('running' === data) {
getProcessInstanceRunningList();
} else {
diff --git a/src/views/workflow/task/index.vue b/src/views/workflow/task/index.vue
index 8f51c88..7882ecd 100644
--- a/src/views/workflow/task/index.vue
+++ b/src/views/workflow/task/index.vue
@@ -38,15 +38,24 @@
-
-
-
- {{scope.row.businessStatusName}}
+
+
+
+
+ {{ item }}
+
+
+
+
+
+ {{ scope.row.assigneeName }}
+
-
+
- 已完成
+ {{scope.row.businessStatusName}}
+ 已完成
@@ -56,9 +65,15 @@
审批记录
-
+
办理
+
+ 归还
+
+
+ 认领
+
@@ -68,7 +83,7 @@
:total="total"
v-model:page="queryParams.pageNum"
v-model:limit="queryParams.pageSize"
- @pagination="getWaitingList"
+ @pagination="handleQuery"
/>
@@ -77,7 +92,7 @@