我的申请

This commit is contained in:
ChenXinXin committed 2024-05-07 13:46:55 +08:00
1 parent 9bec3c6de0
commit ce5cb62367
2 files changed
+12 -9

No files matched your search

+2 -2
View File
@@ -251,7 +251,7 @@ Vue.component("create-task-drawer", {
const {rows} = (await window.jianghuAxios({ const {rows} = (await window.jianghuAxios({
data: { data: {
appData: { appData: {
pageId: 'createTaskDrawer', pageId: 'taskApply',
actionId: 'selectUserList', actionId: 'selectUserList',
actionData: {}, actionData: {},
where: {}, where: {},
@@ -287,7 +287,7 @@ Vue.component("create-task-drawer", {
const {rows} = (await window.jianghuAxios({ const {rows} = (await window.jianghuAxios({
data: { data: {
appData: { appData: {
pageId: 'createTaskDrawer', pageId: 'taskApply',
actionId: 'selectGroupList', actionId: 'selectGroupList',
actionData: {}, actionData: {},
where: {}, where: {},
+10 -7
View File
@@ -11,7 +11,7 @@
<div class="jh-page-second-bar px-8"> <div class="jh-page-second-bar px-8">
<v-row class="align-center"> <v-row class="align-center">
<v-col cols="12" xs="12" sm="12" md="4" xl="3"> <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"> <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>帮助 <v-icon size="13" class="success--text">mdi-help-circle-outline</v-icon>帮助
@@ -177,10 +177,11 @@
isTableLoading: true, isTableLoading: true,
tableData: [], tableData: [],
headers: [ headers: [
{ text: "审批项", value: "taskTitle", width: 350 }, { text: "申请ID", value: "taskId", width: 100 },
{ text: "审核状态", value: "taskStatus" }, { text: "申请名称", value: "taskTitle", width: 350 },
{ text: "操作者", value: "operationByUser", width: 120 }, { text: "申请状态", value: "taskStatus" },
{ text: "操作时间", value: "operationAt", width: 250 }, { text: "申请时间", value: "taskCreateAt", width: 300 },
{ text: "结束时间", value: "taskFinishAt", width: 300 },
{ text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' }, { text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' },
], ],
@@ -220,9 +221,10 @@
const result = await window.jianghuAxios({ const result = await window.jianghuAxios({
data: { data: {
appData: { appData: {
pageId: 'taskHistory', pageId: 'taskManagement',
actionId: 'selectItemList', actionId: 'selectItemList',
actionData: {}, actionData: {},
where:{taskInitUser: this.userId},
orderBy: [{ column: 'operationAt', order: 'desc' }] orderBy: [{ column: 'operationAt', order: 'desc' }]
} }
} }
@@ -235,7 +237,8 @@
}; };
rows.forEach(row => { rows.forEach(row => {
row.taskFormInput = JSON.parse(row.taskFormInput); row.taskFormInput = JSON.parse(row.taskFormInput);
row.operationAt = dayjs(row.operationAt).format('YYYY-MM-DD HH:mm:ss'); row.taskCreateAt = row.taskCreateAt && dayjs(row.taskCreateAt).format('YYYY-MM-DD HH:mm:ss');
row.taskFinishAt = row.taskFinishAt && dayjs(row.taskFinishAt).format('YYYY-MM-DD HH:mm:ss');
row.taskStatus = statusMap[row.taskStatus]; row.taskStatus = statusMap[row.taskStatus];
}); });
this.tableData = rows; this.tableData = rows;