Browse Source

页面接口改动

zbb 1 year ago
parent
commit
2ee175622f

+ 30 - 0
src/api/article_z.js

@@ -0,0 +1,30 @@
1
+// 文章
2
+import axios from "../util/ajax";
3
+
4
+//分页获取文章列表
5
+// const queryIndexContent =  (params) => axios.post(`/dash/charge/business/analysis/stat1/`, params);
6
+
7
+//停车盲点挖掘
8
+const queryBlindContext =  (params) => axios.post(`/dash/blind/spot/digging/stat1`, params);
9
+//路内泊位设置推荐
10
+const queryBerthContext =  (params) => axios.post(`/dash/berth/recommend/page`, params);
11
+//路内泊位设置推荐
12
+const queryGapMapContext =  (params) => axios.post(`/dash/gap/analysis/stat1`, params);
13
+
14
+// 增加内容
15
+// const addIndexContent = params => axios.post(`/xyjc/index-content/add`, params);
16
+//
17
+// // 编辑内容
18
+// const editIndexContent = params =>
19
+//   axios.post(`/xyjc/index-content/update`, params);
20
+//
21
+// // 删除内容
22
+// const deleteIndexContent = id =>
23
+//   axios.delete(`/xyjc/index-content/delete/${id}`);
24
+
25
+export default {
26
+  // queryIndexContent,
27
+  queryBlindContext,
28
+  queryBerthContext,
29
+  queryGapMapContext
30
+};

+ 16 - 16
src/config/index.js

@@ -1,21 +1,21 @@
1 1
 /**
2 2
  * 系统配置类入口
3 3
  */
4
- const Config = {
5
-    dev: {
6
-      // BASE_API: 'https://172.16.36.211:8800', // http://172.16.36.211:8800
7
-      BASE_API: 'https://172.16.36.216:8801/westport/', // http://172.16.36.211:8800
8
-    },
9
-    build: {
10
-      //服务地址及端口配置
11
-      BASE_API: 'https://172.16.36.211:8800', // http://172.16.36.211:8800,
12
-    },
13
-    applicationName: '漯河停车管理系统',
14
-  }
4
+const Config = {
5
+  dev: {
6
+// BASE_API: 'https://172.16.36.211:8800', // http://172.16.36.211:8800
7
+    BASE_API: 'http://101.42.41.254:83/luohe2_ee/api', // http://172.16.36.211:8800
8
+  },
9
+  build: {
10
+//服务地址及端口配置
11
+    BASE_API: 'http://101.42.41.254:83/luohe2_ee/api', // http://172.16.36.211:8800,
12
+  },
13
+  applicationName: '漯河停车管理系统',
14
+}
15 15
 
16
-  //方便运行时态对配置修改
17
-  if (window && window.mungConfig) {
18
-    Object.assign(Config, window.mungConfig)
19
-  }
16
+//方便运行时态对配置修改
17
+if (window && window.mungConfig) {
18
+  Object.assign(Config, window.mungConfig)
19
+}
20 20
 
21
-  export default Config
21
+export default Config

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div>
4
-      <h2 style="color: white;margin-bottom: 20px;display: inline-block;width: 90%">公告信息</h2>
4
+      <h2 style="color: #3498db;margin-bottom: 20px;display: inline-block;width: 90%">公告信息</h2>
5 5
       <el-button type="primary" @click="handleAdd">发布公告</el-button>
6 6
     </div>
7 7
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div class="body-wrapper" style="height: 300px;">
4
-      <div style="color: white;font-size: 23px;margin-bottom: 20px">各区域停车缺口</div>
4
+      <div style="color: #3498db;font-size: 23px;margin-bottom: 20px">各区域停车缺口</div>
5 5
       <linechart
6 6
         :autoStop="false"
7 7
         :top="30"
@@ -17,7 +17,7 @@
17 17
         id="sxcyfzqk"
18 18
       />
