Bläddra i källkod

fix 正式版和演示版 yarn demo

mzr 5 år sedan
förälder
incheckning
bff4da872b
60 ändrade filer med 153 tillägg och 57 borttagningar
  1. 3 0
      .env.demo
  2. 0 0
      dist/app.3d8876f50113f7ef104c.9629.js
  3. 0 0
      dist/app.6bbe076cb42d63d7ce4b.3573.js
  4. 0 0
      dist/chunk-033fbe86.6bbe076cb42d63d7ce4b.3573.js
  5. 0 0
      dist/chunk-0a9d7da4.3d8876f50113f7ef104c.9629.js
  6. 0 0
      dist/chunk-0f727d7c.6bbe076cb42d63d7ce4b.3573.js
  7. 0 0
      dist/chunk-1c5c4e66.6bbe076cb42d63d7ce4b.3573.js
  8. 0 0
      dist/chunk-1d483bac.6bbe076cb42d63d7ce4b.3573.js
  9. 0 0
      dist/chunk-1d8debd0.3d8876f50113f7ef104c.9629.js
  10. 0 0
      dist/chunk-1f3a5ed0.3d8876f50113f7ef104c.9629.js
  11. 0 0
      dist/chunk-2ab9e268.3d8876f50113f7ef104c.9629.js
  12. 0 0
      dist/chunk-39329a8e.6bbe076cb42d63d7ce4b.3573.js
  13. 0 0
      dist/chunk-3f4a8222.6bbe076cb42d63d7ce4b.3573.js
  14. 0 0
      dist/chunk-47b0075e.6bbe076cb42d63d7ce4b.3573.js
  15. 0 0
      dist/chunk-559bdf72.6bbe076cb42d63d7ce4b.3573.js
  16. 0 0
      dist/chunk-603e5f21.3d8876f50113f7ef104c.9629.js
  17. 0 0
      dist/chunk-68ef6abc.6bbe076cb42d63d7ce4b.3573.js
  18. 0 0
      dist/chunk-6dbbeaca.6bbe076cb42d63d7ce4b.3573.js
  19. 0 0
      dist/chunk-78161c90.6bbe076cb42d63d7ce4b.3573.js
  20. 0 0
      dist/chunk-79243113.3d8876f50113f7ef104c.9629.js
  21. 0 0
      dist/chunk-79f24e6c.3d8876f50113f7ef104c.9629.js
  22. 0 0
      dist/chunk-7b71dd30.3d8876f50113f7ef104c.9629.js
  23. 0 0
      dist/chunk-7f547818.6bbe076cb42d63d7ce4b.3573.js
  24. 0 0
      dist/chunk-7f6bbc30.6bbe076cb42d63d7ce4b.3573.js
  25. 0 0
      dist/chunk-b34de394.6bbe076cb42d63d7ce4b.3573.js
  26. 0 0
      dist/chunk-c17e35b0.3d8876f50113f7ef104c.9629.js
  27. 0 0
      dist/chunk-e78b725a.3d8876f50113f7ef104c.9629.js
  28. 0 0
      dist/chunk-ebc54454.3d8876f50113f7ef104c.9629.js
  29. 0 0
      dist/chunk-f5a5e64a.6bbe076cb42d63d7ce4b.3573.js
  30. 0 0
      dist/chunk-vendors.3d8876f50113f7ef104c.9629.js
  31. 0 0
      dist/chunk-vendors.6bbe076cb42d63d7ce4b.3573.js
  32. 0 0
      dist/css/app.e2aa0572.css
  33. 0 0
      dist/css/chunk-033fbe86.c13d6cd1.css
  34. 0 0
      dist/css/chunk-0f727d7c.68e3ab5e.css
  35. 0 0
      dist/css/chunk-1c5c4e66.82173419.css
  36. 0 0
      dist/css/chunk-1d483bac.a6a08686.css
  37. 0 0
      dist/css/chunk-3f4a8222.5ff750b7.css
  38. 0 0
      dist/css/chunk-47b0075e.ea682d43.css
  39. 0 0
      dist/css/chunk-559bdf72.38a4dbc1.css
  40. 0 0
      dist/css/chunk-6dbbeaca.25741161.css
  41. 0 0
      dist/css/chunk-78161c90.288b53ee.css
  42. 0 0
      dist/css/chunk-7b71dd30.b9abbcb7.css
  43. 0 0
      dist/css/chunk-7f547818.baf7b9c2.css
  44. 0 0
      dist/css/chunk-7f6bbc30.6f858f90.css
  45. 0 0
      dist/css/chunk-b34de394.c327af1e.css
  46. 0 0
      dist/css/chunk-f5a5e64a.7eb8d191.css
  47. 0 0
      dist/css/chunk-vendors.b36dc532.css
  48. 0 0
      dist/index.html
  49. 1 0
      package.json
  50. 18 2
      src/api/api.js
  51. 4 2
      src/config/index.js
  52. 24 12
      src/views/index/components/communication/index.vue
  53. 5 3
      src/views/index/components/entrance-guard/index.vue
  54. 6 3
      src/views/index/components/income/index.vue
  55. 7 3
      src/views/index/components/paid-in/index.vue
  56. 5 3
      src/views/index/components/parking/index.vue
  57. 35 6
      src/views/index/components/record/index.vue
  58. 36 17
      src/views/index/components/repair/index.vue
  59. 6 3
      src/views/index/components/statistical/index.vue
  60. 3 3
      vue.config.js

