我的申请
This commit is contained in:
1 parent
9bec3c6de0
commit
ce5cb62367
3 files changed
+16
-13
No files matched your search
@@ -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: {},
|
||||||
|
|||||||
@@ -45,9 +45,9 @@
|
|||||||
<v-card>
|
<v-card>
|
||||||
<div class="d-flex flex-wrap">
|
<div class="d-flex flex-wrap">
|
||||||
<div
|
<div
|
||||||
v-for="icon in materialDesignIcons"
|
v-for="icon in materialDesignIcons"
|
||||||
:class="`item-icon pa-1 ${workflowInfo.taskTemplateIcon == icon && 'grey lighten-2'}`"
|
:class="`item-icon pa-1 ${workflowInfo.taskTemplateIcon == icon && 'grey lighten-2'}`"
|
||||||
@click="workflowInfo.taskTemplateIcon = icon"
|
@click="workflowInfo.taskTemplateIcon = icon"
|
||||||
>
|
>
|
||||||
<v-img
|
<v-img
|
||||||
max-height="30"
|
max-height="30"
|
||||||
|
|||||||
@@ -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,11 +177,12 @@
|
|||||||
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: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed'},
|
{ text: "结束时间", value: "taskFinishAt", width: 300 },
|
||||||
|
{ text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' },
|
||||||
],
|
],
|
||||||
|
|
||||||
isViewDrawerShown: false,
|
isViewDrawerShown: false,
|
||||||
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user