19 19
       <div class="body-wrapper" style=" height: 450px">
20
-        <div style="color: white;font-size: 23px;margin-bottom: 20px">各区域路内泊位</div>
20
+        <div style="color: #3498db;font-size: 23px;margin-bottom: 20px">各区域路内泊位</div>
21 21
         <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
22 22
           <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
23 23
           </el-table-column>
@@ -33,10 +33,12 @@
33 33
 </template>
34 34
 <script>
35 35
 import linechart from "@/components/lineChart";
36
+// import article_z from "../../../api/article_z";
36 37
 
37 38
 export default {
38 39
   components: {
39 40
     linechart,
41
+    // article_z
40 42
   },
41 43
   data() {
42 44
     return {
@@ -74,6 +76,7 @@ export default {
74 76
   },
75 77
   mounted() {
76 78
     this.getTableData()
79
+    // this.linedataData()
77 80
   },
78 81
   watch: {
79 82
   },
@@ -121,6 +124,14 @@ export default {
121 124
         this.total = res.data.total
122 125
       })
123 126
     },
127
+    //初始化
128
+    // linedataData(){
129
+    //   article_z.queryBerthContext().then(res=>{
130
+    //     const lastA=res.data;
131
+    //     this.linedata=res.data.map(item=>({...item,thisAmount: 30}));
132
+    //     console.log(res.data)
133
+    //   })
134
+    // },
124 135
   }
125 136
 }
126 137
 </script>

+ 19 - 10
src/pages/index/components/blind_spot_digging.vue

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div class="body-wrapper" style="height: 300px;">
4
-      <div style="color: white;font-size: 23px;margin-bottom: 20px">各区域停车盲点</div>
4
+      <div style="color: #3498db;font-size: 23px;margin-bottom: 20px">各区域停车盲点</div>
5 5
       <linechart
6 6
         :autoStop="false"
7 7
         :top="30"
@@ -11,13 +11,13 @@
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: 'month', y: 'thisAmount', seriesName: '预警值',col:'red' },
15
+              { x: 'month', y: 'lastAmount', seriesName: '盲点',bool:'true' },
16 16
             ]"
17 17
         id="sxcyfzqk"
18 18
       />
19 19
       <div class="body-wrapper" style=" height: 450px">
20
-        <div style="color: white;font-size: 23px;margin-bottom: 20px">各区域优化建议</div>
20
+        <div style="color: #3498db;font-size: 23px;margin-bottom: 20px">各区域优化建议</div>
21 21
         <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
22 22
           <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
23 23
           </el-table-column>
@@ -33,16 +33,18 @@
33 33
 </template>
34 34
 <script>
35 35
 import linechart from "@/components/lineChart";
36
+import article_z from "../../../api/article_z";
36 37
 