+ 3 - 0
.env.demo

@@ -0,0 +1,3 @@
+NODE_ENV=production
+BABEL_ENV=production
+VUE_APP_SECRET=demo

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/app.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/app.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-033fbe86.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-0a9d7da4.3d8876f50113f7ef104c.9629.js


+ 0 - 0
dist/chunk-0f727d7c.3d8876f50113f7ef104c.9629.js → dist/chunk-0f727d7c.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-1c5c4e66.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-1d483bac.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-1d8debd0.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-1f3a5ed0.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-2ab9e268.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-39329a8e.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-3f4a8222.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-47b0075e.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-559bdf72.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-603e5f21.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-68ef6abc.6bbe076cb42d63d7ce4b.3573.js


+ 0 - 0
dist/chunk-6dbbeaca.3d8876f50113f7ef104c.9629.js → dist/chunk-6dbbeaca.6bbe076cb42d63d7ce4b.3573.js


+ 0 - 0
dist/chunk-78161c90.3d8876f50113f7ef104c.9629.js → dist/chunk-78161c90.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-79243113.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-79f24e6c.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-7b71dd30.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-7f547818.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-7f6bbc30.6bbe076cb42d63d7ce4b.3573.js


+ 0 - 0
dist/chunk-b34de394.3d8876f50113f7ef104c.9629.js → dist/chunk-b34de394.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-c17e35b0.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-e78b725a.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-ebc54454.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-f5a5e64a.6bbe076cb42d63d7ce4b.3573.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-vendors.3d8876f50113f7ef104c.9629.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/chunk-vendors.6bbe076cb42d63d7ce4b.3573.js


+ 0 - 0
dist/css/app.a05a3352.css → dist/css/app.e2aa0572.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-033fbe86.c13d6cd1.css


+ 0 - 0
dist/css/chunk-0f727d7c.22299d7d.css → dist/css/chunk-0f727d7c.68e3ab5e.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-1c5c4e66.82173419.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-1d483bac.a6a08686.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-3f4a8222.5ff750b7.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-47b0075e.ea682d43.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-559bdf72.38a4dbc1.css


+ 0 - 0
dist/css/chunk-6dbbeaca.07d56c5c.css → dist/css/chunk-6dbbeaca.25741161.css


+ 0 - 0
dist/css/chunk-78161c90.dbc0ebb8.css → dist/css/chunk-78161c90.288b53ee.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-7b71dd30.b9abbcb7.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-7f547818.baf7b9c2.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-7f6bbc30.6f858f90.css


+ 0 - 0
dist/css/chunk-b34de394.63fbdb2b.css → dist/css/chunk-b34de394.c327af1e.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/css/chunk-f5a5e64a.7eb8d191.css


+ 0 - 0
dist/css/chunk-vendors.8c264793.css → dist/css/chunk-vendors.b36dc532.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/index.html


+ 1 - 0
package.json

@@ -6,6 +6,7 @@
     "serve": "vue-cli-service serve --open",
     "build": "vue-cli-service build",
     "test": "vue-cli-service build --mode test",
