优化
This commit is contained in:
parent
7de1238afe
commit
740a395b36
@ -395,6 +395,7 @@ export default {
|
|||||||
if (res.code !== 200) {
|
if (res.code !== 200) {
|
||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
}
|
}
|
||||||
|
this.taskInfo = await this.$parent.handleGetTaskDetail(this.taskInfo.detailId)
|
||||||
this.handleGetPingLunList()
|
this.handleGetPingLunList()
|
||||||
this.form.content = ''
|
this.form.content = ''
|
||||||
},
|
},
|
||||||
@ -621,13 +622,14 @@ export default {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
max-height:2000px;
|
max-height:2000px;
|
||||||
transition:all 0.4s;
|
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 {
|
&-top {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-bottom: 1px solid @borderColor;
|
border-bottom: 1px solid @borderColor;
|
||||||
margin: 20px 20px 0;
|
margin: 20px 20px 0;
|
||||||
padding-bottom: 6px;
|
padding-bottom: 12px;
|
||||||
&-process {
|
&-process {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
: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 type="text"
|
||||||
@click="handleLookProcess(i)"
|
@click="handleLookProcess(i.id)"
|
||||||
size="mini">
|
size="mini">
|
||||||
查看任务
|
查看任务
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -290,19 +290,20 @@ export default {
|
|||||||
let res = await apiTaskDetail({ detailId: id })
|
let res = await apiTaskDetail({ detailId: id })
|
||||||
if (res.code !== 200) {
|
if (res.code !== 200) {
|
||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
return false
|
return {}
|
||||||
}
|
}
|
||||||
return Object.assign({}, res.data, { detailId: id })
|
return Object.assign({}, res.data, { detailId: id })
|
||||||
},
|
},
|
||||||
async handleLookProcess (item) {
|
async handleLookProcess (item) {
|
||||||
console.log(item)
|
console.log(item)
|
||||||
this.taskInfo = {}
|
this.taskInfo = {}
|
||||||
let result = await this.handleGetTaskDetail(item.id)
|
let result = await this.handleGetTaskDetail(item)
|
||||||
if (!result) return
|
if (!result) return {}
|
||||||
this.taskInfo = result
|
this.taskInfo = result
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.drawer = true
|
this.drawer = true
|
||||||
})
|
})
|
||||||
|
return result
|
||||||
},
|
},
|
||||||
handleGetAllScore (arr) {
|
handleGetAllScore (arr) {
|
||||||
const result = arr.reduce((result, item) => {
|
const result = arr.reduce((result, item) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user