任务版面修改

master
lion 1 year ago
parent 4b16e847a2
commit f4dfb3a3e2

@ -60,8 +60,9 @@
<div class="tablecontent" :style="{'width':showSelectMonth?'89%':'100%'}">
<div class="topwrap">
<div>
共有<span style="font-size: 24px;color:red;margin:0 5px">{{total}}</span>项任务
<span v-if="path_type==5" style="font-size: 24px;color:red;margin:0 5px">{{list.length}}</span>
共有<span style="font-size: 24px;color:red;margin:0 5px">{{list.length}}</span>项任务分解后共
<span style="font-size: 24px;color:red;margin:0 5px">{{chlidrenLength}}</span>项子任务
<span v-if="path_type==5" style="font-size: 24px;color:red;margin:0 5px">{{list.length}}</span>
<span v-else style="font-size: 24px;color:red;margin:0 5px">{{auditStatus1}}</span>项未完成
</div>
<!-- <div v-if="path_type==5" class="myListFinish">
@ -348,9 +349,9 @@
}],
unitTypeList: [],
askList: [],
myListFinishStatus:true,
myListFinishStatus:true,
list: [],
myListFinish:[],
myListFinish:[],
sectionList: [],
currentTableList: [],
auditStatus1: 0,
@ -395,7 +396,7 @@
id: "12",
value: '十二月'
}],
chlidrenLength:0,//
table: [
{
label: "",
@ -666,7 +667,7 @@
...this.select,
audit_status:1
}).then(res=>{
this.auditStatus1 = res.total
// this.auditStatus1 = res.total
})
},
async getList() {
@ -703,28 +704,40 @@
let my_no_arr = [] //
if(this.path_type == 5){
const newArr = res.data.filter((_, index) => !spliceIndex.includes(index));
newArr.map(item=>{
if(item.audit_status==5 || (item.mission_finished && item.mission_finished.length>0)){
console.log("item.mission_finished",item.id,item.mission_finished)
my_arr.push(item)
}else{
my_no_arr.push(item)
}
})
newArr.map(item=>{
if(item.audit_status==5 || (item.mission_finished && item.mission_finished.length>0)){
console.log("item.mission_finished",item.id,item.mission_finished)
my_arr.push(item)
}else{
my_no_arr.push(item)
}
})
_arr = this.buildTree(my_no_arr)
my_arr = this.buildTree(my_arr)
my_arr = this.buildTree(my_arr)
}else{
_arr = this.buildTree(res.data)
}
_arr.map((r,index)=>{
r.pindex = index+1
})
my_arr.map((r,index)=>{
r.pindex = index+1
})
my_arr.map((r,index)=>{
r.pindex = index+1
})
this.list = _arr
this.myListFinish = my_arr
console.log("spliceIndex",this.myListFinish)
this.myListFinish = my_arr
let chlidrenLength = 0
let auditStatus1 = 0
this.list.map(item=>{
if(item.mychildren&&item.mychildren.length>0){
chlidrenLength+=item.mychildren.length
}
if(item.audit_status===1){
auditStatus1++
}
})
this.auditStatus1 = auditStatus1
this.chlidrenLength = chlidrenLength
console.log("spliceIndex",this.list,chlidrenLength)
this.total = res.total

Loading…
Cancel
Save