From ac302b80acd54c2f1287b099a73832ce80336d97 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Tue, 22 Aug 2023 15:22:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sentiment/components/componentRight.vue | 38 +++++++++++++------ 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/src/views/privateOrder/sentiment/components/componentRight.vue b/src/views/privateOrder/sentiment/components/componentRight.vue index a6c69a1..0f6b675 100644 --- a/src/views/privateOrder/sentiment/components/componentRight.vue +++ b/src/views/privateOrder/sentiment/components/componentRight.vue @@ -69,17 +69,17 @@
专报
-
{{ filteryqbg(1) }}
+
{{Transfer[0].bg }}
月报
-
{{ filteryqbg(2) }}
+
{{ Transfer[1].bg }}
深度报告
-
{{ filteryqbg(3) }}
+
{{ Transfer[2].bg }}
@@ -340,7 +340,21 @@ export default { turnTime: null, tsdNum: 461, zbdNum: 475, - Transfer: {}, + Transfer: [ + { + type: 1, + bg: 0, + }, + { + type: 2, + bg: 0, + }, + { + type: 3, + bg: 0, + }, + ], + turnDetailsList: [], sentimeentList: { options: ["转办量", "转办详情"], @@ -437,17 +451,19 @@ export default { this.getOneList(); }, methods: { - filteryqbg(e) { - let arr = this.Transfer.reportList.filter((value) => { - return value.sentimentReportType == e; - }); - return arr[0].count; - }, getDataList() { yqbg().then((res) => { this.tsdNum = res.data.reminder; this.zbdNum = res.data.isturn; - this.Transfer = res.data; + res.data.reportList.forEach((value, index) => { + this.Transfer.forEach((value1,index1)=>{ + if(value.sentimentReportType == value1.type){ + this.Transfer[index1].bg = value.count + return + } + }) + }); + console.log(this.Transfer); }); //获取舆情列表 yuqingListA().then((res) => { From 1a2652c000a7136c54ded980869930ca00376070 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Tue, 22 Aug 2023 16:50:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=83=A8=E9=97=A8=E8=BD=AC=E5=8A=9E?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/wlSafe/index.js | 7 + .../sentiment/components/TransferVolume.vue | 213 +++++++++--------- .../sentiment/components/componentRight.vue | 77 +++---- 4 files changed, 151 insertions(+), 148 deletions(-) diff --git a/.env.development b/.env.development index c4d1aa9..ba1a2b9 100644 --- a/.env.development +++ b/.env.development @@ -4,6 +4,6 @@ ENV = 'development' # base api VUE_APP_BASE_API = '/dashboard' -VUE_APP_BASE_API2 = 'http://192.168.0.110:9027' +VUE_APP_BASE_API2 = 'http://192.168.0.106:9027' BASE_API = 'http://10.10.3.35:9070' diff --git a/src/api/wlSafe/index.js b/src/api/wlSafe/index.js index c28f97c..47505e8 100644 --- a/src/api/wlSafe/index.js +++ b/src/api/wlSafe/index.js @@ -20,4 +20,11 @@ export function safeRisks() { url: '/zongzhi/saftyscreen/safetyhazard', method: 'get', }) +} +//部门专办情况 +export function sectorZB() { + return request({ + url: '/zongzhi/opinionscreen/sentimentdept', + method: 'get', + }) } \ No newline at end of file diff --git a/src/views/privateOrder/sentiment/components/TransferVolume.vue b/src/views/privateOrder/sentiment/components/TransferVolume.vue index 2e1b3d0..2db946d 100644 --- a/src/views/privateOrder/sentiment/components/TransferVolume.vue +++ b/src/views/privateOrder/sentiment/components/TransferVolume.vue @@ -11,59 +11,63 @@