瀏覽代碼

bug fixed

duwendi 1 年之前
父節點
當前提交
f88efae660

+ 16 - 10
src/assets/css/element_ui.css

@@ -7,6 +7,7 @@
7 7
   margin-bottom: 0px;
8 8
 }
9 9
 
10
+
10 11
 .el-select-dropdown__item.hover,
11 12
 .el-select-dropdown__item:hover {
12 13
   background-color: #0E7DFD;
@@ -66,12 +67,12 @@
66 67
   cursor: pointer;
67 68
   padding-right: 35px;
68 69
   width: 100%;
69
-  height: 25px;
70
+  height: 30px;
70 71
   font-size: 13px;
71 72
   padding: 0px 6px;
72
-  background-color: #041841;
73
-  color: #92CCFA;
74
-  border: 1px solid #19446E;
73
+  /*background-color: #041841;*/
74
+  /*color: #92CCFA;*/
75
+  /*border: 1px solid #19446E;*/
75 76
 }
76 77
 
77 78
 .el-select .el-input__inner:focus {
@@ -91,17 +92,22 @@
91 92
   font-weight: 700;
92 93
 }
93 94
 
95
+.el-input__suffix .el-input__suffix-inner {
96
+  display: flex;
97
+  align-items: center;
98
+}
99
+
94 100
 .el-select:hover .el-input__inner {
95 101
   border-color: #19446E;
96 102
 }
97 103
 
98
-.el-select-dropdown__item {
99
-  color: #92CCFA;
100
-}
104
+/*.el-select-dropdown__item {*/
105
+/*  color: #92CCFA;*/
106
+/*}*/
101 107
 
102
-.el-icon-arrow-up:before {
103
-  color: #92CCFA;
104
-}
108
+/*.el-icon-arrow-up:before {*/
109
+/*  color: #92CCFA;*/
110
+/*}*/
105 111
 
