Browse Source

接口联调

duwendi 1 year ago
parent
commit
b84126f01a

+ 95 - 9
src/api/audit.js

@@ -1,6 +1,15 @@
1 1
 import axios from "@/util/ajax";
2 2
 
3 3
 export default {
4
+  // 停车饱和预警-饱和度
5
+  tcbhyj(params) {
6
+    return axios.post('/dash/saturation/warning/stat1', params)
7
+  },
8
+  // todo 停车饱和预警-网格化停车饱和预警
9
+  wghtcbhyj(params) {
10
+    return axios.post('/dash/saturation/warning/page', params)
11
+  },
12
+  // todo 车辆迁徙分析
4 13
   // 停车缺口分析-停车缺口分析
5 14
   tcqkfx(params) {
6 15
     return axios.post('/dash/gap/analysis/stat1', params)
@@ -9,13 +18,13 @@ export default {
9 18
   tcqkbhqs(params) {
10 19
     return axios.post('/dash/gap/analysis/stat2', params)
11 20
   },
12
-  // 停车饱和预警-饱和度
13
-  tcbhyj(params) {
14
-    return axios.post('/dash/saturation/warning/stat1', params)
21
+  // todo 停车难易指数-地图难易指数
22
+  dtnyzs(params) {
23
+    return axios.post('/dash/park/easy/stat', params)
15 24
   },
16
-  // todo 停车饱和预警-网格化停车饱和预警
17
-  wghtcbhyj(params) {
18
-    return axios.post('/dash/saturation/warning/page', params)
25
+  // todo 停车难易指数-折线图
26
+  zxt(params) {
27
+    return axios.post('/dash/park/easy/page', params)
19 28
   },
20 29
   // 全局停车诱导-地图难易指数
21 30
   nyzs(params) {
@@ -25,6 +34,15 @@ export default {
25 34
   nyzstj(params) {
26 35
     return axios.post('/dash/park/guidance/page', params)
27 36
   },
37
+  // todo 区域停车发展分析
38
+  // 路内泊位设置推荐- 停车缺口 /dash/berth/recommend/stat1
39
+  lntcqk(params) {
40
+    return axios.post('/dash/berth/recommend/stat1', params)
41
+  },
42
+  // 路内泊位设置推荐- 路内泊位
43
+  lnbw(params) {
44
+    return axios.post('/dash/berth/recommend/page', params)
45
+  },
28 46
   // 其他分析-区域分析
29 47
   qyfx(params) {
30 48
     return axios.post('/dash/other/analyse/stat1', params)
@@ -45,7 +63,7 @@ export default {
45 63
   ywfx(params) {
46 64
     return axios.post('/dash/other/analyse/stat4', params)
47 65
   },
48
-  // 其他分析-停车热点分析
66
+  // todo 其他分析-停车热点分析
49 67
   tcrdfx(params) {
50 68
     return axios.post('/dash/other/analyse/stat5', params)
51 69
   },
@@ -57,14 +75,82 @@ export default {
57 75
   dlyltcc(params) {
58 76
     return axios.post('/dash/other/analyse/stat7', params)
59 77
   },
60
-  // 其他分析-高峰路线分析
78
+  // todo 其他分析-高峰路线分析
61 79
   gflxfx(params) {
62 80
     return axios.post('/dash/other/analyse/stat8', params)
63 81
   },
64
-  // 其他分析-重点车辆进占比
82
+  // 其他分析-重点车辆进占比
65 83
   zdcljcfx(params) {
66 84
     return axios.post('/dash/other/analyse/stat9', params)
67 85
   },
86
+  // todo 服务发布
87
+  serviceListByPage(params) {
88
+    return axios.get('/dash/service/publish/page', {params})
89
+  },
90
+  servicePublic(params) {
91
+    return axios.post('/dash/service/publish/publish', params)
92
+  },
93
+  serviceSave(params) {
94
+    return axios.post('/dash/service/publish/save', params)
95
+  },
96
+  // todo 公告功能
97
+  announcementListByPage(params) {
98
+    return axios.get('/dash/announcement/function/page', {params})
99
+  },
100
+  announcementPublic(params) {
101
+    return axios.post('/dash/announcement/function/publish', params)
102
+  },
103
+  announcementSave(params) {
104
+    return axios.post('/dash/announcement/function/save', params)
105
+  },
106
+  // todo 消息中心
107
+  messageListByPage(params) {
108
+    return axios.post('/dash/message/page', {params})
109
+  },
110
+  // todo 服务监控
111
+  monitorListByPage(params) {
112
+    return axios.get('/dash/service/monitor/page', {params})
113
+  },
114
+  // todo 凭证管理
115
+  pzglListByPage(params) {
116
+    return axios.get('/dash/credential/management/function/page', {params})
117
+  },
118
+  deletePz(params) {
119
+    return axios.post('/dash/credential/management/function/delete', params)
120
+  },
121
+  addPz(params) {
122
+    return axios.post('/dash/credential/management/function/save', params)
123
+  },
124
+  // todo 服务订阅
125
+  subscription(params) {
126
+    return axios.post('/dash/service/subscription/function/subscription', params)
127
+  },
128
+  unsubscription(params) {
129
+    return axios.post('/dash/service/subscription/function/unsubscription', params)
130
+  },
131
+  // IP白名单-列表接口
132
+  ipListByPage(params) {
133
+    return axios.get('/dash/ip/white/list/page', {params})
134
+  },
135
+  // IP白名单-删除接口
136
+  deleteWhiteIp(params) {
137
+    return axios.post('/dash/ip/white/list/delete', params)
138
+  },
139
+  // IP白名单-新增接口
140
+  addWhiteIp(params) {
141
+    return axios.post('/dash/ip/white/list/save', params)
142
+  },
143
+  // todo 服务调用功能
144
+  fwdy(params) {
145
+    return axios.post('/dash/service/call/function/call', params)
146
+  },
147
+  // todo 操作日志功能
148
+  czrzListByPage(params) {
149
+    return axios.get('/dash/operation/log/page', {params})
150
+  },
151
+  czrzDetail(params) {
152
+    return axios.post('/dash/operation/log/detail', params)
153
+  },
68 154
   // 申请列表
69 155
   applyList(params) {
70 156
     return axios.get('/resourceApply/selectBackedApplyList', {params});

+ 19 - 0
src/assets/css/global.css

@@ -102,3 +102,22 @@ body,
102 102
   font-size: 16px;
103 103
   color: #BEDAFF;
104 104
 }
105
+
106
+.bar-tooltip {
107
+  padding: 10px 20px;
108
+  background: url("../../../static/img/u231.png");
109
+  background-size: 100% 100%;
110
+}
111
+.line-tooltip {
112
+  padding: 10px 20px;
113
+  background: url("../../../static/img/u231.png");
114
+  background-size: 100% 100%;
115
+}
116
+.bar-tooltip-dz {
117
+  padding: 5px 10px;
118
+  background: url("../../../static/img/u261.png");
119
+  background-size: 100% 100%;
120
+  color: #333;
121
+  position: absolute;
122
+  top: 0;
123
+}

+ 13 - 35
src/pages/index/components/berth_recommend.vue

@@ -11,8 +11,8 @@
11 11
         :dataset="linedata"
12 12
         :tooltipFormat="lineTooltipFormat"
13 13
         :encode="[
14
-              { x: 'month', y: 'lastYearAmount', seriesName: '预警值',col:'red' },
15
-              { x: 'month', y: 'thisYearAmount', seriesName: '缺口',bool:'true' },
14
+              { x: 'mouth', y: 'thisAmount', seriesName: '预警值',col:'red' },
15
+              { x: 'mouth', y: 'lastAmount', seriesName: '缺口',bool:'true' },
16 16
             ]"
17 17
         id="sxcyfzqk"
18 18
       />
@@ -33,7 +33,7 @@
33 33
 </template>
34 34
 <script>
35 35
 import linechart from "@/components/lineChart";
36
-// import api from "@/api/article_z";
36
+import api from "@/api/audit";
37 37
 
38 38
 export default {
39 39
   components: {
@@ -41,9 +41,7 @@ export default {
41 41
   },
42 42
   data() {
43 43
     return {
44
-      linedata: [{month: '老街街道',lastYearAmount: 30, thisYearAmount: 20}, {month: '马路街街道', lastYearAmount:30, thisYearAmount:50}
45
-        , {month: '顺河街街道', lastYearAmount:30, thisYearAmount:30}, {month: '干河陈街道', lastYearAmount:30, thisYearAmount:30}
46
-        , {month: '大刘镇', lastYearAmount:30, thisYearAmount:0}, {month: '阴阳赵镇', lastYearAmount:30, thisYearAmount:0}],
44
+      linedata: [],
47 45
       columns: [
48 46
         {
49 47
           label: '街道名称',
@@ -75,7 +73,7 @@ export default {
75 73
   },
76 74
   mounted() {
77 75
     this.getTableData()
78
-    // this.linedataData()
76
+    this.getLineData()
79 77
   },
80 78
   watch: {
81 79
   },
@@ -84,36 +82,19 @@ export default {
84 82
       const data = params[0].data;
85 83
       return `<div class="line-tooltip">
86 84
         <div style="color: ${params[1].color}">${params[1].seriesName}: ${
87
-        params[0].data.thisYearAmount || "--"
85
+        params[0].data.lastAmount || "--"
88 86
       }(%)</div>
89 87
         <div style="color: red">${params[0].seriesName}: ${
90
-        params[0].data.lastYearAmount || "--"
88
+        params[0].data.thisAmount || "--"
91 89
       }(%)</div>
92 90
       </div>`;
93 91
     },
94 92
     handlePageChange() {
95 93
       this.getTableData()
96 94
     },
97
-    handleCancelApply(row) {
98
-      console.log('enter handle cancel apply')
99
-    },
100
-    handleConfirm() {
101
-      const {id} = this.selRow
102
-      console.log('radio', this.radio)
103
-      api.applyResource({id, applyType: this.radio}).then(res => {
104
-        if(res.success) {
105
-          this.dialogVisible = false
106
-          this.$message({
107
-            message: '审核成功!',
108
-            type: 'success'
109
-          })
110
-          this.getTableData()
111
-        }
112
-      })
113
-    },
114 95
     getTableData() {
115 96
       const {pageNum, pageSize, searchWords} = this
116
-      api.applyList({pageNum, pageSize, resourceName: searchWords}).then(res => {
97
+      api.lnbw({pageNum, pageSize, resourceName: searchWords}).then(res => {
117 98
         this.tableData = []
118 99
         res.data.records.map((item, index) => {
119 100
           const newItem = {...item}
@@ -123,14 +104,11 @@ export default {
123 104
         this.total = res.data.total
124 105
       })
125 106
     },
126
-    //初始化
127
-    // linedataData(){
128
-    //   api.queryBerthContext().then(res=>{
129
-    //     const lastA=res.data;
130
-    //     this.linedata=res.data.map(item=>({...item,thisAmount: 30}));
131
-    //     console.log(res.data)
132
-    //   })
133
-    // },
107
+    getLineData(){
108
+      api.lntcqk().then(res=>{
109
+        this.linedata=res.data.map(item=>({...item,thisAmount: 30}));
110
+      })
111
+    },
134 112
   }
135 113
 }
136 114
 </script>

+ 1 - 23
src/pages/index/components/blind_spot_digging.vue

@@ -91,32 +91,10 @@ export default {
91 91
     handlePageChange() {
92 92
       this.getTableData()
93 93
     },
94
-    handleCancelApply(row) {
95
-      console.log('enter handle cancel apply')
96
-    },
97
-    handleConfirm() {
98
-      const {id} = this.selRow
99
-      console.log('radio', this.radio)
100
-      api.applyResource({id, applyType: this.radio}).then(res => {
101
-        if(res.success) {
102
-          this.dialogVisible = false
103
-          this.$message({
104
-            message: '审核成功!',
105
-            type: 'success'
106
-          })
107
-          this.getTableData()
108
-        }
109
-      })
110
-    },
111 94
     getTableData() {
112 95
       const {pageNum, pageSize, searchWords} = this
113 96
       api.applyList({pageNum, pageSize, resourceName: searchWords}).then(res => {
114
-        this.tableData = []
115
-        res.data.records.map((item, index) => {
116
-          const newItem = {...item}
117
-          newItem.applyTypeText = this.getApplyTypeText(item.applyType)
118
-          this.tableData.push(newItem)
119
-        })
97
+        this.tableData = res.data.record || []
120 98
         this.total = res.data.total
121 99
       })
122 100
     },

+ 2 - 2
src/pages/index/components/bmap.vue

@@ -251,7 +251,7 @@ export default {
251 251
         );
252 252
       });
253 253
       let option = {
254
-        backgroundColor: "#013954",
254
+        backgroundColor: "#cccccc33",
255 255
         geo: [
256 256
           // {
257 257
           //   map: '河南',
@@ -383,7 +383,7 @@ export default {
383 383
       text-align: center;
384 384
       line-height: 6vh;
385 385
       letter-spacing: 0.3vw;
386
-      color: #fff;
386
+      color: #3498db;
387 387
       margin: 0;
388 388
     }
389 389
 

+ 0 - 1
src/pages/index/components/charge_price.vue

@@ -93,7 +93,6 @@ export default {
93 93
       modelData: {
94 94
         list: [{name: '2元/小时', value: 600}, {name: '3元/小时', value: 800}, {name: '4元/小时', value: 800}, {name: '5元/小时', value: 800}]
95 95
       },
96
-
97 96
       tableData: [],
98 97
       tableData2: [],
99 98
       tableData3: [],

+ 0 - 8
src/pages/index/components/demo1.vue

@@ -523,14 +523,6 @@ export default {
523 523
   width: 100%;
524 524
   height: 70%;
525 525
 }
526
-.bar-tooltip-dz {
527
-  padding: 5px 10px;
528
-  background: url("../../../../static/img/u261.png");
529
-  background-size: 100% 100%;
530
-  color: #333;
531
-  position: absolute;
532
-  top: 0;
533
-}
534 526
 .tax-table {
535 527
   tbody {
536 528
     tr {

+ 45 - 48
src/pages/index/components/ip_white_list.vue

@@ -4,7 +4,7 @@
4 4
       <el-row>
5 5
         <el-col :span="8">
6 6
           <el-form-item label="IP地址">
7
-            <el-input v-model="formInline.ipUrl" placeholder="请输入"></el-input>
7
+            <el-input v-model="formInline.ipAddr" placeholder="请输入"></el-input>
8 8
           </el-form-item>
9 9
         </el-col>
10 10
         <el-col :span="8">
@@ -29,7 +29,7 @@
29 29
         label="操作"
30 30
         width="200">
31 31
         <template slot-scope="scope" style="display: inline-block">
32
-          <el-button type="primary" @click="handleAudit(scope.row)" slot="reference">修改</el-button>
32
+          <el-button type="primary" @click="handleEdit(scope.row)" slot="reference">修改</el-button>
33 33
           <el-popconfirm title="确定删除吗?" @confirm="deleteRow(scope.row)">
34 34
             <el-button type="danger" slot="reference">删除</el-button>
35 35
           </el-popconfirm>
@@ -48,7 +48,7 @@
48 48
       custom-class="audit-dialog">
49 49
       <el-form label-position="left" label-width="80px" :model="formLabelAlign">
50 50
         <el-form-item label="IP地址">
51
-          <el-input v-model="formLabelAlign.ipUrl"></el-input>
51
+          <el-input v-model="formLabelAlign.ipAddr"></el-input>
52 52
         </el-form-item>
53 53
       </el-form>
54 54
       <span slot="footer" class="dialog-footer">
@@ -68,26 +68,25 @@ export default {
68 68
       columns: [
69 69
         {
70 70
           label: 'IP地址',
71
-          key: 'resourceName'
71
+          key: 'ipAddr'
72 72
         },
73 73
         {
74 74
           label: '最后操作时间',
75
-          key: 'resourceType'
75
+          key: 'createTime'
76 76
         }
77 77
       ],
78 78
       tableData: [],
79 79
       total: 0,
80 80
       pageSize: 10,
81 81
       pageNum: 1,
82
-      radio: '2',
83 82
       dialogVisible: false,
84 83
       formInline: {
85
-        ipUrl: ''
84
+        ipAddr: ''
86 85
       },
87 86
       formLabelAlign: {
88
-        ipUrl: ''
87
+        id: '',
88
+        ipAddr: ''
89 89
       },
90
-      selRow: undefined,
91 90
       title: ''
92 91
     }
93 92
   },
@@ -97,9 +96,16 @@ export default {
97 96
   watch: {
98 97
   },
99 98
   methods: {
100
-    handleAudit(row) {
99
+    getTableData() {
100
+      const {pageNum, pageSize} = this
101
+      api.ipListByPage({current: pageNum, size: pageSize, ipAddr: this.formInline.ipAddr}).then(res => {
102
+        this.tableData = res.data.records || []
103
+        this.total = res.data.total
104
+      })
105
+    },
106
+    handleEdit(row) {
101 107
       this.title = '修改白名单'
102
-      this.formLabelAlign.ipUrl = row.resourceName
108
+      this.formLabelAlign = row
103 109
       this.dialogVisible = true
104 110
     },
105 111
     indexMethod(index) {
@@ -107,57 +113,48 @@ export default {
107 113
     },
108 114
     handleAdd () {
109 115
       this.title = '添加白名单'
110
-      this.formLabelAlign.ipUrl = ''
116
+      this.formLabelAlign.ipAddr = ''
111 117
       this.dialogVisible = true
112 118
     },
113 119
     onSubmit () {
114 120
       this.getTableData()
115 121
     },
116 122
     deleteRow (record) {
117
-      console.log(record)
123
+      api.deleteWhiteIp({id: record.id}).then(res => {
124
+        if (res.code === 200) {
125
+          this.$message({type: 'success', message: '删除成功!'})
126
+          this.getTableData()
127
+        }
128
+      })
118 129
     },
119 130
     handlePageChange() {
120 131
       this.getTableData()
121 132
     },
122 133
     handleConfirm() {
123
-      api.applyResource({idUrl: this.ipUrl}).then(res => {
124
-        if(res.success) {
125
-          this.dialogVisible = false
126
-          this.$message({
127
-            message: '添加成功!',
128
-            type: 'success'
129
-          })
130
-          this.getTableData()
131
-        }
132
-      })
133
-    },
134
-    getTableData() {
135
-      const {pageNum, pageSize} = this
136
-      api.applyList({pageNum, pageSize, ipUrl: this.formInline.ipUrl}).then(res => {
137
-        this.tableData = []
138
-        res.data.records.map((item, index) => {
139
-          const newItem = {...item}
140
-          newItem.applyTypeText = this.getApplyTypeText(item.applyType)
141
-          this.tableData.push(newItem)
134
+      if (this.title === '修改白名单') {
135
+        api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr, id: this.formLabelAlign.id}).then(res => {
136
+          if(res.code === 200) {
137
+            this.dialogVisible = false
138
+            this.$message({
139
+              message: '修改成功!',
140
+              type: 'success'
141
+            })
142
+            this.getTableData()
143
+          }
144
+        })
145
+      } else {
146
+        api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr}).then(res => {
147
+          if(res.code === 200) {
148
+            this.dialogVisible = false
149
+            this.$message({
150
+              message: '添加成功!',
151
+              type: 'success'
152
+            })
153
+            this.getTableData()
154
+          }
142 155
         })
143
-        this.total = res.data.total
144
-      })
145
-    },
146
-    getApplyTypeText(val) {
147
-      if (!val){
148
-        return '未申请'
149
-      }
150
-      const textMap = {
151
-        1: '待审批',
152
-        2: '审批通过',
153
-        3: '审批驳回'
154 156
       }
155
-      return textMap[val]
156 157
     },
157
-    handleSearch() {
158
-      this.pageNum = 1
159
-      this.getTableData()
160
-    }
161 158
   }
162 159
 }
163 160
 </script>

+ 10 - 8
src/pages/index/components/operation_log.vue

@@ -57,7 +57,7 @@
57 57
       :visible.sync="dialogVisible"
58 58
       width="60%"
59 59
       custom-class="audit-dialog">
60
-      <el-input type="textarea" disabled v-model="selRow.createTime"></el-input>
60
+      <el-input type="textarea" disabled v-model="logDetail.createTime"></el-input>
61 61
     </el-dialog>
62 62
   </div>
63 63
 </template>
@@ -96,7 +96,7 @@ export default {
96 96
       pageNum: 1,
97 97
       radio: '2',
98 98
       dialogVisible: false,
99
-      selRow: {},
99
+      logDetail: {},
100 100
       formInline: {
101 101
         interfaceName: '',
102 102
         time: ''
@@ -116,15 +116,17 @@ export default {
116 116
       this.getTableData()
117 117
     },
118 118
     handleDetail(row) {
119
-      this.selRow = row
120
-      this.dialogVisible = true
119
+      api.czrzDetail({id: row.id}).then(res => {
120
+        this.logDetail = res.data
121
+        this.dialogVisible = true
122
+      })
121 123
     },
122 124
     getTableData() {
123 125
       const {pageNum, pageSize, searchWords} = this
124
-      api.applyList({pageNum, pageSize, interfaceName: this.formInline.interfaceName}).then(res => {
125
-        this.tableData = res.data.records
126
-        this.total = res.data.total
127
-      })
126
+      // api.czrzListByPage({pageNum, pageSize, interfaceName: this.formInline.interfaceName}).then(res => {
127
+      //   this.tableData = res.data.records
128
+      //   this.total = res.data.total
129
+      // })
128 130
     },
129 131
     onSubmit() {
130 132
       console.log('submit!');

+ 158 - 148
src/pages/index/components/other_analyse.vue

@@ -14,13 +14,13 @@
14 14
           :colorArr="[ '#5d78ff']"
15 15
           legendIcon="react"
16 16
           :bottom="30"
17
-          :xlabelFormat="xLabelFormat"
17
+          :xlabelFormat="xLabelFormat1"
18 18
           :top="60"
19 19
           yAxisName="(停车次数)"
20
-          :tooltip="tooltipFormat"
20
+          :tooltip="tooltipFormat1"
21 21
           :dataset="bardata"
22 22
           :encode="[
23
-            {x: 'month', y: 'dq'},
23
+            {x: 'month', y: 'cs'},
24 24
             ]"
25 25
           :labelSize="20"
26 26
           id="qyfx"
@@ -36,8 +36,8 @@
36 36
           :radiusArr="['30%', '70%']"
37 37
           :roseType = "false"
38 38
           :colorArr="ccsl"
39
-          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
40
-          :dataset="ccslvalue.list"
39
+          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
40
+          :dataset="ccslvalue"
41 41
           :encode="{ itemName: 'name', value: 'value' }"
42 42
         />
43 43
       </div>
@@ -56,14 +56,14 @@
56 56
           :colorArr="[ '#5d78ff','#00ff83']"
57 57
           legendIcon="react"
58 58
           :bottom="30"
59
-          :xlabelFormat="xLabelFormat"
59
+          :xlabelFormat="xLabelFormat1"
60 60
           :top="60"
61 61
           yAxisName="(辆)"
62
-          :tooltip="tooltipFormat"
62
+          :tooltip="tooltipFormat2"
63 63
           :dataset="tcfbfx"
64 64
           :encode="[
65
-            {x: 'month', y: 'lwtc', seriesName: '路外停车'},
66
-            {x: 'month', y: 'lntc', seriesName: '路内停车'},
65
+            {x: 'mouth', y: 'hc', seriesName: '路外停车'},
66
+            {x: 'mouth', y: 'cs', seriesName: '路内停车'},
67 67
             ]"
68 68
           :labelSize="20"
69 69
           id="tcfbfx"
@@ -79,14 +79,14 @@
79 79
           :colorArr="[ '#5d78ff','#00ff83']"
80 80
           legendIcon="react"
81 81
           :bottom="30"
82
-          :xlabelFormat="xLabelFormat"
82
+          :xlabelFormat="xLabelFormat1"
83 83
           :top="60"
84 84
           yAxisName="(泊位)"
85
-          :tooltip="tooltipFormat"
85
+          :tooltip="tooltipFormat3"
86 86
           :dataset="ywfx"
87 87
           :encode="[
88
-            {x: 'month', y: 'lwtc', seriesName: '路外余位'},
89
-            {x: 'month', y: 'lntc', seriesName: '路内余位'},
88
+            {x: 'mouth', y: 'hs', seriesName: '路外余位'},
89
+            {x: 'mouth', y: 'cs', seriesName: '路内余位'},
90 90
             ]"
91 91
           :labelSize="20"
92 92
           id="ywfx"
@@ -114,13 +114,13 @@
114 114
           :autoStop="false"
115 115
           :top="30"
116 116
           :bottom="30"
117
-          :left="40"
117
+          :left="50"
118 118
           :legendTop="0"
119 119
           yAxisName=""
120 120
           :dataset="cllfx"
121
-          :tooltipFormat="lineTooltipFormat"
121
+          :tooltipFormat="lineTooltipFormat4"
122 122
           :encode="[
123
-              { x: 'month', y: 'cll', seriesName: '车流量' },
123
+              { x: 'month', y: 'lastAmount', seriesName: '车流量' },
124 124
             ]"
125 125
           id="cllfx"
126 126
         />
@@ -143,13 +143,13 @@
143 143
           :colorArr="[ '#5d78ff']"
144 144
           legendIcon="react"
145 145
           :bottom="30"
146
-          :xlabelFormat="xLabelFormat"
146
+          :xlabelFormat="xLabelFormat1"
147 147
           :top="60"
148 148
           yAxisName=""
149
-          :tooltip="tooltipFormat"
149
+          :tooltip="lineTooltipFormat5"
150 150
           :dataset="dlyltcc"
151 151
           :encode="[
152
-            {x: 'month', y: 'dq'},
152
+            {x: 'mouth', y: 'hs'},
153 153
             ]"
154 154
           :labelSize="20"
155 155
           id="dlyltcc"
@@ -178,8 +178,8 @@
178 178
           :roseType="false"
179 179
           :radiusArr="['30%', '70%']"
180 180
           :colorArr="modelPieColor"
181
-          :labelFormat="['{name|{b}}', '{sub|{d}%}', '{hr|}']"
182
-          :dataset="modelData.list"
181
+          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
182
+          :dataset="zdcljcfx"
183 183
           :encode="{ itemName: 'name', value: 'value' }"
184 184
         />
185 185
     </div>
@@ -199,7 +199,8 @@ import piechart from "@/components/pieChart";
199 199
 import linechart from "@/components/lineChart";
200 200
 import barchart from "@/components/barChart";
201 201
 import * as echarts from 'echarts'
202
-import * as geoJson from '../../../util/411100.json'
202
+import * as geoJson from '@/util/411100.json'
203
+
203 204
 export default {
204 205
   name: "chinaLineMap",
205 206
   components: {
@@ -231,14 +232,12 @@ export default {
231 232
         label: '人民东路'
232 233
       }],
233 234
       ccsl: ["#ff8700","#9078f8","#ff0000","#4cff37","#4382f6"],
234
-      ccslvalue: {
235
-        list: [{name: '郾城区', value: 600}, {name: '临颍县', value: 800},{name: '舞阳县', value: 720}, {name: '源汇区', value: 840}, {name: '召陵区', value: 960}]
236
-      },
237
-      bardata: [{month: '郾城区', dq: 100},{month: '临颍县', dq: 120},{month: '舞阳县', dq: 115},{month: '源汇区', dq: 135},{month: '召陵区', dq: 150}],
238
-      tcfbfx: [{month: '郾城区', lwtc: 100,lntc:92},{month: '临颍县', lwtc: 120,lntc:80},{month: '舞阳县', lwtc: 110,lntc:65},{month: '源汇区', lwtc: 65,lntc:120},{month: '召陵区', lwtc: 70,lntc:95}],
239
-      ywfx: [{month: '郾城区', lwtc: 100,lntc:92},{month: '临颍县', lwtc: 120,lntc:80},{month: '舞阳县', lwtc: 110,lntc:65},{month: '源汇区', lwtc: 65,lntc:120},{month: '召陵区', lwtc: 70,lntc:95}],
240
-      cllfx: [{month: '郾城区', cll: 20}, {month: '临颍县', cll: 35},{month: '舞阳县', cll: 42},{month: '源汇区', cll: 31},{month: '召陵区', cll: 74},],
241
-      dlyltcc: [{month: '郾城区', dq: 100},{month: '临颍县', dq: 120},{month: '舞阳县', dq: 115},{month: '源汇区', dq: 135},{month: '召陵区', dq: 150}],
235
+      ccslvalue: [],
236
+      bardata: [],
237
+      tcfbfx: [],
238
+      ywfx: [],
239
+      cllfx: [],
240
+      dlyltcc: [],
242 241
       tableData: [],
243 242
       tableData2: [],
244 243
       tableData3: [],
@@ -332,149 +331,151 @@ export default {
332 331
       searchWords2: undefined,
333 332
       searchWords3: undefined,
334 333
       modelPieColor: ["#4382f6", "#9078f8", "#79a7db", "#FF9800"],
335
-      modelData: {
336
-        list: [{name: '建筑车', value: 23}, {name: '危险品车', value:5}, {name: '特种车', value:27}, {name: '残疾人车', value:45}]
337
-      },
334
+      zdcljcfx: [],
338 335
     }
339 336
   },
340 337
   mounted() {
338
+    this.getQyfx()
339
+    this.getCcsl()
340
+    this.getTcfbfx()
341
+    this.getYwfx()
342
+    this.getCllfx()
343
+    this.getDlyltcc()
344
+    this.getZdcljcfx()
341 345
     this.loadChinaLineMap()
342
-    let arr = []
343
-    let dataSoure = {
344
-      '411102': {quyuName: '源汇区', zb: 40},
345
-      '411103': {quyuName: '郾城区', zb: 60},
346
-      '411104': {quyuName: '召陵区', zb: 40},
347
-      '411121': {quyuName: '舞阳县', zb: 50},
348
-      '411122': {quyuName: '临颍县', zb: 30}}
349
-    for (const key in dataSoure) {
350
-      if (key !== '411100') {
351
-        arr.push({
352
-          name: dataSoure[key].quyuName,
353
-          value: Number(dataSoure[key].zb),
354
-        });
355
-      }
356
-    }
357
-    let mapMax = Math.max(...arr.map(item => item.value))
358
-    let mapMin = Math.min(...arr.map(item => item.value))
359
-    console.log(mapMin, '111')
360
-    console.log(mapMax, '222')
361
-    let chart = echarts.init(document.getElementById("map"));
362
-    echarts.registerMap("luohe", geoJson);
363
-    this.option.series[0].data = arr;
364
-    this.option.visualMap.min = mapMin;
365
-    this.option.visualMap.max = mapMax;
366
-    chart.setOption(this.option);
367
-    this.dqIndex = -1;
368
-    this.setIntervalMap(chart);
369
-    //鼠标移入静止播放
370
-    chart.on("mouseover", (e) => {
371
-      clearInterval(this.timer);
372
-      chart.dispatchAction({
373
-        type: "showTip",
374
-        seriesIndex: 0,
375
-        dataIndex: e.dataIndex,
376
-      });
377
-    });
378
-    chart.on("mouseout", (e) => {
379
-      clearInterval(this.timer);
380
-      //鼠标移出后先把上次的高亮取消
381
-      chart.dispatchAction({
382
-        type: "downplay",
383
-        seriesIndex: 0,
384
-        dataIndex: e.dataIndex,
385
-      });
386
-      this.setIntervalMap(chart);
387
-    });
346
+    this.loadMap()
388 347
   },
389 348
   watch: {
390 349
   },
391 350
   methods: {
392
-    handlePageChange() {
393
-      this.getTableData()
394
-    },
395
-    handleAudit(row) {
396
-      this.selRow = row
397
-      this.dialogVisible = true
398
-    },
399
-    handleCancelApply(row) {
400
-      console.log('enter handle cancel apply')
351
+    getQyfx() {
352
+      api.qyfx().then(res => {
353
+        this.bardata = res.data || []
354
+      })
401 355
     },
402
-    handleConfirm() {
403
-      const {id} = this.selRow
404
-      console.log('radio', this.radio)
405
-      api.applyResource({id, applyType: this.radio}).then(res => {
406
-        if(res.success) {
407
-          this.dialogVisible = false
408
-          this.$message({
409
-            message: '审核成功!',
410
-            type: 'success'
411
-          })
412
-          this.getTableData()
413
-        }
356
+    getCcsl() {
357
+      api.ccsl().then(res => {
358
+        this.ccslvalue = res.data || []
414 359
       })
415 360
     },
416
-
417
-    mapTooltip(data) {
418
-      return `<div class="map-tooltip">
419
-        <div class="map-tooltip-name">${data.name}:<span class="map-tooltip-value">${data.value}%</span></div>
420
-      </div>`;
361
+    getTcfbfx() {
362
+      api.tcfbfx().then(res => {
363
+        this.tcfbfx = res.data || []
364
+      })
421 365
     },
422
-    getTableData() {
423
-      const {pageNum, pageSize, searchWords} = this
424
-      api.applyList({}).then(res => {
425
-        this.tableData = []
426
-        res.data.records.map((item, index) => {
427
-          const newItem = {...item}
428
-          newItem.applyTypeText = this.getApplyTypeText(item.applyType)
429
-          this.tableData.push(newItem)
430
-        })
431
-        this.total = res.data.total
366
+    getYwfx() {
367
+      api.ywfx().then(res => {
368
+        this.ywfx = res.data || []
432 369
       })
433 370
     },
434
-    getTableData2() {
435
-      api.applyList({}).then(res => {
436
-        this.tableData2 =  res.data.data
437
-        this.total2 = res.data.total
371
+    getCllfx() {
372
+      api.cllfx().then(res => {
373
+        this.cllfx = res.data || []
438 374
       })
439 375
     },
440
-
441
-    getTableData3() {
442
-      api.applyList({}).then(res => {
443
-        this.tableData3 =  res.data.data
444
-        this.total3 = res.data.total
376
+    getDlyltcc() {
377
+      api.dlyltcc().then(res => {
378
+        this.dlyltcc = res.data || []
445 379
       })
446 380
     },
447
-
448
-    getTableData4() {
449
-      api.applyList({}).then(res => {
450
-        this.tableData4 =  res.data.data
451
-        this.total4 = res.data.total
381
+    getZdcljcfx() {
382
+      api.zdcljcfx().then(res => {
383
+        this.zdcljcfx = res.data || []
452 384
       })
453 385
     },
454
-
455
-    getApplyTypeText(val) {
456
-      if (!val){
457
-        return '未申请'
458
-      }
459
-      const textMap = {
460
-        1: '待审批',
461
-        2: '审批通过',
462
-        3: '审批驳回'
386
+    xLabelFormat1(name) {
387
+      const nameArr = []
388
+      for(let i=0; i<name.length; i+=7) {
389
+        nameArr.push(name.substring(i, i+7))
463 390
       }
464
-      return textMap[val]
391
+      return nameArr.join('\n');
392
+    },
393
+    tooltipFormat1(params) {
394
+      const data = params[0].data;
395
+      return `<div class="bar-tooltip-dz">${data.cs || "--"}次</div>`;
465 396
     },
466
-    handleSearch() {
467
-      this.pageNum = 1
468
-      this.getTableData()
397
+    tooltipFormat2(params) {
398
+      const data = params[0].data;
399
+      return `<div class="line-tooltip">
400
+        <div style="color: ${params[0].color}">${params[0].seriesName}: ${
401
+        params[0].data.hs || "--"
402
+      }(辆)</div>
403
+        <div style="color: ${params[1].color}">${params[1].seriesName}: ${
404
+        params[0].data.cs || "--"
405
+      }(辆)</div>
406
+      </div>`;
407
+    },
408
+    tooltipFormat3(params) {
409
+      const data = params[0].data;
410
+      return `<div class="line-tooltip">
411
+        <div style="color: ${params[0].color}">${params[0].seriesName}: ${
412
+        params[0].data.hs || "--"
413
+      }(辆)</div>
414
+        <div style="color: ${params[1].color}">${params[1].seriesName}: ${
415
+        params[0].data.cs || "--"
416
+      }(辆)</div>
417
+      </div>`;
418
+    },
419
+    lineTooltipFormat4(params) {
420
+      const data = params[0].data;
421
+      return `<div class="bar-tooltip-dz">${data.lastAmount || "--"}次</div>`;
422
+    },
423
+    lineTooltipFormat5(params) {
424
+      const data = params[0].data;
425
+      return `<div class="bar-tooltip-dz">${data.hs || "--"}</div>`;
426
+    },
427
+    mapTooltip(data) {
428
+      return `<div class="map-tooltip">
429
+        <div class="map-tooltip-name">${data.name}:<span class="map-tooltip-value">${data.value}%</span></div>
430
+      </div>`;
469 431
     },
470
-    zeroPadding(num, digit) {
471
-      var zero = '';
472
-      for(var i = 0; i < digit; i++) {
473
-        zero += '0';
432
+    loadMap() {
433
+      let arr = []
434
+      let dataSoure = {
435
+        '411102': {quyuName: '源汇区', zb: 40},
436
+        '411103': {quyuName: '郾城区', zb: 60},
437
+        '411104': {quyuName: '召陵区', zb: 40},
438
+        '411121': {quyuName: '舞阳县', zb: 50},
439
+        '411122': {quyuName: '临颍县', zb: 30}}
440
+      for (const key in dataSoure) {
441
+        if (key !== '411100') {
442
+          arr.push({
443
+            name: dataSoure[key].quyuName,
444
+            value: Number(dataSoure[key].zb),
445
+          });
446
+        }
474 447
       }
475
-      return (zero + num).slice(-digit);
448
+      let mapMax = Math.max(...arr.map(item => item.value))
449
+      let mapMin = Math.min(...arr.map(item => item.value))
450
+      let chart = echarts.init(document.getElementById("map"));
451
+      echarts.registerMap("luohe", geoJson);
452
+      this.option.series[0].data = arr;
453
+      this.option.visualMap.min = mapMin;
454
+      this.option.visualMap.max = mapMax;
455
+      chart.setOption(this.option);
456
+      this.dqIndex = -1;
457
+      this.setIntervalMap(chart);
458
+      //鼠标移入静止播放
459
+      chart.on("mouseover", (e) => {
460
+        clearInterval(this.timer);
461
+        chart.dispatchAction({
462
+          type: "showTip",
463
+          seriesIndex: 0,
464
+          dataIndex: e.dataIndex,
465
+        });
466
+      });
467
+      chart.on("mouseout", (e) => {
468
+        clearInterval(this.timer);
469
+        //鼠标移出后先把上次的高亮取消
470
+        chart.dispatchAction({
471
+          type: "downplay",
472
+          seriesIndex: 0,
473
+          dataIndex: e.dataIndex,
474
+        });
475
+        this.setIntervalMap(chart);
476
+      });
476 477
     },
477
-    //加载中国飞线地图
478
+    //加载轨迹地图
478 479
     loadChinaLineMap() {
479 480
       echarts.registerMap('河南', geoJson);
480 481
       var myCharts = echarts.init(document.getElementById('ChinaLineMap'));
@@ -726,4 +727,13 @@ export default {
726 727
   width: 100%;
727 728
   height: 99%;
728 729
 }
730
+
731
+.bar-tooltip-dz {
732
+  padding: 5px 10px;
733
+  background: url("../../../../static/img/u261.png");
734
+  background-size: 100% 100%;
735
+  color: #333;
736
+  position: absolute;
737
+  top: 0;
738
+}
729 739
 </style>

+ 1 - 1
src/pages/index/components/park_easy.vue

@@ -169,7 +169,7 @@ export default {
169 169
     },
170 170
   },
171 171
   mounted() {
172
-    api.nyzs().then(res => {
172
+    api.dtnyzs().then(res => {
173 173
       let arr = []
174 174
       let dataSoure = res.data
175 175
       for (const key in dataSoure) {

+ 40 - 44
src/pages/index/components/park_guidance.vue

@@ -18,8 +18,9 @@
18 18
 
19 19
 <script>
20 20
 import * as echarts from 'echarts'
21
-import * as geoJson from '../../../util/411100.json'
21
+import * as geoJson from '@/util/411100.json'
22 22
 import linechart from "@/components/lineChart";
23
+import api from '@/api/audit'
23 24
 
24 25
 export default {
25 26
   components: {
@@ -143,52 +144,47 @@ export default {
143 144
     },
144 145
   },
145 146
   mounted() {
146
-    let arr = []
147
-    let dataSoure = {
148
-      '411102': {quyuName: '源汇区', zb: 40},
149
-      '411103': {quyuName: '郾城区', zb: 60},
150
-      '411104': {quyuName: '召陵区', zb: 40},
151
-      '411121': {quyuName: '舞阳县', zb: 50},
152
-      '411122': {quyuName: '临颍县', zb: 30}}
153
-    for (const key in dataSoure) {
154
-      if (key !== '411100') {
155
-        arr.push({
156
-          name: dataSoure[key].quyuName,
157
-          value: Number(dataSoure[key].zb),
158
-        });
147
+    api.nyzs().then(res => {
148
+      let arr = []
149
+      let dataSoure = res.data
150
+      for (const key in dataSoure) {
151
+        if (key !== 411100) {
152
+          arr.push({
153
+            name: dataSoure[key].quyuName,
154
+            value: Number(dataSoure[key].zb),
155
+          });
156
+        }
159 157
       }
160
-    }
161
-    let mapMax = Math.max(...arr.map(item => item.value))
162
-    let mapMin = Math.min(...arr.map(item => item.value))
163
-    console.log(mapMin, '111')
164
-    console.log(mapMax, '222')
165
-    let chart = echarts.init(document.getElementById("map"));
166
-    echarts.registerMap("luohe", geoJson);
167
-    this.option.series[0].data = arr;
168
-    this.option.visualMap.min = mapMin;
169
-    this.option.visualMap.max = mapMax;
170
-    chart.setOption(this.option);
171
-    this.dqIndex = -1;
172
-    this.setIntervalMap(chart);
173
-    //鼠标移入静止播放
174
-    chart.on("mouseover", (e) => {
175
-      clearInterval(this.timer);
176
-      chart.dispatchAction({
177
-        type: "showTip",
178
-        seriesIndex: 0,
179
-        dataIndex: e.dataIndex,
158
+      let mapMax = Math.max(...arr.map(item => item.value))
159
+      let mapMin = Math.min(...arr.map(item => item.value))
160
+      let chart = echarts.init(document.getElementById("map"));
161
+      echarts.registerMap("luohe", geoJson);
162
+      this.option.series[0].data = arr;
163
+      this.option.visualMap.min = mapMin;
164
+      this.option.visualMap.max = mapMax;
165
+      chart.setOption(this.option);
166
+      this.dqIndex = -1;
167
+      this.setIntervalMap(chart);
168
+      //鼠标移入静止播放
169
+      chart.on("mouseover", (e) => {
170
+        clearInterval(this.timer);
171
+        chart.dispatchAction({
172
+          type: "showTip",
173
+          seriesIndex: 0,
174
+          dataIndex: e.dataIndex,
175
+        });
180 176
       });
181
-    });
182
-    chart.on("mouseout", (e) => {
183
-      clearInterval(this.timer);
184
-      //鼠标移出后先把上次的高亮取消
185
-      chart.dispatchAction({
186
-        type: "downplay",
187
-        seriesIndex: 0,
188
-        dataIndex: e.dataIndex,
177
+      chart.on("mouseout", (e) => {
178
+        clearInterval(this.timer);
179
+        //鼠标移出后先把上次的高亮取消
180
+        chart.dispatchAction({
181
+          type: "downplay",
182
+          seriesIndex: 0,
183
+          dataIndex: e.dataIndex,
184
+        });
185
+        this.setIntervalMap(chart);
189 186
       });
190
-      this.setIntervalMap(chart);
191
-    });
187
+    })
192 188
   },
193 189
 };
194 190
 </script>

+ 46 - 40
src/pages/index/components/service_publish.vue

@@ -2,7 +2,7 @@
2 2
   <div class="body-wrapper">
3 3
     <div>
4 4
       <h2 style="color: #3498db;margin-bottom: 20px;display: inline-block;width: 90%">服务发布列表</h2>
5
-      <el-button type="primary" @click="handleAdd">配置服务</el-button>
5
+      <el-button type="primary" @click="handleAdd">发布服务</el-button>
6 6
     </div>
7 7
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
8 8
       <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
@@ -69,13 +69,10 @@ export default {
69 69
       tableData: [{"interfaceName":'消息通知',"interfaceAddress":'http://39.106.16.100/notification',"submitState":'已提交',"publicState":' 未发布'}
70 70
         ,{"interfaceName":'预警提醒',"interfaceAddress":'http://39.106.16.100/warning',"submitState":'已提交',"publicState":' 未发布'},
71 71
         ,{"interfaceName":'剩余车位推送',"interfaceAddress":'http://39.106.16.100/seatpush',"submitState":'已提交',"publicState":' 已发布'},],
72
-      total: 3,
72
+      total: 0,
73 73
       pageSize: 10,
74 74
       pageNum: 1,
75
-      radio: '2',
76 75
       dialogVisible: false,
77
-      selRow: {},
78
-      searchWords: undefined,
79 76
       formLabelAlign: {
80 77
         interfaceName: '',
81 78
         interfaceAddress: '',
@@ -94,29 +91,20 @@ export default {
94 91
     handlePageChange() {
95 92
       this.getTableData()
96 93
     },
97
-    handleAudit(row) {
98
-      this.selRow = row
99
-      this.dialogVisible = true
100
-    },
101
-    handleCancelApply(row) {
102
-      console.log('enter handle cancel apply')
103
-    },
104 94
     handleAdd () {
105 95
       this.title = '配置服务'
106 96
       this.formLabelAlign.interfaceName = ''
107 97
       this.formLabelAlign.interfaceAddress = ''
108
-      // this.formLabelAlign.submitState = ''
109
-      // this.formLabelAlign.publicState = ''
110 98
       this.dialogVisible = true
111 99
     },
112 100
     handleConfirm() {
113 101
       const {id} = this.selRow
114 102
       console.log('radio', this.radio)
115
-      api.applyResource({id, applyType: this.formLabelAlign.interfaceName}).then(res => {
116
-        if(res.success) {
103
+      api.servicePublic({id, applyType: this.formLabelAlign.interfaceName}).then(res => {
104
+        if(res.code === 200) {
117 105
           this.dialogVisible = false
118 106
           this.$message({
119
-            message: '审核成功!',
107
+            message: '发布成功!',
120 108
             type: 'success'
121 109
           })
122 110
           this.getTableData()
@@ -125,7 +113,7 @@ export default {
125 113
     },
126 114
     getTableData() {
127 115
       const {pageNum, pageSize, searchWords} = this
128
-      api.applyList({pageNum, pageSize, resourceName: searchWords}).then(res => {
116
+      api.serviceListByPage({pageNum, pageSize, resourceName: searchWords}).then(res => {
129 117
         this.tableData = []
130 118
         res.data.records.map((item, index) => {
131 119
           const newItem = {...item}
@@ -134,26 +122,49 @@ export default {
134 122
         })
135 123
         this.total = res.data.total
136 124
       })
137
-    },
138
-    getApplyTypeText(val) {
139
-      if (!val){
140
-        return '未申请'
141
-      }
142
-      const textMap = {
143
-        1: '待审批',
144
-        2: '审批通过',
145
-        3: '审批驳回'
146
-      }
147
-      return textMap[val]
148
-    },
149
-    handleSearch() {
150
-      this.pageNum = 1
151
-      this.getTableData()
152 125
     }
153 126
   }
154 127
 }
155 128
 </script>
156 129
 <style  lang="scss" scoped>
130
+
131
+.form-wrapper {
132
+  margin-bottom: 20px;
133
+}
134
+/deep/ .el-input__inner {
135
+  background: #2d3744;
136
+  border: none;
137
+  border-radius: 0;
138
+}
139
+/deep/ .el-select {
140
+  height: 40px;
141
+  .el-input__inner {
142
+    height: 40px;
143
+  }
144
+  .el-input__prefix, .el-input__suffix {
145
+    height: 40px;
146
+  }
147
+
148
+  /* 下面设置右侧按钮居中 */
149
+  .el-input__suffix {
150
+    top: 0px;
151
+    display: flex;
152
+    justify-content: center;
153
+    align-items: center;
154
+    flex-wrap: nowrap;
155
+    flex-direction: row;
156
+    align-content: flex-start;
157
+  }
158
+  /* 输入框加上上下边是 32px + 2px =34px */
159
+  .el-input__icon {
160
+    line-height: 0px;
161
+  }
162
+}
163
+/deep/ .form-wrapper .el-button {
164
+  background: linear-gradient(90deg,#0158d9,#3c97e4);
165
+  width: 100px;
166
+  height: 40px;
167
+}
157 168
 .body-wrapper {
158 169
   padding: 20px;
159 170
   background: #0c0c0c;
@@ -168,13 +179,8 @@ export default {
168 179
   .label{
169 180
     text-align: right;
170 181
   }
171
-  .form-div{
172
-    /deep/ .el-input__inner{
173
-      height: 35px;
174
-      width: 90%;
175
-      border: 1px solid #a6a5a5;
176
-      color: black;
177
-    }
182
+  /deep/ .el-input__inner{
183
+    background: white;
178 184
   }
179 185
 }
180 186
 </style>

+ 9 - 9
src/pages/index/components/service_subscription_function.vue

@@ -126,15 +126,15 @@ export default {
126 126
       },
127 127
       getTableData() {
128 128
         const {pageNum, pageSize, searchWords} = this
129
-        api.applyList({pageNum, pageSize, resourceName: searchWords}).then(res => {
130
-          this.tableData = []
131
-          res.data.records.map((item, index) => {
132
-            const newItem = {...item}
133
-            newItem.applyTypeText = this.getApplyTypeText(item.applyType)
134
-            this.tableData.push(newItem)
135
-          })
136
-          this.total = res.data.total
137
-        })
129
+        // api.applyList({pageNum, pageSize, resourceName: searchWords}).then(res => {
130
+        //   this.tableData = []
131
+        //   res.data.records.map((item, index) => {
132
+        //     const newItem = {...item}
133
+        //     newItem.applyTypeText = this.getApplyTypeText(item.applyType)
134
+        //     this.tableData.push(newItem)
135
+        //   })
136
+        //   this.total = res.data.total
137
+        // })
138 138
       },
139 139
       getApplyTypeText(val) {
140 140
         if (!val){