From 3529c66a4f7c1c0ec75a53593bfc98257f7416fb Mon Sep 17 00:00:00 2001 From: haha Date: Sat, 8 Jun 2024 20:19:10 +0800 Subject: [PATCH] =?UTF-8?q?BUG=20Fixed=20=E4=BA=A7=E5=8F=91=E9=9B=86?= =?UTF-8?q?=E5=9B=A2=E7=9A=84=E8=B4=A6=E5=8F=B7=E8=BF=9B=E5=8E=BB=EF=BC=8C?= =?UTF-8?q?=E9=80=89=E5=8D=95=E4=B8=AA=E9=A1=B9=E7=9B=AE=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=EF=BC=8C=E5=8F=96=E4=B8=8D=E5=88=B0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/projectQuality.vue | 8 ++++---- src/pages/projectSafety.vue | 2 +- vue.config.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) 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: {