From d3172c8e2281c1c2db8b6830ec2b4e9567349e7c Mon Sep 17 00:00:00 2001 From: xuhaoyun Date: Tue, 16 May 2023 09:13:18 +0800 Subject: [PATCH] 0515 --- src/utils/request.js | 4 ++-- src/views/safetyIndex/toubu.vue | 25 ++++++++++++------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 17da0e6..030db14 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -4,8 +4,8 @@ import vm from "../main"; import { getToken } from '@/utils/auth' axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' const request = axios.create({ - //baseURL: 'http://172.18.113.50:8080/zhapi', - baseURL: `http://${window.location.host}/zhapi`, + baseURL: 'http://172.18.113.50:8080/zhapi', + //baseURL: `http://${window.location.host}/zhapi`, timeout: 50000, headers: { 'content-type': 'application/json' }, }) diff --git a/src/views/safetyIndex/toubu.vue b/src/views/safetyIndex/toubu.vue index 14e3032..5165f39 100644 --- a/src/views/safetyIndex/toubu.vue +++ b/src/views/safetyIndex/toubu.vue @@ -23,32 +23,36 @@
-
{{ statisticsDangerData[0].companyTypeName }}
-
{{ statisticsDangerData[0].companyTypeSum }} +
{{ statisticsDangerData[0] ? statisticsDangerData[0].companyTypeName : '' }}
+
{{ + statisticsDangerData[0] ? statisticsDangerData[0].companyTypeSum : 0 }}  家
-
{{ statisticsDangerData[1].companyTypeName }}
-
{{ statisticsDangerData[1].companyTypeSum }} +
{{ statisticsDangerData[1] ? statisticsDangerData[1].companyTypeName : '' }}
+
{{ + statisticsDangerData[1] ? statisticsDangerData[1].companyTypeSum : 0 }}  家
-
{{ statisticsDangerData[2].companyTypeName }}
-
{{ statisticsDangerData[2].companyTypeSum }} +
{{ statisticsDangerData[2] ? statisticsDangerData[2].companyTypeName : '' }}
+
{{ + statisticsDangerData[2] ? statisticsDangerData[2].companyTypeSum : 0 }}  家
-
{{ statisticsDangerData[3].companyTypeName }}
-
{{ statisticsDangerData[3].companyTypeSum }} +
{{ statisticsDangerData[3] ? statisticsDangerData[3].companyTypeName : '' }}
+
{{ + statisticsDangerData[3] ? statisticsDangerData[3].companyTypeSum : 0 }}  家
@@ -136,8 +140,6 @@ export default { statisticsDangerData: [], statisticsDetailData: {}, topSortData: [], - - } }, created() { @@ -168,7 +170,6 @@ export default { this.topSortData = res.data }) }, - }, } @@ -182,7 +183,6 @@ export default { box-sizing: border-box; position: relative; - .topBox { width: 100%; height: 30%; @@ -440,7 +440,6 @@ export default { color: #D0DEEE; letter-spacing: 0.75px; font-weight: 500; - } } } -- 2.36.3