diff --git a/src/utils/request.js b/src/utils/request.js index fd35035..030db14 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -5,7 +5,7 @@ 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://${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; - } } }