fix(flow) flow reject status

pull/3/head
bob 2 years ago
parent dae69da8ca
commit 96267e98a2

@ -114,7 +114,7 @@
<el-timeline-item
v-for="(item,index ) in flowRecordList"
:key="record"
:icon="setIcon(item.finishTime)"
:icon="setIcon(item.finishTime, item.comment)"
:color="setColor(item.finishTime)"
>
<p style="font-weight: 700">{{item.taskName}}</p>
@ -147,6 +147,8 @@
{{item.comment.comment}}
</el-descriptions-item>
</el-descriptions>
<img v-if="isRefuse(item.comment)" src="@/assets/images/refuse.png" width="50" height="50">
<!-- <p v-if="item.comment">-->
<!-- <el-tag type="success" v-if="item.comment.type === '1'"> {{item.comment.comment}}</el-tag>-->
@ -385,6 +387,9 @@ export default {
this.getFlowRecordList(this.taskForm.procInsId, this.taskForm.deployId);
this.finished = finished;
},
isRefuse(comment) {
return comment !== null &&comment !== undefined && comment.type !== null && comment.type !== undefined && comment.type === "3"
},
/** 查询部门下拉树结构 */
getTreeselect() {
treeselect().then(response => {
@ -421,8 +426,13 @@ export default {
this.taskList = res.data
})
},
setIcon(val) {
if (val) {
setIcon(finishTime,comment) {
console.log('setIcon::',comment)
//
if (this.isRefuse(comment)) {
return "el-icon-close";
} else if (finishTime) {
return "el-icon-check";
} else {
return "el-icon-time";

@ -419,7 +419,6 @@ export default {
this.taskForm.taskId= this.flowRecordList[0].taskId
complete(this.taskForm).then(response => {
this.msgSuccess(response.msg);
this.goBack();
});
},
/** 审批任务 */

Loading…
Cancel
Save