106 112
 .el-popper[x-placement^=bottom] .popper__arrow {
107 113
   display: none;

+ 1 - 1
src/components/barChart.vue

@@ -196,7 +196,7 @@ export default {
196 196
 }
197 197
 </script>
198 198
 
199
-<style lang="less">
199
+<style lang="less"scoped>
200 200
   .chart {
201 201
     width: 100%;
202 202
     height: 100%;

+ 1 - 1
src/components/emap.vue

@@ -197,7 +197,7 @@ export default {
197 197
 };
198 198
 </script>
199 199
 
200
-<style lang="less">
200
+<style lang="less" scoped>
201 201
 .chart-box {
202 202
   position: relative;
203 203
 }

+ 1 - 1
src/components/lineChart.vue

@@ -208,7 +208,7 @@ export default {
208 208
 };
209 209
 </script>
210 210
 
211
-<style lang="less">
211
+<style lang="less" scoped>
212 212
 .chart {
213 213
   width: 100%;
214 214
   height: 100%;

+ 1 - 1
src/components/pieChart.vue

@@ -152,7 +152,7 @@ export default {
152 152
 };
153 153
 </script>
154 154
 
155
-<style lang="less">
155
+<style lang="less" scoped>
156 156
 .chart {
157 157
   width: 100%;
158 158
   height: 100%;

+ 1 - 1
src/components/radarChart.vue

@@ -85,7 +85,7 @@ export default {
85 85
 }
86 86
 </script>
87 87
 
88
-<style>
88
+<style lang="less" scoped>
89 89
 .chart {
90 90
   width: 100%;
91 91
   height: 100%;

+ 1 - 1
src/components/vtableNew.vue

@@ -150,7 +150,7 @@ export default {
150 150
 }
151 151
 </script>
152 152
 
153
-<style lang="less">
153
+<style lang="less" scoped>
154 154
   @keyframes tbodyauto {
155 155
     from {transform: translateY(0px);}
156 156
     to {transform: translateY(-100%);}

+ 0 - 13
src/pages/index/components/heat_map.vue

@@ -177,18 +177,5 @@ export default {
177 177
     height: 90%;
178 178
     width: 100%;
179 179
   }
180
-  /deep/.map-tooltip {
181
-    font-size: 18px;
182
-    padding: 10px 20px;
183
-    background: url("../../../../static/img/u231.png");
184
-    background-size: 100% 100%;
185
-    .map-tooltip-name {
186
-      color: #00e4ff;
187
-    }
188
-    .map-tooltip-value {
189
-      color: white;
190
-      margin-left: 20px;
191
-    }
192
-  }
193 180
 }
194 181
 </style>

+ 8 - 7
src/pages/index/components/hot_map.vue

@@ -22,7 +22,7 @@ export default {
22 22
           type: "continuous",
23 23
           left: "0%",
24 24
           bottom: "0%",
25
-          calculable: false,
25
+          calculable: true,
26 26
           textStyle: {
27 27
             color: "white",
28 28
           },
@@ -82,7 +82,7 @@ export default {
82 82
                 areaColor: "#4282de",
83 83
               },
84 84
               emphasis: {
85
-                areaColor: "#ff4800",
85
+                areaColor: "#002aff",
86 86
                 borderWidth: 0,
87 87
                 color: "green",
88 88
               },
@@ -98,11 +98,6 @@ export default {
98 98
       totalAll: '0',
99 99
     };
100 100
   },
101
-  watch: {
102
-    dqIndex: function (newV) {
103
-      this.queryDq(newV);
104
-    },
105
-  },
106 101
   methods: {
107 102
     setIntervalMap(chart) {
108 103
       this.timer = setInterval(() => {
@@ -139,9 +134,15 @@ export default {
139 134
         });
140 135
       }
141 136
     }
137
+    let mapMax = Math.max(...arr.map(item => item.value))
138
+    let mapMin = Math.min(...arr.map(item => item.value))
139
+    console.log(mapMin, '111')
140
+    console.log(mapMax, '222')
142 141
     let chart = echarts.init(document.getElementById("map"));
143 142
     echarts.registerMap("luohe", geoJson);
144 143
     this.option.series[0].data = arr;
144
+    this.option.visualMap.min = mapMin;
145
+    this.option.visualMap.max = mapMax;
145 146
     chart.setOption(this.option);
146 147
     this.dqIndex = -1;
147 148
     this.setIntervalMap(chart);

+ 167 - 0
src/pages/index/components/operation_log.vue

@@ -0,0 +1,167 @@
1
+<template>
2
+  <div class="body-wrapper">
3
+    <el-form class="form-wrapper" :inline="true" :model="formInline">
4
+      <el-form-item label="审批人">
5
+        <el-input v-model="formInline.interfaceName" placeholder="审批人"></el-input>
6
+      </el-form-item>
7
+      <el-form-item label="活动区域">
8
+        <el-select v-model="formInline.region" placeholder="活动区域" class="cur-select">
9
+          <el-option label="区域一" value="shanghai"></el-option>
10
+          <el-option label="区域二" value="beijing"></el-option>
11
+        </el-select>
12
+      </el-form-item>
13
+      <el-form-item>
14
+        <el-button type="primary" @click="onSubmit">查询</el-button>
15
+      </el-form-item>
16
+    </el-form>
17
+    <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
18
+      <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
19
+      </el-table-column>
20
+      <el-table-column
21
+        label="操作"
22
+        width="100">
23
+        <template slot-scope="scope">
24
+          <el-button v-if="scope.row && scope.row.applyType === '1'" @click="handleDetail(scope.row)" type="text" size="small">查看详情</el-button>
25
+        </template>
26
+      </el-table-column>
27
+    </el-table>
28
+    <div class="table-pagination">
29
+      <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
30
+                     :current-page.sync="pageNum" :page-size.sync="pageSize">
31
+      </el-pagination>
32
+    </div>
33
+    <el-dialog
34
+      title="详情"
35
+      :visible.sync="dialogVisible"
36
+      width="60%"
37
+      custom-class="audit-dialog">
38
+      <el-input type="textarea" disabled v-model="selRow.createTime"></el-input>
39
+    </el-dialog>
40
+  </div>
41
+</template>
42
+<script>
43
+import api from "@/api/audit.js";
44
+
45
+export default {
46
+  components: {},
47
+  data() {
48
+    return {
49
+      columns: [
50
+        {
51
+          label: '日期',
52
+          key: 'resourceName'
53
+        },
54
+        {
55
+          label: '操作',
56
+          key: 'resourceType'
57
+        },
58
+        {
59
+          label: '用户',
60
+          key: 'userName'
61
+        },
62
+        {
63
+          label: '详情',
64
+          key: 'applyTypeText'
65
+        },
66
+        {
67
+          label: 'IP地址',
68
+          key: 'applyTypeText'
69
+        }
70
+      ],
71
+      tableData: [],
72
+      total: 0,
73
+      pageSize: 10,
74
+      pageNum: 1,
75
+      radio: '2',
76
+      dialogVisible: false,
77
+      selRow: {},
78
+      formInline: {
79
+        interfaceName: '',
80
+        region: ''
81
+      }
82
+    }
83
+  },
84
+  mounted() {
85
+    this.getTableData()
86
+  },
87
+  watch: {
88
+  },
89
+  methods: {
90
+    handlePageChange() {
91
+      this.getTableData()
92
+    },
93
+    handleDetail(row) {
94
+      this.selRow = row
95
+      this.dialogVisible = true
96
+    },
97
+    getTableData() {
98
+      const {pageNum, pageSize, searchWords} = this
99
+      api.applyList({pageNum, pageSize, interfaceName: this.formInline.interfaceName}).then(res => {
100
+        this.tableData = res.data.records
101
+        this.total = res.data.total
102
+      })
103
+    },
104
+    onSubmit() {
105
+      console.log('submit!');
106
+    }
107
+  }
108
+}
109
+</script>
110
+<style  lang="scss" scoped>
111
+.form-wrapper {
112
+  margin-bottom: 20px;
113
+  /deep/ .el-input__inner {
114
+  background: #2d3744;
115
+  border: none;
116
+  border-radius: 0;
117
+  }
118
+}
119
+/deep/.el-select {
120
+  height: 40px;
121
+  .el-input__inner {
122
+    height: 40px;
123
+  }
124
+
125
+  .el-input__prefix, .el-input__suffix {
126
+    height: 40px;
127
+  }
128
+
129
+  /* 下面设置右侧按钮居中 */
130
+  .el-input__suffix {
131
+    top: 0px;
132
+    display: flex;
133
+    justify-content: center;
134
+    align-items: center;
135
+    flex-wrap: nowrap;
136
+    flex-direction: row;
137
+    align-content: flex-start;
138
+  }
139
+  /* 输入框加上上下边是 32px + 2px =34px */
140
+  .el-input__icon {
141
+    line-height: 0px;
142
+  }
143
+}
144
+.body-wrapper {
145
+  padding: 20px;
146
+  background: #0c0c0c;
147
+  .button-block{
148
+    text-align: right;
149
+    margin-bottom: 20px;
150
+  }
151
+  .table-pagination{
152
+    text-align: right;
153
+  }
154
+}
155
+.audit-dialog{
156
+  .mg-bt{
157
+    margin-bottom: 24px;
158
+  }
159
+  .label{
160
+    text-align: right;
161
+  }
162
+}
163
+/deep/ .el-textarea.is-disabled .el-textarea__inner {
164
+  background: #2a2a2a;
165
+  color: #fff;
166
+}
167
+</style>

+ 1 - 0
src/pages/index/layouts/indexLayout.vue

@@ -66,6 +66,7 @@ export default {
66 66
         {name: '运营停车场主题', url: '/parking_operate'},
67 67
         {name: '区域停车主题', url: '/parking_area'},
68 68
         {name: '设备运营主题', url: '/service_operations'},
69
+        {name: '操作日志', url: '/operation_log'},
69 70
       ]
70 71
     }
71 72
   },

+ 5 - 0
src/router/index.js

@@ -169,6 +169,11 @@ export default new Router({
169 169
           path: "/service_operations",
170 170
           component: () => import("../pages/index/components/service_operations.vue")
171 171
         },
172
+        {
173
+          name: "operation_log",
174
+          path: "/operation_log",
175
+          component: () => import("../pages/index/components/operation_log.vue")
176
+        },
172 177
       ]
173 178
     }
174 179
   ]