37 38
 export default {
38 39
   components: {
39 40
     linechart,
41
+    article_z
40 42
   },
41 43
   data() {
42 44
     return {
43
-      linedata: [{month: '老街街道',lastYearAmount: 30, thisYearAmount: 20}, {month: '马路街街道', lastYearAmount:30, thisYearAmount:50}
44
-        , {month: '顺河街街道', lastYearAmount:30, thisYearAmount:30}, {month: '干河陈街道', lastYearAmount:30, thisYearAmount:30}
45
-        , {month: '大刘镇', lastYearAmount:30, thisYearAmount:0}, {month: '阴阳赵镇', lastYearAmount:30, thisYearAmount:0}],
45
+      linedata: [{month: '老街街道',thisAmount: 30, lastAmount: 20}, {month: '马路街街道', thisAmount:30, lastAmount:50}
46
+        , {month: '顺河街街道', thisAmount:30, lastAmount:30}, {month: '干河陈街道', thisAmount:30, lastAmount:30}
47
+        , {month: '大刘镇', thisAmount:30, lastAmount:0}, {month: '阴阳赵镇', thisAmount:30, lastAmount:0}],
46 48
       columns: [
47 49
         {
48 50
           label: '街道名称',
@@ -73,7 +75,8 @@ export default {
73 75
     }
74 76
   },
75 77
   mounted() {
76
-    this.getTableData()
78
+    // this.getTableData(),
79
+    this.linedataData()
77 80
   },
78 81
   watch: {
79 82
   },
@@ -82,10 +85,10 @@ export default {
82 85
       const data = params[0].data;
83 86
       return `<div class="line-tooltip">
84 87
         <div style="color: ${params[1].color}">${params[1].seriesName}: ${
85
-        params[0].data.thisYearAmount || "--"
88
+        params[0].data.lastAmount || "--"
86 89
       }(%)</div>
87 90
         <div style="color: red">${params[0].seriesName}: ${
88
-        params[0].data.lastYearAmount || "--"
91
+        params[0].data.thisAmount || "--"
89 92
       }(%)</div>
90 93
       </div>`;
91 94
     },
@@ -121,6 +124,12 @@ export default {
121 124
         this.total = res.data.total
122 125
       })
123 126
     },
127
+    //初始化
128
+    linedataData(){
129
+      article_z.queryBlindContext().then(res=>{
130
+        this.linedata=res.data.map(item=>({...item,thisAmount: 30}));
131
+      })
132
+    },
124 133
   }
125 134
 }
126 135
 </script>

+ 3 - 2
src/pages/index/components/charge_business_analysis.vue

@@ -59,7 +59,7 @@ import barchart from "@/components/barChart";
59 59
 export default {
60 60
   components: {
61 61
     piechart,
62
-    barchart
62
+    barchart,
63 63
   },
64 64
   data() {
65 65
     return {
@@ -95,7 +95,8 @@ export default {
95 95
         nameArr.push(name.substring(i, i+7))
96 96
       }
97 97
       return nameArr.join('\n');
98
-    }
98
+    },
99
+
99 100
   }
100 101
 }
101 102
 </script>

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <div style="color: #d5d3d3" class="middle-map">
4
-      <div align="center" style="color: white;font-size: 23px;margin-bottom: 20px">停车缺口分析</div>
4
+      <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">停车缺口分析</div>
5 5
       <el-select v-model="value" filterable remote reserve-keyword placeholder="请选择时段">
6 6
         <el-option
7 7
           v-for="item in options"
@@ -15,7 +15,7 @@
15 15
       </div>
16 16
     </div>
17 17
       <div class="body-wrapper" style="height: 300px">
18
-        <div align="center" style="color: white;font-size: 23px;margin-bottom: 20px">停车缺口变化趋势</div>
18
+        <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">停车缺口变化趋势</div>
19 19
         <linechart
20 20
           :autoStop="false"
21 21
           :top="30"

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div>
4
-      <h2 style="color: white;margin-bottom: 20px;">消息中心</h2>
4
+      <h2 style="color: #3498db;margin-bottom: 20px;">消息中心</h2>
5 5
     </div>
6 6
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
7 7
       <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <div style="color: #d5d3d3" class="middle-map">
4
-      <div align="center" style="color: white;font-size: 23px;margin-bottom: 20px">区域综合评估</div>
4
+      <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">区域综合评估</div>
5 5
       <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
6 6
         <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
7 7
         </el-table-column>
@@ -13,7 +13,7 @@
13 13
       </div>
14 14
     </div>
15 15
     <div class="body-wrapper" style="height: 300px">
16
-      <div align="center" style="color: white;font-size: 23px;margin-bottom: 20px">停车发展评估</div>
16
+      <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">停车发展评估</div>
17 17
       <el-table :data="tableData1" style="background: #2a2a2a;border-color: #333;">
18 18
         <el-table-column v-for="(item, index) in columns1" :key="index" :label="item.label" :prop="item.key">
