diff --git a/src/pages/projectQuality.vue b/src/pages/projectQuality.vue index 617e911..b96b709 100644 --- a/src/pages/projectQuality.vue +++ b/src/pages/projectQuality.vue @@ -479,10 +479,7 @@ export default { n = "" + n; return " ".substring(0, 3 - n.length) + n; }, - dtChange() { - if(this.isOneProject() && this.$refs.probList){ - this.$refs.probList.loadData(1, this.safeNav, this.selDate); - } + dtChange() { this.doDeptChane(); }, doDeptChane() { @@ -498,6 +495,9 @@ export default { postData.endDate = this.$dt(this.selDate[1]).format("YYYY-MM-DD"); } 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) => { return { text: it.problemArea, diff --git a/src/pages/projectSafety.vue b/src/pages/projectSafety.vue index 61305c8..e11d88d 100644 --- a/src/pages/projectSafety.vue +++ b/src/pages/projectSafety.vue @@ -434,7 +434,7 @@ export default { this.projectInfo = res; this.dept=this.$root.dept||this.dept; this.projects=this.$root.projects ||this.projects; - this.dtChange(); + this.dtChange(true); this.getWorkTrainChart(); this.getProjectSpecialView(); this.getDeptSafetyWorksList(); diff --git a/vue.config.js b/vue.config.js index 6a80e09..1d6c37e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -37,8 +37,8 @@ module.exports = defineConfig({ } }, '/jhapi':{ - //target: `http://62.234.3.186/jhapi/`, - target: `http://127.0.0.1:8090/jhapi/`, + target: `http://62.234.3.186/jhapi/`, + //target: `http://127.0.0.1:8090/jhapi/`, //target: `http://szgc.jhncidg.com/jhapi/`, changeOrigin: true, pathRewrite: {