Merge branch 'yezhaocheng' of kmk/cloud_approval into master

This commit is contained in:
296988245 2022-05-17 14:28:54 +08:00 committed by Gogs
commit 3321d6d400
2 changed files with 15 additions and 15 deletions

View File

@ -15,7 +15,7 @@
</el-select>
</el-form-item>
<el-form-item label="表达式" v-if="flowConditionForm.conditionType && flowConditionForm.conditionType === 'expression'" key="express">
<el-input v-model="flowConditionForm.body" clearable @change="updateFlowCondition" />
<el-input v-model="flowConditionForm.body" style="width:192px;" clearable @change="updateFlowCondition" />
</el-form-item>
<template v-if="flowConditionForm.conditionType && flowConditionForm.conditionType === 'script'">
<el-form-item label="脚本语言" key="language">

View File

@ -60,7 +60,7 @@
审批人{{ item.assigneeUser.nickname }}
<el-tag type="info" size="mini">{{ item.assigneeUser.deptName }}</el-tag>
</label>
<label style="font-weight: normal">创建时间</label>
<label style="font-weight: normal" v-if="item.createTime">创建时间</label>
<label style="color:#8a909c; font-weight: normal">{{ parseTime(item.createTime) }}</label>
<label v-if="item.endTime" style="margin-left: 30px;font-weight: normal">审批时间</label>
<label v-if="item.endTime" style="color:#8a909c;font-weight: normal"> {{ parseTime(item.endTime) }}</label>
@ -234,19 +234,19 @@ export default {
//
this.tasks = response.data;
//
this.tasks.sort((a, b) => {
//
if (a.endTime && b.endTime) {
return b.endTime - a.endTime;
} else if (a.endTime) {
return 1;
} else if (b.endTime) {
return -1;
//
} else {
return b.createTime - a.createTime;
}
});
// this.tasks.sort((a, b) => {
// //
// if (a.endTime && b.endTime) {
// return b.endTime - a.endTime;
// } else if (a.endTime) {
// return 1;
// } else if (b.endTime) {
// return -1;
// //
// } else {
// return b.createTime - a.createTime;
// }
// });
//
const userId = store.getters.userId;