Bläddra i källkod

页面修改

修复了select选项,重写了一张图表
烬玊 1 år sedan
förälder
incheckning
b220cab9d0

+ 67 - 27
src/pages/index/components/customer_complaint.vue

@@ -4,35 +4,36 @@
4 4
       <h5>客户投诉监管</h5>
5 5
     </div>
6 6
     <br>
7
-    <form id="form1" size="medium">
8
-      <el-select v-model="value" placeholder="投诉类型" class="sel">
9
-        <el-option
10
-          v-for="item in options"
11
-          :key="item.value"
12
-          :label="item.label"
13
-          :value="item.value">
14
-        </el-option>
15
-      </el-select>
7
+    <el-form class="form-wrapper" :inline="true" :model="formInline">
8
+      <el-form-item label="投诉类型">
9
+        <el-select v-model="formInline.region0" placeholder="投诉类型" class="cur-select">
10
+          <el-option label="经营服务类停车问题" value="经营服务类停车问题"></el-option>
11
+          <el-option label="非法经营停车问题" value="非法经营停车问题"></el-option>
12
+          <el-option label="不提供税票" value="不提供税票"></el-option>
16 13
 
17
-      <el-select v-model="value" placeholder="路内停车场" class="sel">
18
-        <el-option
19
-          v-for="item in options2"
20
-          :key="item.value"
21
-          :label="item.label"
22
-          :value="item.value">
23
-        </el-option>
24
-      </el-select>
25
-
26
-      <el-select v-model="value" placeholder="路外停车场" class="sel">
27
-        <el-option
28
-          v-for="item in options3"
29
-          :key="item.value"
30
-          :label="item.label"
31
-          :value="item.value">
32
-        </el-option>
33
-      </el-select>
14
+        </el-select>
15
+      </el-form-item>
16
+      <el-form-item label="路内停车场:">
17
+        <el-select v-model="formInline.region2" placeholder="路内停车场" class="cur-select">
18
+          <el-option label="南街村景区-停车场" value="南街村景区-停车场"></el-option>
19
+          <el-option label="漯河市中医院-地上停车场" value="漯河市中医院-地上停车场"></el-option>
20
+        </el-select>
21
+      </el-form-item>
22
+      <el-form-item label="路外停车场:">
23
+        <el-select v-model="formInline.region3" placeholder="路外停车场" class="cur-select">
24
+          <el-option label="市图书馆停车场" value="市图书馆停车场"></el-option>
25
+          <el-option label="中山公园停车场" value="中山公园停车场"></el-option>
26
+          <el-option label="市中心医院停车场" value="市中心医院停车场"></el-option>
27
+          <el-option label="妇幼保健院停车场" value="妇幼保健院停车场"></el-option>
28
+        </el-select>
29
+      </el-form-item>
34 30
       <el-button class="btn_save" type="primary" @click="submitIntegrationConfig">客诉登记</el-button>
35
-    </form>
31
+    </el-form>
32
+    <br>
33
+    <br>
34
+    <br>
35
+    <br>
36
+
36 37
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
37 38
       <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
38 39
       </el-table-column>
@@ -42,6 +43,7 @@
42 43
                      :current-page.sync="pageNum" :page-size.sync="pageSize">
43 44
       </el-pagination>
44 45
     </div>
46
+
45 47
     <div class="charts_all">
46 48
       <div class="charts">
47 49
         <piechart
@@ -70,6 +72,12 @@ export default {
70 72
   },
