update code

dev-login
haha 2023-08-27 17:53:33 +08:00
parent 72fb9cb1f3
commit de5e43ee2c
3 changed files with 21 additions and 6 deletions

View File

@ -147,7 +147,8 @@ export default {
},
dataTable: [],
dicts: [],
checkStateDicts: []
checkStateDicts: [],
selDate:[]
};
},
@ -178,6 +179,12 @@ export default {
} else {
postData.checkState = n
}
if(this.selDate.length>0){
postData.startDate=this.$dt(this.selDate[0]).format("YYYY-MM-DD");
}
if(this.selDate.length>1){
postData.endDate=this.$dt(this.selDate[1]).format("YYYY-MM-DD");
}
this.$api.problemmodify.listSspProblemmodify(postData).then(d => {
this.dataTable = (d.data || []).map(it => {
if(it.updateTime){
@ -204,7 +211,8 @@ export default {
this.elKey++;
})
},
showDialog(row, infoType,roleType) {
showDialog(row, infoType,roleType,selDate) {
this.selDate=selDate;
this.row = row;
this.infoType = infoType;
this.roleType=roleType;
@ -222,11 +230,18 @@ export default {
});
this.show = true
this.doNav(0, true);
this.$api.problemmodify.groupByInfotypeCheckState({
let postData={
projectId: this.row.projectId,
infoType: this.infoType,
roleType:this.roleType
}).then(d => {
};
if(this.selDate.length>0){
postData.startDate=this.$dt(this.selDate[0]).format("YYYY-MM-DD");
}
if(this.selDate.length>1){
postData.endDate=this.$dt(this.selDate[1]).format("YYYY-MM-DD");
}
this.$api.problemmodify.groupByInfotypeCheckState(postData).then(d => {
for (let i = 0; i <= 5; i++) {
this.count["" + i] = 0;
}

View File

@ -397,7 +397,7 @@ export default {
})
},
doProbleRowClick(a,b,c){
this.$refs.probDlg.showDialog(a,1,this.safeNav);
this.$refs.probDlg.showDialog(a,1,this.safeNav,this.selDate);
},
fmt(n){
n=""+n;

View File

@ -406,7 +406,7 @@ export default {
this.$refs.insDlg.showDialog(this.projects, this.projectInfo,row)
},
doProbleRowClick(a,b,c){
this.$refs.probDlg.showDialog(a,0,this.safeNav);
this.$refs.probDlg.showDialog(a,0,this.safeNav,this.selDate);
},
doSpecialRowClick(row){
row.title = row.projectName+"特种作业人员清单";