+    "demo": "vue-cli-service build --mode demo",
     "lint": "vue-cli-service lint",
     "test:e2e": "vue-cli-service test:e2e",
     "test:unit": "vue-cli-service test:unit"

+ 18 - 2
src/api/api.js

@@ -1,9 +1,9 @@
 /*
  * @Author: mozhuangru
- * @LastEditors: mozhuangru
+ * @LastEditors: MoZhuangRu
  * @Description: 数据大屏
  * @Date: 2019-10-09 09:22:49
- * @LastEditTime: 2019-10-09 14:07:29
+ * @LastEditTime: 2019-11-21 08:57:21
  */
 import axios from '../assets/js/api.request'
 export default {
@@ -54,5 +54,21 @@ export default {
       params: data,
       method: 'get'
     })
+  },
+  // 报修统计
+  getRepairSum (data) {
+    return axios.request({
+      url: '/platform/dataScreen/repairSum',
+      params: data,
+      method: 'get'
+    })
+  },
+  // 报事统计
+  getReportSum (data) {
+    return axios.request({
+      url: '/platform/dataScreen/reportSum',
+      params: data,
+      method: 'get'
+    })
   }
 }

+ 4 - 2
src/config/index.js

@@ -1,9 +1,9 @@
 /*
  * @Author: WangQiBiao
- * @LastEditors: WuWei
+ * @LastEditors: MoZhuangRu
  * @Description: 全局参数设置
  * @Date: 2019-03-12 09:40:46
- * @LastEditTime: 2019-10-14 10:55:38
+ * @LastEditTime: 2019-11-20 19:00:56
  */
 const REQUEST_MATCHING_HASH = `/9ad134a361f8d778` // 【9ad134a361f8d778 = 前端服务,用于后端接口匹配】
 
