From 7ab0ccc88ba250a8aaa26e908f6682136fc2c4fd Mon Sep 17 00:00:00 2001
From: XingChuan <m17600301067@163.com>
Date: 星期五, 28 五月 2021 16:39:16 +0800
Subject: [PATCH] 获取专题所有点;废水基本信息、小时数据、日数据、人工数据更换为二期接口;

---
 src/components/table/components/Warn.vue |   34 +++++-----------------------------
 1 files changed, 5 insertions(+), 29 deletions(-)

diff --git a/src/components/table/components/Warn.vue b/src/components/table/components/Warn.vue
index 0308373..f5f12e8 100644
--- a/src/components/table/components/Warn.vue
+++ b/src/components/table/components/Warn.vue
@@ -149,42 +149,18 @@
 </template>
 
 <script>
+import mapApi from '@/api/mapApi'
 export default {
   data () {
     return {
       titleProp: '',
       activeName: 'first',
-      tableData: [{
-        date: '闆嗗洟鍏徃',
-        name: 1,
-        province: 1,
-        city: 0,
-        address: 1,
-        zip: 0
-      }, {
-        date: '澶╂触鐭冲寲',
-        name: 1,
-        province: 0,
-        city: 1,
-        address: 1,
-        zip: 2
-      }, {
-        date: 'XXX鐐煎寲',
-        name: 1,
-        province: 2,
-        city: 0,
-        address: 0,
-        zip: 1
-      }, {
-        date: 'XXX鐐煎寲2',
-        name: 1,
-        province: 2,
-        city: 0,
-        address: 0,
-        zip: 1
-      }]
+      tableData: null
     }
   },
+  async mounted () {
+    this.tableData = await mapApi.getwarnStatistics()
+  },
   methods: {
     refsDatatitle (item) {
       this.titleProp = item

--
Gitblit v1.8.0