This commit is contained in:
xiongchengqiang 2020-12-14 18:22:53 +08:00
parent 7de1238afe
commit 740a395b36
2 changed files with 8 additions and 5 deletions

View File

@ -395,6 +395,7 @@ export default {
if (res.code !== 200) {
this.$message.error(res.msg)
}
this.taskInfo = await this.$parent.handleGetTaskDetail(this.taskInfo.detailId)
this.handleGetPingLunList()
this.form.content = ''
},
@ -621,13 +622,14 @@ export default {
margin-bottom: 10px;
max-height:2000px;
transition:all 0.4s;
box-shadow: 0 1px 6px 0 rgba(0,0,0,.12), 0 1px 6px 0 rgba(0,0,0,.12);
&-top {
display: flex;
align-content: center;
justify-content: space-between;
border-bottom: 1px solid @borderColor;
margin: 20px 20px 0;
padding-bottom: 6px;
padding-bottom: 12px;
&-process {
display: flex;
align-content: center;

View File

@ -48,7 +48,7 @@
:stroke-width='4'
:percentage="Math.round((i.processRate * 100) * 1000) / 1000 "></el-progress>
<el-button type="text"
@click="handleLookProcess(i)"
@click="handleLookProcess(i.id)"
size="mini">
查看任务
</el-button>
@ -290,19 +290,20 @@ export default {
let res = await apiTaskDetail({ detailId: id })
if (res.code !== 200) {
this.$message.error(res.msg)
return false
return {}
}
return Object.assign({}, res.data, { detailId: id })
},
async handleLookProcess (item) {
console.log(item)
this.taskInfo = {}
let result = await this.handleGetTaskDetail(item.id)
if (!result) return
let result = await this.handleGetTaskDetail(item)
if (!result) return {}
this.taskInfo = result
this.$nextTick(() => {
this.drawer = true
})
return result
},
handleGetAllScore (arr) {
const result = arr.reduce((result, item) => {