@@ -29,6 +29,8 @@ export default {
   fileUrl: process.env.NODE_ENV === 'production' ? `${REQUEST_MATCHING_HASH}` : 'http://139.159.229.250:8161',
   // 导出文件路径
   exportUrl: process.env.NODE_ENV === 'production' ? `${REQUEST_MATCHING_HASH}` : '/api',
+  // 数据区分
+  version: process.env.VUE_APP_SECRET === 'demo' ? 'demonstration' : 'real',
   /**
      * 输入框最长值
      */

+ 24 - 12
src/views/index/components/communication/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: WangQiBiao
  * @Date: 2019-09-25 14:10:08
- * @LastEditors: WangQiBiao
- * @LastEditTime: 2019-10-16 08:56:44
+ * @LastEditors: MoZhuangRu
+ * @LastEditTime: 2019-11-21 10:27:17
  * @Description: 在线沟通
  -->
 <template>
@@ -38,6 +38,7 @@ import TagCom from '@/components/tag'
 import echarts from 'echarts'
 import { api } from '@/api'
 import vueSeamless from 'vue-seamless-scroll'
+import config from '@/config'
 
 export default {
   computed: {
@@ -49,6 +50,7 @@ export default {
   },
   data () {
     return {
+      reportSum: {},
       dialogData: []
     }
   },
@@ -65,11 +67,21 @@ export default {
   },
   methods: {
     init () {
-      api.getDialogRecord().then(res => {
+      api.getDialogRecord({
+        version: config.version
+      }).then(res => {
         this.dialogData = res.data.data.list
       })
-      this.circleProportionMap()
-      this.createSatisfactionMap()
+      this.getReportSum()
+    },
+    getReportSum () {
+      api.getReportSum({
+        version: config.version
+      }).then(res => {
+        this.reportSum = res.data.data.reportRepairStatisticsVos
+        this.circleProportionMap()
+        this.createSatisfactionMap()
+      })
     },
     /**
      * 占比
@@ -100,7 +112,7 @@ export default {
             },
             data: [
               {
-                value: 1652,
+                value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportAdvice')].total,
                 name: '咨询',
                 label: {
                   show: true,
@@ -111,7 +123,7 @@ export default {
                 }
               },
               {
-                value: 2462,
+                value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportComplaint')].total,
                 name: '投诉',
                 label: {
                   show: true,
@@ -122,7 +134,7 @@ export default {
                 }
               },
               {
-                value: 591,
+                value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportSuggest')].total,
                 name: '建议',
                 label: {
                   show: true,
@@ -133,7 +145,7 @@ export default {
                 }
               },
               {
-                value: 350,
+                value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportPraise')].total,
                 name: '表扬',
                 label: {
                   show: true,
@@ -182,14 +194,14 @@ export default {
             },
             data: [
               {
-                value: 83.2,
-                name: '83.2%',
+                value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportServiceScore')].total,
+                name: `${this.reportSum[this.reportSum.findIndex(item => item.type === 'reportServiceScore')].total}%`,
                 itemStyle: {
                   color: '#07E144'
                 }
               },
               {
-                value: 16.8,
+                value: 100 - (this.reportSum[this.reportSum.findIndex(item => item.type === 'reportServiceScore')].total),
                 itemStyle: {
                   color: '#262795'
                 }

+ 5 - 3
src/views/index/components/entrance-guard/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: WangQiBiao
  * @Date: 2019-09-25 10:20:36
- * @LastEditors: WangQiBiao
- * @LastEditTime: 2019-10-16 08:56:48
+ * @LastEditors: MoZhuangRu
+ * @LastEditTime: 2019-11-21 10:22:52
  * @Description: 智能门禁
  -->
 <template>
@@ -35,6 +35,7 @@ import TitleCom from '@/components/title'
 import TagCom from '@/components/tag'
 import { api } from '@/api'
 import vueSeamless from 'vue-seamless-scroll'
+import config from '@/config'
 
 export default {
   computed: {
@@ -64,7 +65,8 @@ export default {
     init () {
       api.getFacePassRecord({
         pageSize: 30,
-        pageNum: 1
+        pageNum: 1,
+        version: config.version
       }).then(res => {
         this.faceData = res.data.data
       })

+ 6 - 3
src/views/index/components/income/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: WangQiBiao
  * @Date: 2019-09-26 10:57:30
- * @LastEditors: mozhuangru
- * @LastEditTime: 2019-10-13 16:02:12
+ * @LastEditors: MoZhuangRu
+ * @LastEditTime: 2019-11-21 10:22:42
  * @Description: 收入统计
  -->
 <template>
@@ -35,6 +35,7 @@
 <script>
 import echarts from 'echarts'
 import { api } from '@/api'
+import config from '@/config'
 
 export default {
   data () {
@@ -50,7 +51,9 @@ export default {
     }
   },
   mounted () {
-    api.getBillSum().then(res => {
+    api.getBillSum({
+      version: config.version
+    }).then(res => {
       res.data.data.forEach(item => {
         this.billSum[item.type] = item.total
         if (item.type === 'billRate') {

+ 7 - 3
src/views/index/components/paid-in/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: WangQiBiao
  * @Date: 2019-09-26 08:46:04
- * @LastEditors: mozhuangru
- * @LastEditTime: 2019-10-13 17:09:06
+ * @LastEditors: MoZhuangRu
+ * @LastEditTime: 2019-11-21 10:22:25
  * @Description: 近1年应实收统计
  -->
 <template>
@@ -21,6 +21,8 @@ import TitleCom from '@/components/title'
 import IncomeCom from './../income'
 import echarts from 'echarts'
 import { api } from '@/api'
+import config from '@/config'
+
 export default {
   data () {
     return {
@@ -32,7 +34,9 @@ export default {
     IncomeCom
   },
   mounted () {
-    api.getBillSumMonth().then(res => {
+    api.getBillSumMonth({
+      version: config.version
+    }).then(res => {
       this.yearTotal = res.data.data
       this.createMapPaid()
     })

+ 5 - 3
src/views/index/components/parking/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: WangQiBiao
  * @Date: 2019-09-25 10:20:36
- * @LastEditors: mozhuangru
- * @LastEditTime: 2019-10-13 16:57:19
+ * @LastEditors: MoZhuangRu
+ * @LastEditTime: 2019-11-21 10:21:49
  * @Description: 智能停车
  -->
 <template>
@@ -35,6 +35,7 @@ import TitleCom from '@/components/title'
 import TagCom from '@/components/tag'
 import { api } from '@/api'
 import vueSeamless from 'vue-seamless-scroll'
+import config from '@/config'
 
 export default {
   computed: {
@@ -57,7 +58,8 @@ export default {
   mounted () {
     api.getTrafficRecord({
       pageSize: 30,
-      pageNum: 1
+      pageNum: 1,
+      version: config.version
     }).then(res => {
       this.parkData = res.data.data
     })

+ 35 - 6
src/views/index/components/record/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: WangQiBiao
  * @Date: 2019-09-26 14:11:25
- * @LastEditors: mozhuangru
- * @LastEditTime: 2019-10-09 09:08:41
+ * @LastEditors: MoZhuangRu
+ * @LastEditTime: 2019-11-21 10:21:21
  * @Description:
  -->
 <template>
@@ -14,7 +14,7 @@
           <img class="list-item-icon" src="./images/shb@3x.png" alt="">
         </div>
         <div class="list-item-desc">
-          <span>{{2143 | numberFormat}}</span>
+          <span>{{equipment | numberFormat}}</span>
           <span class="desc-tips">次</span>
         </div>
         <div class="list-item-txt">设备巡检</div>
@@ -25,7 +25,7 @@
           <img class="list-item-icon" src="./images/baoan@3x.png" alt="">
         </div>
         <div class="list-item-desc">
-          <span>{{25316 | numberFormat}}</span>
+          <span>{{security | numberFormat}}</span>
           <span class="desc-tips">次</span>
         </div>
         <div class="list-item-txt">安防巡逻</div>
@@ -36,7 +36,7 @@
           <img class="list-item-icon" src="./images/baojie@3x.png" alt="">
         </div>
         <div class="list-item-desc">
-          <span>{{3218 | numberFormat}}</span>
+          <span>{{cleaning | numberFormat}}</span>
           <span class="desc-tips">次</span>
         </div>
         <div class="list-item-txt">保洁登记</div>
@@ -47,7 +47,7 @@
           <img class="list-item-icon" src="./images/renwu@3x.png" alt="">
         </div>
         <div class="list-item-desc">
-          <span>{{38765 | numberFormat}}</span>
+          <span>{{taskExecution | numberFormat}}</span>
           <span class="desc-tips">次</span>
         </div>
         <div class="list-item-txt">任务执行</div>
@@ -55,6 +55,35 @@
     </div>
   </div>
 </template>
+<script>
+import { api } from '@/api'
+import config from '@/config'
+
+export default {
+  data () {
+    return {
+      equipment: '',
+      security: '',
+      cleaning: '',
+      taskExecution: ''
+    }
+  },
+  mounted () {
+    this.getAssetInfo()
+  },
+  methods: {
+    getAssetInfo () {
+      api.getAssetInfo({
+        version: config.version
+      }).then(res => {
+        res.data.data.forEach(item => {
+          this[item.type] = item.total
+        })
+      })
+    }
+  }
+}
+</script>
 <style lang="scss" scoped>
 @import './index.scss';
 </style>

+ 36 - 17
src/views/index/components/repair/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: WangQiBiao
  * @Date: 2019-09-25 17:54:01
- * @LastEditors: mozhuangru
- * @LastEditTime: 2019-10-09 08:51:19
+ * @LastEditors: MoZhuangRu
+ * @LastEditTime: 2019-11-21 09:42:52
  * @Description: 住户报修
  -->
 <template>
@@ -12,7 +12,7 @@
       <div class="rate-title">服务评分</div>
       <div class="rate-cnt">
         <el-rate
-        v-model="rate"
+        v-model="repairServiceScore"
         disabled
         :show-score="true"
         :allow-half="true"
@@ -29,22 +29,22 @@
         <div class="map-tips-item b1">
           <div class="map-tips-item-w"></div>
           <div class="map-tips-item-txt">待受理</div>
-          <div class="map-tips-item-p">{{320 | numberFormat}}</div>
+          <div class="map-tips-item-p">{{repairWaitAccept | numberFormat}}</div>
         </div>
         <div class="map-tips-item b2">
           <div class="map-tips-item-w"></div>
           <div class="map-tips-item-txt">已受理</div>
-          <div class="map-tips-item-p">{{653 | numberFormat}}</div>
+          <div class="map-tips-item-p">{{repairAccept | numberFormat}}</div>
         </div>
         <div class="map-tips-item b3">
           <div class="map-tips-item-w"></div>
           <div class="map-tips-item-txt">已解决</div>
-          <div class="map-tips-item-p">{{4654 | numberFormat}}</div>
+          <div class="map-tips-item-p">{{repairSolve | numberFormat}}</div>
         </div>
         <div class="map-tips-item b4">
           <div class="map-tips-item-w"></div>
           <div class="map-tips-item-txt">已评价</div>
-          <div class="map-tips-item-p">{{312 | numberFormat}}</div>
+          <div class="map-tips-item-p">{{repairEvaluate | numberFormat}}</div>
         </div>
       </div>
     </div>
@@ -53,19 +53,38 @@
 <script>
 import TitleCom from '@/components/title'
 import echarts from 'echarts'
+import { api } from '@/api'
+import config from '@/config'
+
 export default {
   components: {
     TitleCom
   },
   data () {
     return {
-      rate: 4.6
+      repairWaitAccept: '',
+      repairAccept: '',
+      repairSolve: '',
+      repairEvaluate: '',
+      repairSum: {},
+      repairServiceScore: 4.6
     }
   },
   mounted () {
-    this.createMap()
+    this.getRepairSum()
   },
   methods: {
+    getRepairSum () {
+      api.getRepairSum({
+        version: config.version
+      }).then(res => {
+        this.repairSum = res.data.data.reportRepairStatisticsVos.map(item => {
+          this[item.type] = item.total
+          return item
+        })
+        this.createMap()
+      })
+    },
     /**
      * 受理环比
      */
@@ -84,29 +103,29 @@ export default {
             },
             data: [
               {
-                value: 320,
-                name: '待受理  320',
+                value: this.repairWaitAccept,
+                name: '待受理',
                 itemStyle: {
                   color: '#F9AF09'
                 }
               },
               {
-                value: 653,
-                name: '已受理  653',
+                value: this.repairAccept,
+                name: '已受理',
                 itemStyle: {
                   color: '#0996FE'
                 }
               },
               {
-                value: 4654,
-                name: '已解决  4654',
+                value: this.repairSolve,
+                name: '已解决',
                 itemStyle: {
                   color: '#00C738'
                 }
               },
               {
-                value: 312,
-                name: '已评价  312',
+                value: this.repairEvaluate,
+                name: '已评价',
                 itemStyle: {
                   color: '#0BDCE5'
                 }

+ 6 - 3
src/views/index/components/statistical/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: WangQiBiao
  * @Date: 2019-09-24 18:56:59
- * @LastEditors: mozhuangru
- * @LastEditTime: 2019-10-11 17:23:08
+ * @LastEditors: MoZhuangRu
+ * @LastEditTime: 2019-11-21 10:21:29
  * @Description:
  -->
 <template>
@@ -19,6 +19,7 @@
 import TipsCardCom from '@/components/tips-card'
 import { api } from '@/api'
 import countTo from 'vue-count-to'
+import config from '@/config'
 export default {
   data () {
     return {
@@ -61,7 +62,9 @@ export default {
     countTo
   },
   mounted () {
-    api.getAssetInfo().then(res => {
+    api.getAssetInfo({
+      version: config.version
+    }).then(res => {
       res.data.data.forEach(item => {
         this.list.map(val => {
           if (val.key === item.type) {

+ 3 - 3
vue.config.js

@@ -1,16 +1,16 @@
 /*
  * @Author: WangQiBiao
- * @LastEditors: WuWei
+ * @LastEditors: MoZhuangRu
  * @Description: 配置文件
  * @Date: 2019-03-02 14:21:27
- * @LastEditTime: 2019-10-14 15:19:34
+ * @LastEditTime: 2019-11-21 10:12:47
  */
 const path = require('path')
 
 const resolve = dir => {
   return path.join(__dirname, dir)
 }
-const BASE_URL = process.env.NODE_ENV === 'production' ? '/screen' : process.env.VUE_APP_SECRET === 'test' ? '/screen' : '/'
+const BASE_URL = process.env.NODE_ENV === 'production' ? '/screen' : process.env.VUE_APP_SECRET === 'test' ? '/screen' : process.env.VUE_APP_SECRET === 'demo' ? '/screen' : '/'
 const ramdom = parseInt(Math.random() * 10000) // 随机数
 
 module.exports = {

Vissa filer visades inte eftersom för många filer har ändrats