我的审批展示逻辑
This commit is contained in:
1 parent
c44365e44f
commit
d2cfd28e41
5 files changed
+39
-20
No files matched your search
@@ -11,7 +11,7 @@
|
||||
<div class="jh-page-second-bar px-8">
|
||||
<v-row class="align-center">
|
||||
<v-col cols="12" xs="12" sm="12" md="4" xl="3">
|
||||
<div class="py-4 text-body-1 font-weight-bold">我的任务
|
||||
<div class="py-4 text-body-1 font-weight-bold">我的审批
|
||||
<!-- 帮助页按钮 -->
|
||||
<span role="button" class="success--text font-weight-regular jh-font-size-13 ml-2" @click="isHelpPageDrawerShown = true">
|
||||
<v-icon size="13" class="success--text">mdi-help-circle-outline</v-icon>帮助
|
||||
@@ -288,16 +288,10 @@
|
||||
pageId: 'todo',
|
||||
actionId: 'selectItemList',
|
||||
actionData: {},
|
||||
where: { taskStatus: 'running' },
|
||||
whereLike: { taskEditUserList: this.userId },
|
||||
orderBy: [{ column: 'operationAt', order: 'desc' }]
|
||||
}
|
||||
}
|
||||
});
|
||||
const rows = result.data.appData.resultData.rows;
|
||||
|
||||
this.tableData = rows.filter(item => !item.taskEditedUserList || !item.taskEditedUserList.includes(this.userId));
|
||||
|
||||
this.tableData = result.data.appData.resultData;
|
||||
this.isTableLoading = false;
|
||||
},
|
||||
async getHistoryData() {
|
||||
@@ -309,12 +303,14 @@
|
||||
actionId: 'selectHistoryList',
|
||||
actionData: {},
|
||||
whereLike: { taskEditUserList: '<$ ctx.userInfo.userId $>', taskConfigId: 'approvalTask-' },
|
||||
orderBy: [{ column: 'id', order: 'desc' }]
|
||||
orderBy: [{ column: 'operationAt', order: 'desc' }]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
const rows = result.data.appData.resultData.rows;
|
||||
var rows = result.data.appData.resultData.rows;
|
||||
// 根据taskId去重
|
||||
rows = _.uniqBy(rows, 'taskId')
|
||||
rows.forEach(row => {
|
||||
row.operationAt = dayjs(row.operationAt).format('YYYY-MM-DD HH:mm:ss');
|
||||
});
|
||||
@@ -130,7 +130,8 @@
|
||||
return {
|
||||
workflowId, workflowName,
|
||||
taskTemplateIcon: info.taskTemplateIcon,
|
||||
taskTemplateGroup: info.taskTemplateGroup || '未命名',
|
||||
taskTemplateGroup: info.taskTemplateGroup || '未分类',
|
||||
workflowInfo: info,
|
||||
workflowForm: JSON.parse(workflowForm),
|
||||
workflowConfig: JSON.parse(workflowConfig),
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
isTableLoading: true,
|
||||
tableData: [],
|
||||
headers: [
|
||||
{ text: "审批项", value: "taskTitle", width: 150 },
|
||||
{ text: "审批项", value: "taskTitle", width: 350 },
|
||||
{ text: "审核状态", value: "taskStatus" },
|
||||
{ text: "操作者", value: "operationByUser", width: 120 },
|
||||
{ text: "操作时间", value: "operationAt", width: 250 },
|
||||
Reference in new issue
Block a user