fix bug:自动审批
This commit is contained in:
1 parent
cf99cb74e1
commit
697918321c
3 files changed
+38
-33
No files matched your search
@@ -208,7 +208,6 @@
|
||||
|
||||
// 表格相关数据
|
||||
isTableZebraLineShown: true,
|
||||
// 生日日期选择
|
||||
validationRules: {
|
||||
requireRules: [
|
||||
v => !!v || 'This is required',
|
||||
@@ -219,8 +218,8 @@
|
||||
tableData: [],
|
||||
historyData: [],
|
||||
headers: [
|
||||
{ text: "审批ID", value: "taskId", width: 120 },
|
||||
{ text: "分组", value: "taskTemplateGroup", width: 120 },
|
||||
{ text: "审批ID", value: "taskId", width: 90 },
|
||||
{ text: "分组", value: "taskTemplateGroup", width: 100 },
|
||||
{ text: "审批项", value: "taskTitle", width: 200 },
|
||||
{ text: "创建者", value: "taskInitUser", width: 120 },
|
||||
{ text: "创建时间", value: "taskCreateAt", width: 150 },
|
||||
@@ -363,7 +362,7 @@
|
||||
}
|
||||
})
|
||||
await window.vtoast.success("提交审核成功");
|
||||
this.isSubmitNodeLoading = true
|
||||
this.isSubmitNodeLoading = false
|
||||
},
|
||||
async closeSubmitDrawer() {
|
||||
this.isSubmitDrawerShown = false;
|
||||
|
||||
@@ -52,10 +52,7 @@
|
||||
</template>
|
||||
<!--审核状态-->
|
||||
<template v-slot:item.taskStatus="{ item }">
|
||||
<v-chip v-if="item.taskStatus === '已结束'" color="red" x-small dark>
|
||||
{{item.taskStatus}}
|
||||
</v-chip>
|
||||
<v-chip v-else color="green" x-small dark >
|
||||
<v-chip :color="`${taskStatusColor[item.taskStatus]}`" x-small dark >
|
||||
{{item.taskStatus}}
|
||||
</v-chip>
|
||||
</template>
|
||||
@@ -66,7 +63,7 @@
|
||||
<v-icon size="16" class="success--text">mdi-text-box-outline</v-icon>
|
||||
查看
|
||||
</span>
|
||||
<span v-if="item.taskStatus !== '已结束'" role="button" class="error--text jh-font-size-3 ml-2" @click="doUiAction('revokeTask', item)">
|
||||
<span v-if="item.taskStatus == '审核中'" role="button" class="error--text jh-font-size-3 ml-2" @click="doUiAction('revokeTask', item)">
|
||||
<v-icon size="16" class="error--text">mdi-arrow-u-left-top</v-icon>
|
||||
撤回
|
||||
</span>
|
||||
@@ -184,16 +181,22 @@
|
||||
tableData: [],
|
||||
headers: [
|
||||
{ text: "申请ID", value: "taskId", width: 100 },
|
||||
{ text: "申请分组", value: "taskTemplateGroup", width: 120 },
|
||||
{ text: "申请名称", value: "taskTitle", width: 350 },
|
||||
{ text: "申请状态", value: "taskStatus" },
|
||||
{ text: "申请时间", value: "taskCreateAt", width: 300 },
|
||||
{ text: "结束时间", value: "taskFinishAt", width: 300 },
|
||||
{ text: '操作', value: 'action', align: 'center', sortable: false, width: 150, class: 'fixed', cellClass: 'fixed' },
|
||||
{ text: "申请状态", value: "taskStatus", width: 150 },
|
||||
{ text: "申请时间", value: "taskCreateAt", width: 250 },
|
||||
{ text: "结束时间", value: "taskFinishAt", width: 250 },
|
||||
{ text: '操作', value: 'action', align: 'center', sortable: false, width: 200, class: 'fixed', cellClass: 'fixed' },
|
||||
],
|
||||
|
||||
isViewDrawerShown: false,
|
||||
viewItem: {},
|
||||
userId: '<$ ctx.userInfo.userId $>'
|
||||
userId: '<$ ctx.userInfo.userId $>',
|
||||
taskStatusColor:{
|
||||
'已通过': 'primary',
|
||||
'已拒绝': 'red',
|
||||
'审核中': 'blue'
|
||||
}
|
||||
},
|
||||
// 计算
|
||||
computed: {
|
||||
@@ -243,8 +246,9 @@
|
||||
|
||||
const rows = result.data.appData.resultData.rows;
|
||||
const statusMap = {
|
||||
'running': '审核中',
|
||||
'end': '已结束',
|
||||
'success': '已通过',
|
||||
'reject': '已拒绝',
|
||||
'running': '审核中'
|
||||
};
|
||||
rows.forEach(row => {
|
||||
row.taskFormInput = JSON.parse(row.taskFormInput);
|
||||
|
||||
Reference in new issue
Block a user