71 73
   data() {
72 74
     return {
75
+      formInline: {
76
+        region0: '',
77
+        region1: '',
78
+        region2: '',
79
+        region3: '',
80
+      },
73 81
       options: [{
74 82
         value: '经营服务类停车问题',
75 83
         label: '经营服务类停车问题'
@@ -200,6 +208,38 @@ export default {
200 208
 }
201 209
 </script>
202 210
 <style  lang="scss" scoped>
211
+.form-wrapper {
212
+  margin-bottom: 20px;
213
+}
214
+/deep/ .el-input__inner {
215
+  background: #2d3744;
216
+  border: none;
217
+  border-radius: 0;
218
+}
219
+/deep/ .el-select {
220
+  height: 40px;
221
+  .el-input__inner {
222
+    height: 40px;
223
+  }
224
+  .el-input__prefix, .el-input__suffix {
225
+    height: 40px;
226
+  }
227
+
228
+  /* 下面设置右侧按钮居中 */
229
+  .el-input__suffix {
230
+    top: 0px;
231
+    display: flex;
232
+    justify-content: center;
233
+    align-items: center;
234
+    flex-wrap: nowrap;
235
+    flex-direction: row;
236
+    align-content: flex-start;
237
+  }
238
+  /* 输入框加上上下边是 32px + 2px =34px */
239
+  .el-input__icon {
240
+    line-height: 0px;
241
+  }
242
+}
203 243
 .body-wrapper {
204 244
   padding: 20px;
205 245
   background: #0c0c0c;

+ 68 - 14
src/pages/index/components/park_monitor.vue

@@ -22,25 +22,31 @@
22 22
       <div style="width: 100%;height: 50%">
23 23
       <h3 style="color: white;float: left">停车流量预警</h3>
24 24
       <br>
25
-      <vtable
26
-        :showIdx="true"
27
-        class="tax-table"
28
-        :columns="riskColumns"
29
-        :datas="riskData"
30
-        :isAutoScroll="true"
31
-      />
25
+        <br>
26
+        <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
27
+          <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
28
+          </el-table-column>
29
+        </el-table>
30
+        <div class="table-pagination">
31
+          <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
32
+                         :current-page.sync="pageNum" :page-size.sync="pageSize">
33
+          </el-pagination>
34
+        </div>
32 35
       </div>
33 36
       <br>
34 37
       <div style="width: 100%;height: 50%">
35 38
       <h3 style="color: white;float: left">泊位停车实况</h3>
36 39
       <br>
37
-      <vtable
38
-        :showIdx="true"
39
-        class="tax-table"
40
-        :columns="riskColumns2"
41
-        :datas="riskData2"
42
-        :isAutoScroll="true"
43
-      />
40
+        <br>
41
+        <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
42
+          <el-table-column v-for="(item, index) in columns2" :key="index" :label="item.label" :prop="item.key">
43
+          </el-table-column>
44
+        </el-table>
45
+        <div class="table-pagination">
46
+          <el-pagination :background="false" layout="total, prev, pager, next" :total="total2" @current-change="handlePageChange"
47
+                         :current-page.sync="pageNum2" :page-size.sync="pageSize2">
48
+          </el-pagination>
49
+        </div>
44 50
       </div>
45 51
     </div>
46 52
     </div>
@@ -72,6 +78,51 @@ export default {
72 78
         { name: "停车场", rowIdx: "tcc", origin: true },
73 79
         { name: "预警时间", rowIdx: "yjsj" },
74 80
       ],
81
+      columns: [
82
+        {
83
+          label: '预警信息',
84
+          key: 'resourceName'
85
+        },
86
+        {
87
+          label: '停车场',
88
+          key: 'resourceType'
89
+        },
90
+        {
91
+          label: '预警时间',
92
+          key: 'userName'
93
+        }
94
+      ],
95
+      columns2: [
96
+        {
97
+          label: '停车场',
98
+          key: 'tcc'
99
+        },
100
+        {
101
+          label: '泊位号',
102
+          key: 'bwh'
103
+        },
104
+        {
105
+          label: '泊位状态',
106
+          key: 'bwzt'
107
+        },
108
+        {
109
+          label: '是否潮汐车位',
110
+          key: 'sfcxcw'
111
+        },
112
+        {
113
+          label: '是否充电泊位',
114
+          key: 'sfcdcw'
115
+        },
116
+        {
117
+          label: '是否共享泊位',
118
+          key: 'sfgxcw'
119
+        }
120
+        ,
121
+        {
122
+          label: '是否异常',
123
+          key: 'sfyc'
124
+        }
125
+      ],
75 126
       riskData: [{
76 127
         yjxx: '饱和度大于80%',
77 128
         tcc: "建业智慧港停车场",
@@ -117,6 +168,9 @@ export default {
117 168
       total: 0,
118 169
       pageSize: 10,
119 170
       pageNum: 1,
171
+      total2: 0,
172
+      pageSize2: 10,
173
+      pageNum2: 1,
120 174
       radio: '2',
121 175
       dialogVisible: false,
122 176
       selRow: {},