From 5ba65fdae91f1bcd7094c583ffc7d6056919d5c3 Mon Sep 17 00:00:00 2001 From: PLUTO <> Date: Wed, 11 Oct 2023 16:05:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 2 +- src/utils/jwTool.js | 20 +- .../dataBoard/overview/components/jdwgy.vue | 2 +- .../satisfactionEval/dissatisfied/index.vue | 392 +++++++++--------- .../dataBoard/satisfactionEval/index.vue | 56 +-- .../modules/TypesOfDissatisfaction/index.vue | 34 +- src/views/dataBoardMain/main-content.vue | 2 +- 7 files changed, 252 insertions(+), 256 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 6f93f324e..61058313f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -504,7 +504,7 @@ export const dataBoardRoutes = { }, }, { - path: "satisfactionEval/dissatisfied", + path: "satisfactionEval/dissatisfied/:id/:type/:timeType", props: true, component: () => import("@/views/dataBoard/satisfactionEval/dissatisfied/index"), name: "dataBoard-satisfactionEval-dissatisfied", diff --git a/src/utils/jwTool.js b/src/utils/jwTool.js index 058e03e1f..0da251e67 100644 --- a/src/utils/jwTool.js +++ b/src/utils/jwTool.js @@ -1,12 +1,16 @@ import Vue from "vue"; const paramsFormat = function (params) { - let strArray = [] - for(let key in params) { - if(params[key]) { - strArray.push(key+'='+params[key]) - } + const data = { ...params }; + if (data.satisfactionSource) { + data.satisfactionSource = data.satisfactionSource.join(","); + } + let strArray = []; + for (let key in data) { + if (data[key]) { + strArray.push(key + "=" + data[key]); } - return strArray.join('&') -} -Vue.prototype.$paramsFormat = paramsFormat + } + return strArray.join("&"); +}; +Vue.prototype.$paramsFormat = paramsFormat; diff --git a/src/views/dataBoard/overview/components/jdwgy.vue b/src/views/dataBoard/overview/components/jdwgy.vue index e554fc8a5..af9b3e2b3 100644 --- a/src/views/dataBoard/overview/components/jdwgy.vue +++ b/src/views/dataBoard/overview/components/jdwgy.vue @@ -126,7 +126,7 @@ export default { getData() { this.loading = true; if (this.currentLevelData.orgLevel == "grid") { - const personType = this.ifUnit ? "unit" : this.peopleType; + const personType = this.ifUnit && this.peopleType === "unit" ? "unit" : this.peopleType; this.$http.get("/actual/base/streetOverview/queryPersonnelGridGroup?personnelType=" + personType + "&level=" + this.currentLevelData.orgLevel + "&orgId=" + this.currentLevelData.orgId).then(({ data: { data } }) => { this.loading = false; this.wglist = data; diff --git a/src/views/dataBoard/satisfactionEval/dissatisfied/index.vue b/src/views/dataBoard/satisfactionEval/dissatisfied/index.vue index 27938d853..8c228b173 100644 --- a/src/views/dataBoard/satisfactionEval/dissatisfied/index.vue +++ b/src/views/dataBoard/satisfactionEval/dissatisfied/index.vue @@ -1,55 +1,20 @@