update code

dev-login
haha 2023-08-16 23:39:05 +08:00
parent 5e4b190dd7
commit f516c60810
4 changed files with 20 additions and 10 deletions

View File

@ -44,7 +44,7 @@ const groupByProjectCategory=(cb)=>{
}
let ret1= [getItems(1,1),getItems(1,2)];
let ret2= [getItems(2,1),getItems(2,2)];
let ret3= [getItems(3,1),getItems(3,2)];
let ret3= [getItems(4,1),getItems(4,2)];
let rets= [
ret1,ret2,ret3
];

View File

@ -39,6 +39,8 @@
<div :class="nav == 1 ? 'head-nav active' : 'head-nav'" @click="doNav(1)">({{ count['1'] }})</div>
<div :class="nav == 3 ? 'head-nav active' : 'head-nav'" @click="doNav(3)">({{ count['3'] }})</div>
<div :class="nav == 4 ? 'head-nav active' : 'head-nav'" @click="doNav(4)">({{ count['4'] }})</div>
<div :class="nav == 5 ? 'head-nav active' : 'head-nav'" @click="doNav(5)">({{ count['5'] }})</div>
</div>
<div class="data-list scroll" style="max-height:712px;overflow-y: auto;margin:12px 0px;overflow-x: hidden;">
<div v-for="(it, idx) in dataTable" :key="idx" class="data-item" :class="it.checkState!=4 && it.timeout?'time-out':''">
@ -71,7 +73,7 @@
</el-col>
<el-col :span="8" class="item-data">
<img src="images/title_icon.png"><span class="sp-lbl sp-lbl2">提交用户:</span>
<div class="div-text">{{ it.createUser }}</div>
<div class="div-text">{{ it.createBy }}</div>
</el-col>
<el-col :span="8" class="item-data">
<img src="images/title_icon.png"><span class="sp-lbl sp-lbl2">提交时间:</span>
@ -117,7 +119,8 @@ export default {
"0": 0,
"1": 0,
"3": 0,
"4": 0
"4": 0,
"5": 0
},
dataTable: [],
dicts: [],
@ -142,11 +145,16 @@ export default {
return;
}
this.nav = n;
this.$api.problemmodify.listSspProblemmodify({
let postData={
projectId: this.row.projectId,
infoType: this.infoType,
checkState: n
}).then(d => {
infoType: this.infoType,
};
if(n==5){
postData.activeName='zgcs'
}else{
postData.checkState=n
}
this.$api.problemmodify.listSspProblemmodify(postData).then(d => {
this.dataTable = (d.data || []).map(it=>{
if(it.nickedTime){
let dt1=+this.$dt(this.$dt(it.nickedTime).format("YYYY-MM-DD"));
@ -182,12 +190,14 @@ export default {
this.show = true
this.doNav(0, true);
this.$api.problemmodify.groupByInfotypeCheckState({
projectId: this.row.projectId
projectId: this.row.projectId,
infoType:this.infoType
}).then(d => {
let tmps = (d.data || []).filter(it => it.infoType == this.infoType);
tmps.forEach(it => {
this.count["" + it.checkState] = it.id;
})
console.log("--->",this.count)
})
}
},

View File

@ -81,7 +81,7 @@
</div>
<div :class="prjProcessNav == 1 ? 'active' : ''" @click="doPrjProcess(1, '拟建项目')">拟建项目({{ getPrjCateCount(1) }})
</div>
<div :class="prjProcessNav == 2 ? 'active' : ''" @click="doPrjProcess(2, '验收项目')">前期项目({{ getPrjCateCount(2) }})
<div :class="prjProcessNav == 2 ? 'active' : ''" @click="doPrjProcess(2, '完工项目')">完工项目({{ getPrjCateCount(3) }})
</div>
</div>
<el-row>

View File

@ -88,7 +88,7 @@
<div class="warning-info-title my-warning-info-title">
<div :class="pushNav==0?'active':''" @click="doPushNav(0,'在建项目')">({{ getPrjCateCount(0) }})</div>
<div :class="pushNav==1?'active':''" @click="doPushNav(1,'拟建项目')">({{ getPrjCateCount(1) }})</div>
<div :class="pushNav==2?'active':''" @click="doPushNav(2,'前期项目')">({{ getPrjCateCount(2) }})</div>
<div :class="pushNav==2?'active':''" @click="doPushNav(2,'完工项目')">({{ getPrjCateCount(2) }})</div>
</div>
<el-row>
<el-col :span="8">