BUG Fixed 产发集团的账号进去,选单个项目的时候,取不到数据
parent
10c1c736be
commit
3529c66a4f
|
@ -479,10 +479,7 @@ export default {
|
||||||
n = "" + n;
|
n = "" + n;
|
||||||
return " ".substring(0, 3 - n.length) + n;
|
return " ".substring(0, 3 - n.length) + n;
|
||||||
},
|
},
|
||||||
dtChange() {
|
dtChange() {
|
||||||
if(this.isOneProject() && this.$refs.probList){
|
|
||||||
this.$refs.probList.loadData(1, this.safeNav, this.selDate);
|
|
||||||
}
|
|
||||||
this.doDeptChane();
|
this.doDeptChane();
|
||||||
},
|
},
|
||||||
doDeptChane() {
|
doDeptChane() {
|
||||||
|
@ -498,6 +495,9 @@ export default {
|
||||||
postData.endDate = this.$dt(this.selDate[1]).format("YYYY-MM-DD");
|
postData.endDate = this.$dt(this.selDate[1]).format("YYYY-MM-DD");
|
||||||
}
|
}
|
||||||
this.$api.problemmodify.qualitySummary(postData).then((d) => {
|
this.$api.problemmodify.qualitySummary(postData).then((d) => {
|
||||||
|
if(this.isOneProject() && this.$refs.probList){
|
||||||
|
this.$refs.probList.loadData(1, this.safeNav, this.selDate);
|
||||||
|
}
|
||||||
this.summary = (d || []).map((it) => {
|
this.summary = (d || []).map((it) => {
|
||||||
return {
|
return {
|
||||||
text: it.problemArea,
|
text: it.problemArea,
|
||||||
|
|
|
@ -434,7 +434,7 @@ export default {
|
||||||
this.projectInfo = res;
|
this.projectInfo = res;
|
||||||
this.dept=this.$root.dept||this.dept;
|
this.dept=this.$root.dept||this.dept;
|
||||||
this.projects=this.$root.projects ||this.projects;
|
this.projects=this.$root.projects ||this.projects;
|
||||||
this.dtChange();
|
this.dtChange(true);
|
||||||
this.getWorkTrainChart();
|
this.getWorkTrainChart();
|
||||||
this.getProjectSpecialView();
|
this.getProjectSpecialView();
|
||||||
this.getDeptSafetyWorksList();
|
this.getDeptSafetyWorksList();
|
||||||
|
|
|
@ -37,8 +37,8 @@ module.exports = defineConfig({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/jhapi':{
|
'/jhapi':{
|
||||||
//target: `http://62.234.3.186/jhapi/`,
|
target: `http://62.234.3.186/jhapi/`,
|
||||||
target: `http://127.0.0.1:8090/jhapi/`,
|
//target: `http://127.0.0.1:8090/jhapi/`,
|
||||||
//target: `http://szgc.jhncidg.com/jhapi/`,
|
//target: `http://szgc.jhncidg.com/jhapi/`,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|
Loading…
Reference in New Issue