|
@@ -45,7 +45,10 @@
|
|
<template slot="taskStatus" slot-scope="scope">
|
|
<template slot="taskStatus" slot-scope="scope">
|
|
<div style="line-height: 16px">
|
|
<div style="line-height: 16px">
|
|
<span>{{ getTaskStatusVal(scope.row.taskStatus) }}</span>
|
|
<span>{{ getTaskStatusVal(scope.row.taskStatus) }}</span>
|
|
- <el-tooltip class="item" effect="dark" :content="'拒绝原因:' + (scope.row.taskStatusInfo || '')" placement="top-start">
|
|
|
|
|
|
+ <el-tooltip class="item" effect="dark" placement="top-start">
|
|
|
|
+ <div slot="content">
|
|
|
|
+ <span class="reason">{{ getReason(scope.row) }}</span>
|
|
|
|
+ </div>
|
|
<i v-if="scope.row.taskStatus === '4'" class="el-icon-question f16 ml2"></i>
|
|
<i v-if="scope.row.taskStatus === '4'" class="el-icon-question f16 ml2"></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
@@ -258,6 +261,12 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getReason(item) {
|
|
|
|
+ let str = item.checkState?.checkMsg || item.taskStatusInfo;
|
|
|
|
+
|
|
|
|
+ let reason = `拒绝原因: "${str}"`;
|
|
|
|
+ return reason;
|
|
|
|
+ },
|
|
getTaskStatusVal(taskStatus) {
|
|
getTaskStatusVal(taskStatus) {
|
|
taskStatus = String(taskStatus).trim();
|
|
taskStatus = String(taskStatus).trim();
|
|
const curr = this.task_status_dict.find((item) => item.value == Number(taskStatus));
|
|
const curr = this.task_status_dict.find((item) => item.value == Number(taskStatus));
|
|
@@ -537,4 +546,7 @@ export default {
|
|
border: 1px solid #f2f2f2;
|
|
border: 1px solid #f2f2f2;
|
|
margin-bottom: 15px;
|
|
margin-bottom: 15px;
|
|
}
|
|
}
|
|
|
|
+.reason {
|
|
|
|
+ white-space: pre;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|