update code
parent
72fb9cb1f3
commit
de5e43ee2c
|
@ -147,7 +147,8 @@ export default {
|
||||||
},
|
},
|
||||||
dataTable: [],
|
dataTable: [],
|
||||||
dicts: [],
|
dicts: [],
|
||||||
checkStateDicts: []
|
checkStateDicts: [],
|
||||||
|
selDate:[]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -178,6 +179,12 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
postData.checkState = n
|
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.$api.problemmodify.listSspProblemmodify(postData).then(d => {
|
||||||
this.dataTable = (d.data || []).map(it => {
|
this.dataTable = (d.data || []).map(it => {
|
||||||
if(it.updateTime){
|
if(it.updateTime){
|
||||||
|
@ -204,7 +211,8 @@ export default {
|
||||||
this.elKey++;
|
this.elKey++;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
showDialog(row, infoType,roleType) {
|
showDialog(row, infoType,roleType,selDate) {
|
||||||
|
this.selDate=selDate;
|
||||||
this.row = row;
|
this.row = row;
|
||||||
this.infoType = infoType;
|
this.infoType = infoType;
|
||||||
this.roleType=roleType;
|
this.roleType=roleType;
|
||||||
|
@ -222,11 +230,18 @@ export default {
|
||||||
});
|
});
|
||||||
this.show = true
|
this.show = true
|
||||||
this.doNav(0, true);
|
this.doNav(0, true);
|
||||||
this.$api.problemmodify.groupByInfotypeCheckState({
|
let postData={
|
||||||
projectId: this.row.projectId,
|
projectId: this.row.projectId,
|
||||||
infoType: this.infoType,
|
infoType: this.infoType,
|
||||||
roleType:this.roleType
|
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++) {
|
for (let i = 0; i <= 5; i++) {
|
||||||
this.count["" + i] = 0;
|
this.count["" + i] = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -397,7 +397,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
doProbleRowClick(a,b,c){
|
doProbleRowClick(a,b,c){
|
||||||
this.$refs.probDlg.showDialog(a,1,this.safeNav);
|
this.$refs.probDlg.showDialog(a,1,this.safeNav,this.selDate);
|
||||||
},
|
},
|
||||||
fmt(n){
|
fmt(n){
|
||||||
n=""+n;
|
n=""+n;
|
||||||
|
|
|
@ -406,7 +406,7 @@ export default {
|
||||||
this.$refs.insDlg.showDialog(this.projects, this.projectInfo,row)
|
this.$refs.insDlg.showDialog(this.projects, this.projectInfo,row)
|
||||||
},
|
},
|
||||||
doProbleRowClick(a,b,c){
|
doProbleRowClick(a,b,c){
|
||||||
this.$refs.probDlg.showDialog(a,0,this.safeNav);
|
this.$refs.probDlg.showDialog(a,0,this.safeNav,this.selDate);
|
||||||
},
|
},
|
||||||
doSpecialRowClick(row){
|
doSpecialRowClick(row){
|
||||||
row.title = row.projectName+"特种作业人员清单";
|
row.title = row.projectName+"特种作业人员清单";
|
||||||
|
|
Loading…
Reference in New Issue