任务版面修改

master
lion 2 years ago
parent 4b16e847a2
commit f4dfb3a3e2

@ -60,8 +60,9 @@
<div class="tablecontent" :style="{'width':showSelectMonth?'89%':'100%'}"> <div class="tablecontent" :style="{'width':showSelectMonth?'89%':'100%'}">
<div class="topwrap"> <div class="topwrap">
<div> <div>
共有<span style="font-size: 24px;color:red;margin:0 5px">{{total}}</span>项任务 共有<span style="font-size: 24px;color:red;margin:0 5px">{{list.length}}</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">{{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>项未完成 <span v-else style="font-size: 24px;color:red;margin:0 5px">{{auditStatus1}}</span>项未完成
</div> </div>
<!-- <div v-if="path_type==5" class="myListFinish"> <!-- <div v-if="path_type==5" class="myListFinish">
@ -395,7 +396,7 @@
id: "12", id: "12",
value: '十二月' value: '十二月'
}], }],
chlidrenLength:0,//
table: [ table: [
{ {
label: "", label: "",
@ -666,7 +667,7 @@
...this.select, ...this.select,
audit_status:1 audit_status:1
}).then(res=>{ }).then(res=>{
this.auditStatus1 = res.total // this.auditStatus1 = res.total
}) })
}, },
async getList() { async getList() {
@ -724,7 +725,19 @@
}) })
this.list = _arr this.list = _arr
this.myListFinish = my_arr this.myListFinish = my_arr
console.log("spliceIndex",this.myListFinish) 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 this.total = res.total

Loading…
Cancel
Save