This commit is contained in:
xiongchengqiang 2020-12-15 18:11:59 +08:00
parent b944d7d404
commit ed7172adbb

View File

@ -43,15 +43,21 @@
v-html="i.target"> v-html="i.target">
</div> </div>
<div class="jindu"> <div class="jindu">
<el-progress type="circle" <el-progress v-if='i.taskDtos.length !== 0' type="circle"
:width='50' :width='50'
:stroke-width='4' :stroke-width='4'
:percentage="Math.round((i.processRate * 100) * 1000) / 1000 "></el-progress> :percentage="Math.round((i.processRate * 100) * 1000) / 1000 "></el-progress>
<el-button type="text" <el-button v-if='i.taskDtos.length !== 0' type="text"
@click="handleLookProcess(i.id)" @click="handleLookProcess(i.id)"
size="mini"> size="mini">
查看任务 查看任务
</el-button> </el-button>
<el-button v-if='i.taskDtos.length === 0' type="text"
@click="handleLookProcess(i.id)"
size="mini">
暂无任务<br/>去添加
</el-button>
</div> </div>
<div class="kaohe pre" style="justify-content: flex-start;"> <div class="kaohe pre" style="justify-content: flex-start;">
<pre> <pre>
@ -298,7 +304,6 @@ export default {
return Object.assign({}, res.data, { detailId: id }) return Object.assign({}, res.data, { detailId: id })
}, },
async handleLookProcess (item) { async handleLookProcess (item) {
console.log(item)
this.taskInfo = {} this.taskInfo = {}
let result = await this.handleGetTaskDetail(item) let result = await this.handleGetTaskDetail(item)
if (!result) return {} if (!result) return {}