19 19
         </el-table-column>

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <div style="color: #d5d3d3" class="middle-map">
4
-      <div align="center" style="color: white;font-size: 23px;margin-bottom: 20px">停车难易指数</div>
4
+      <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">停车难易指数</div>
5 5
       <el-select v-model="value" filterable remote reserve-keyword placeholder="请选择时段">
6 6
         <el-option
7 7
           v-for="item in options"
@@ -15,7 +15,7 @@
15 15
       </div>
16 16
     </div>
17 17
     <div class="body-wrapper" style="height: 300px">
18
-      <div align="center" style="color: white;font-size: 23px;margin-bottom: 20px">停车难易指数变化趋势</div>
18
+      <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">停车难易指数变化趋势</div>
19 19
       <linechart
20 20
         :autoStop="false"
21 21
         :top="30"

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

@@ -1,13 +1,13 @@
1 1
 <template>
2 2
   <div>
3 3
     <div style="color: #d5d3d3" class="middle-map">
4
-      <div align="center" style="color: white;font-size: 23px;margin-bottom: 20px">实施停车饱和度</div>
4
+      <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">实施停车饱和度</div>
5 5
       <div style="height: 450px">
6 6
         <div class="bottom" id="map"></div>
7 7
       </div>
8 8
     </div>
9 9
     <div class="body-wrapper" style="height: 300px">
10
-      <div align="center" style="color: white;font-size: 23px;margin-bottom: 20px">停车建议</div>
10
+      <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">停车建议</div>
11 11
       <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
12 12
         <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
13 13
         </el-table-column>

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div>
4
-      <h2 style="color: white;margin-bottom: 20px;">服务监控列表</h2>
4
+      <h2 style="color: #3498db;margin-bottom: 20px;">服务监控列表</h2>
5 5
     </div>
6 6
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
7 7
       <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div>
4
-      <h2 style="color: white;margin-bottom: 20px;display: inline-block;width: 90%">服务发布列表</h2>
4
+      <h2 style="color: #3498db;margin-bottom: 20px;display: inline-block;width: 90%">服务发布列表</h2>
5 5
       <el-button type="primary" @click="handleAdd">配置服务</el-button>
6 6
     </div>
7 7
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div>
4
-      <h2 style="color: white;margin-bottom: 20px;display: inline-block;width: 90%">技术支持</h2>
4
+      <h2 style="color: #3498db;margin-bottom: 20px;display: inline-block;width: 90%">技术支持</h2>
5 5
       <el-button type="primary" @click="handleAdd">申请技术支持</el-button>
6 6
     </div>
7 7
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">

+ 9 - 9
static/mung-local-config.js

@@ -1,16 +1,16 @@
1 1
 window.mungConfig = {
2 2
   dev: {
3
-    BASE_API: "http://172.16.36.216:8801/westport"
3
+    BASE_API: "http://101.42.41.254:83/luohe2_ee/api"
4 4
   },
5 5
   build: {
6
-    BASE_API: "https://101.42.41.254:/westport"
6
+    BASE_API: "http://101.42.41.254:83/luohe2_ee/api"
7 7
   },
8
-  // casConfig: {
9
-  //   isLogin: false,
10
-  //   loginUrl: "https://10.252.0.229:38443/authui/login?service=",
11
-  //   hurl:
12
-  //     "https://10.252.0.229:38443/westport-portal/homepage.html#/redirectHomepage",
13
-  //   workBenchUrl: "https://10.252.0.229:38443/esf-web/"
14
-  // },
8
+// casConfig: {
9
+// isLogin: false,
10
+// loginUrl: "https://10.252.0.229:38443/authui/login?service=",
11
+// hurl:
12
+// "https://10.252.0.229:38443/westport-portal/homepage.html#/redirectHomepage",
13
+// workBenchUrl: "https://10.252.0.229:38443/esf-web/"
14
+// },
15 15
   applicationName: "资产目录"
16 16
 };