13219261128 před 3 roky
rodič
revize
a976faa362

+ 4 - 3
src/App.vue

@@ -28,9 +28,10 @@ export default {
28 28
 @import '~@/components/d2-icon/font-awesome-4.7.0/css/font-awesome.min.css';
29 29
 
30 30
               .d2-container-full {
31
-                background-image: url("./assets/images/bj.png");
32
-                background-repeat: no-repeat;
33
-                background-size: 100% 100%;
31
+                background-color: #f6f6f6;
32
+                // background-image: url("./assets/images/bj.png");
33
+                // background-repeat: no-repeat;
34
+                // background-size: 100% 100%;
34 35
                
35 36
               }
36 37
 </style>

+ 1 - 1
src/api/modules/shouye.api.js

@@ -58,7 +58,7 @@ export default ({
58 58
     //报警统计
59 59
     homeAlarm( orgCode,time ) {
60 60
       return request({
61
-        url: `/homePage/getByTimeList/${orgCode}?optionTime=${time}`,
61
+        url: `/homePage/getByTimeList/${orgCode}/${time}`,
62 62
         method: 'get',
63 63
       })
64 64
     },

binární
src/assets/images/nav-bg.jpg


+ 13 - 3
src/assets/style/public-class.scss

@@ -90,6 +90,7 @@ $sizes: (0, 5, 10, 15, 20);
90 90
 // }
91 91
 // //头部导航一级菜单的样式
92 92
 .theme-d2 .d2-theme-header .el-menu .el-menu-item{
93
+  height: 50px;
93 94
   // border-right:linear-gradient(#193a6d, #487B98 20%,#193a6d 80%) !important;
94 95
   border-right:linear-gradient(red yellow) !important;
95 96
 }
@@ -198,10 +199,13 @@ $sizes: (0, 5, 10, 15, 20);
198 199
 }
199 200
 //树形节点鼠标移上去的颜色
200 201
 .el-tree-node__content:hover {
201
-  background-color: #91a8bc !important;
202
+  background-color: rgba(0, 135, 117, 0.3) !important;
203
+}
204
+.left .el-tree-node__content{
205
+  height: 46px !important;
202 206
 }
203 207
 .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{
204
-  // background-color: #0064b9 !important;
208
+  background-color: rgba(0, 135, 117, 0.1) !important;
205 209
   // border-radius: 20px;
206 210
 }
207 211
 //table border
@@ -294,6 +298,7 @@ $sizes: (0, 5, 10, 15, 20);
294 298
 
295 299
 .el-button--text {
296 300
   // color: #fff !important;
301
+  color: #008775 !important;
297 302
 }
298 303
 // 编辑按钮
299 304
 .main #formLabel .editBtn {
@@ -390,6 +395,11 @@ button.el-button.el-button--delebtn.el-button--mini{
390 395
     }
391 396
   // display: none !important;
392 397
 }
393
-
398
+.el-pager li.active{
399
+  color: #008775 !important;
400
+}
401
+.el-pager li:hover {
402
+  color: #008775 !important;
403
+}
394 404
 
395 405
 

+ 5 - 2
src/assets/style/theme/theme-base.scss

@@ -27,7 +27,7 @@
27 27
   .d2-layout-header-aside-content {
28 28
     @extend %full;
29 29
     .d2-theme-header {
30
-      height: 60px;
30
+      height: 90px;
31 31
       .d2-theme-header-menu {
32 32
         overflow: hidden;
33 33
         margin-left:20px;
@@ -42,6 +42,7 @@
42 42
         }
43 43
         .d2-theme-header-menu__content {
44 44
           overflow: hidden;
45
+          height: 50px;
45 46
           .d2-theme-header-menu__scroll {
46 47
             white-space: nowrap;
47 48
             position: relative;
@@ -63,11 +64,13 @@
63 64
         }
64 65
         .d2-theme-header-menu__prev {
65 66
           left: 0;
67
+          top: 15px;
66 68
           border-top-left-radius: 2px;
67 69
           border-bottom-left-radius: 2px;
68 70
         }
69 71
         .d2-theme-header-menu__next {
70 72
           right: 0;
73
+          top: 15px;
71 74
           border-top-right-radius: 2px;
72 75
           border-bottom-right-radius: 2px;
73 76
         }
@@ -169,7 +172,7 @@
169 172
       // 顶栏右侧的按钮
170 173
       .d2-header-right {
171 174
         float: right;
172
-        height: 60px;
175
+        height: 90px;
173 176
         display: flex;
174 177
         align-items: center;
175 178
         .btn-text {

+ 72 - 4
src/layout/header-aside/layout.vue

@@ -174,7 +174,14 @@ export default {
174 174
 @import "~@/assets/style/theme/register.scss";
175 175
 //头部导航背景色
176 176
 .d2-theme-header {
177
-  background-image: url(../../assets/images/nav-bg.png);
177
+  background-image: url(../../assets/images/nav-bg.jpg);
178
+}
179
+.theme-d2 .d2-theme-header .el-menu .el-submenu .el-submenu__title{
180
+  height: 50px;
181
+  line-height: 50px;
182
+}
183
+.d2-layout-header-aside-group .d2-layout-header-aside-content .d2-theme-header .el-menu .el-menu-item{
184
+  line-height: 50px;
178 185
 }
179 186
 //头部每个菜单宽度
180 187
 .theme-d2 .d2-theme-header .el-menu .el-menu-item{
@@ -188,6 +195,14 @@ export default {
188 195
   // background-image: url(../../assets/images/selected.png);
189 196
   // background-position: 50% 86%;
190 197
 }
198
+.theme-d2 .d2-theme-header .el-menu .el-menu-item.is-active:first-child{
199
+  border-top-left-radius: 6px;
200
+  border-bottom-left-radius: 6px;
201
+}
202
+.theme-d2 .d2-theme-header .el-menu .el-menu-item.is-active:last-child{
203
+  border-top-right-radius: 6px;
204
+  border-bottom-right-radius: 6px;
205
+}
191 206
 //头部导航二级菜单选中后的样式
192 207
 .theme-d2 .d2-theme-header .el-menu .el-submenu.is-active .el-submenu__title {
193 208
   color: #fff !important;
@@ -203,20 +218,64 @@ export default {
203 218
   display: flex;
204 219
   align-items: center;
205 220
   padding-left: 10px;
221
+  // margin-right: 170px;
206 222
 }
207 223
 
208 224
 // 设置导航右边框
209 225
 .theme-d2 .d2-theme-header .el-menu .el-submenu {
210
-  border-right: 1px solid #6fa4bc;
226
+  // border-right: 1px solid rgba(255, 255, 255, 0.5);
211 227
   //  border-image: linear-gradient(red,yellow) 30 30;
228
+  width: 170px;
229
+  text-align: center;
230
+}
231
+.theme-d2 .d2-theme-header .el-menu .el-submenu:last-child {
232
+  border: none ;
233
+  //  border-image: linear-gradient(red,yellow) 30 30;
234
+  .el-submenu__title{
235
+      border-top-right-radius: 6px;
236
+  border-bottom-right-radius: 6px;
237
+  }
212 238
 }
213 239
 .theme-d2 .d2-theme-header .el-menu .el-menu-item {
214
-  border-right: 1px solid #6fa4bc;
240
+  // border-right: 1px solid rgba(255, 255, 255, 0.5);
241
+  width: 170px;
242
+  text-align: center;
215 243
   //  border-image: linear-gradient(red,yellow) 30 30;
216 244
 }
217 245
 .theme-d2 .d2-theme-header .el-menu {
218 246
   background-color: none;
219 247
 }
248
+
249
+.theme-d2 .d2-theme-header .el-menu .el-menu-item::after{
250
+  content: "";
251
+  display: inline-block;
252
+  position: absolute;
253
+  right: 0;
254
+  top: 8px;
255
+  width: 1px;
256
+  height: 34px;
257
+  background: rgba(255, 255, 255, 0.61);
258
+  border-radius: 50%;
259
+}
260
+.theme-d2 .d2-theme-header .el-menu .el-submenu .el-submenu__title::after{
261
+  content: "";
262
+  display: inline-block;
263
+  position: absolute;
264
+  right: 0;
265
+  top: 8px;
266
+  width: 1px;
267
+  height: 34px;
268
+  background: rgba(255, 255, 255, 0.61);
269
+  border-radius: 50%;
270
+}
271
+.theme-d2 .d2-theme-header .el-menu li:last-child .el-submenu__title::after{
272
+  content: "";
273
+  display: none;
274
+}
275
+.theme-d2 .d2-theme-header .el-menu li:last-child::after{
276
+  content: "";
277
+  display: none;
278
+}
220 279
 .el-menu--horizontal .el-menu .el-submenu__title:hover {
221 280
   // color: #008775 !important;
222 281
 }
@@ -227,8 +286,17 @@ export default {
227 286
 .el-menu--horizontal .el-menu .el-menu-item.is-active{
228 287
   color: #008775 !important;
229 288
 }
289
+.el-menu--horizontal .el-menu .el-menu-item{
290
+  font-weight: bold;
291
+  width: 170px;
292
+}
230 293
 .el-menu--horizontal .el-menu .el-menu-item:hover{
231 294
   color: #008775 !important;
232
-  background: #F4F9F9 !important;
295
+  background: rgba(244, 249, 249, 1) !important;
296
+}
297
+.d2-theme-header-menu__scroll{
298
+  background-image: url('./menuBack.png');
299
+  background-repeat: no-repeat;
300
+  background-size: 100% 100%;
233 301
 }
234 302
 </style>

binární
src/layout/header-aside/menuBack.png


+ 9 - 3
src/views/demo/alarmRecord/index.vue

@@ -213,7 +213,7 @@
213 213
                   align="center"
214 214
                 >
215 215
                     <template slot-scope="scope">
216
-                      {{scope.row.handleState==0?'处理':scope.row.handleState==1?'已处理':scope.row.handleState}}
216
+                      {{scope.row.handleState==0?'处理':scope.row.handleState==1?'已处理':scope.row.handleState}}
217 217
                     </template>
218 218
                 </el-table-column>
219 219
                 <el-table-column align="center" label="操作" width="100">
@@ -221,11 +221,12 @@
221 221
                     <el-button
222 222
                     v-if="scope.row.handleState=='1'"
223 223
                       @click="handleCheck(scope.row)"
224
-                      type="text"
224
+                      type="warning"
225
+                      plain
225 226
                       size="mini"
226 227
                       >查看</el-button
227 228
                     >
228
-                    <el-button v-if="scope.row.handleState=='0'" type="text" size="mini" @click="chuli(scope.row)"
229
+                    <el-button v-if="scope.row.handleState=='0'" type="primary" plain size="mini" @click="chuli(scope.row)"
229 230
                       >处理</el-button
230 231
                     >
231 232
                   </template>
@@ -535,6 +536,7 @@
535 536
 </template>
536 537
 <script>
537 538
 import api from "@/api";
539
+import { connected } from "process";
538 540
 // 1  异常点   2  断开
539 541
 export default {
540 542
   name: "alarmRecord",
@@ -1161,11 +1163,15 @@ export default {
1161 1163
     //获取列表数据
1162 1164
     getList() {
1163 1165
       var condition = this.formInline;
1166
+      condition.orgCode=localStorage.getItem("orgCode")
1164 1167
       condition = JSON.stringify(condition);
1165 1168
       var data = {
1166 1169
         pageIndex: this.pagination.curPage,
1167 1170
         pageSize: this.pagination.pageSize,
1168 1171
         condition: condition,
1172
+        // orgCode:localStorage.getItem("orgCode"),
1173
+        // orgName:localStorage.getItem("orgName")
1174
+
1169 1175
       };
1170 1176
       api
1171 1177
         .alarmRecordList(data)

+ 4 - 1
src/views/demo/equipmentManage/compontents/addDialog.vue

@@ -199,6 +199,8 @@ export default {
199 199
         if (valid) {
200 200
           if(this.dialogTitle=='新建设备'){
201 201
             this.addForm.id=""
202
+            this.addForm.orgCode=localStorage.getItem("orgCode")
203
+            this.addForm.orgName=localStorage.getItem("orgName")
202 204
             api.equipmentSu(this.addForm).then(res=>{
203 205
               if (res.code == 200) {
204 206
                 this.$message.success("新建成功");
@@ -209,11 +211,12 @@ export default {
209 211
               }
210 212
             })
211 213
           }else{
214
+            
212 215
             api.equipmentSu(this.addForm).then(res=>{
213 216
               if (res.code == 200) {
214 217
                 this.$message.success("编辑成功");
215 218
                 this.dialogFormVisible=false;
216
-                this.$parent.$parent.$parent.getList()
219
+                this.$parent.$parent.$parent.getBasic()
217 220
               }else{
218 221
                 this.$message.error(res.msg);
219 222
               }

+ 2 - 0
src/views/demo/equipmentManage/compontents/addDialogC.vue

@@ -66,6 +66,8 @@ export default {
66 66
       this.$refs[formName].validate((valid) => {
67 67
         if (valid) {
68 68
           if(this.dialogTitle=='新建设备标签'){
69
+            this.addForm.orgCode=localStorage.getItem("orgCode")
70
+            this.addForm.orgName=localStorage.getItem("orgName")
69 71
             api.equipmentTagSu(this.addForm).then(res=>{
70 72
               if (res.code == 200) {
71 73
                 this.$message.success("新建成功");

+ 3 - 3
src/views/demo/equipmentManage/equipment/index.vue

@@ -173,7 +173,7 @@
173 173
                 >
174 174
                 </el-table-column>
175 175
 
176
-                <el-table-column label="操作" width="240" align="center">
176
+                <el-table-column label="操作" width="160" align="center">
177 177
                   <template slot-scope="scope">
178 178
                     <el-button
179 179
                       type="primary"
@@ -182,9 +182,9 @@
182 182
                       @click="goDetail(scope.row)"
183 183
                       >查看</el-button
184 184
                     >
185
-                    <el-button type="warning" plain size="mini" @click="edit(scope.row)"
185
+                    <!-- <el-button type="warning" plain size="mini" @click="edit(scope.row)"
186 186
                       >编辑</el-button
187
-                    >
187
+                    > -->
188 188
                     <el-button type="danger" plain size="mini" @click="del(scope.row)"
189 189
                       >删除</el-button
190 190
                     >

+ 20 - 20
src/views/demo/equipmentManage/equipmentInfo/index.vue

@@ -9,7 +9,7 @@
9 9
             <div class="nameTitle">
10 10
               <i @click="goBack" class="el-icon-back"></i>
11 11
               <span class="name">
12
-                产品名称:{{ info.proName }}</span
12
+                设备名称:{{ info.eqName }}</span
13 13
               >
14 14
               <!-- <span style="font-size:14px;margin-left:40px">设备数:<span style="color:#008775">30</span>
15 15
               </span> -->
@@ -54,7 +54,7 @@
54 54
                 </div>
55 55
                 <div class="infoTitle">
56 56
                   <h5>定时任务</h5>
57
-                  <el-button type="primary" size="mini">修改定时任务</el-button>
57
+                  <el-button type="primary" size="mini" @click="$router.push({ path: '/timingTask' })">修改定时任务</el-button>
58 58
                 </div>
59 59
                 <div>任务一:</div>
60 60
                 <div>任务二:</div>
@@ -132,7 +132,7 @@
132 132
                   >
133 133
                   </el-table-column>
134 134
                   <el-table-column
135
-                    prop="operName"
135
+                    prop="houseCode"
136 136
                     label="所属仓房编码"
137 137
                     align="center"
138 138
                   >
@@ -480,37 +480,37 @@ export default {
480 480
         {
481 481
           name: "产品名称",
482 482
           val: [this.info.proName],
483
-          name1: "产品分类",
484
-          val1: [this.info.proCategory],
483
+          // name: "产品分类",
484
+          // val: [this.info.proName],
485
+          name1: "所属组织机构",
486
+          val1: [this.info.orgName],
485 487
         },
486 488
         {
487
-          name: "所属组织机构",
488
-          val: [this.info.orgName],
489
-          name1: "设备状态",
490
-          val1: [this.info.eqStatus],
489
+          name: "设备状态",
490
+          val: [this.info.eqStatus],
491
+          name1: "最后上线时间",
492
+          val1: [this.info.lastOnlineTime],
491 493
         },
492 494
         {
493
-          name: "最后上线时间",
494
-          val: [this.info.lastOnlineTime],
495
-          name1: "设备标签",
496
-          val1: [this.info.labelName],
497
-        },
498
-        {
499
-          name: "最后上线时间",
500
-          val: [this.info.lastOnlineTime],
495
+          name: "设备标签",
496
+          val: [this.info.labelName],
501 497
           name1: "创建时间",
502 498
           val1: [this.info.registerTime],
503 499
         },
504 500
         {
505
-          name: "描述",
506
-          val: [this.info.eqRemark],
507
-        },
501
+          name: "所属仓房编码",
502
+          val: [this.info.houseCode],
503
+          name1: "描述",
504
+          val1: [this.info.eqRemark],
505
+        }
508 506
       ]
509 507
           }
510 508
         })
511 509
     },
512 510
     // 查看检测信息
513 511
     checkDetail(row) {
512
+      console.log(12);
513
+      this.$set(this,'checkDialog',true)
514 514
       this.checkDialog = true;
515 515
     },
516 516
     //检测开始

+ 7 - 6
src/views/demo/parameManagement/alarmParame/index.vue

@@ -82,23 +82,24 @@
82 82
                   align="center"
83 83
                 >
84 84
                 </el-table-column>
85
-                <el-table-column label="操作" width="180" align="center">
85
+                <el-table-column label="操作" width="280" align="center">
86 86
                   <template slot-scope="scope">
87 87
                     <el-button
88
-                      type="text"
88
+                      plain
89 89
                       size="mini"
90 90
                       @click="goDetail(scope.row)"
91 91
                       >查看</el-button
92 92
                     >
93 93
                     <el-button
94
-                      type="text"
94
+                      type="warning"
95 95
                       size="mini"
96
+                      plain
96 97
                       @click="goEdit(scope.row)"
97 98
                       >编辑</el-button
98 99
                     >
99
-                    <el-button type="text" v-if="scope.row.offOrOn==0" size="mini" @click="changestate(scope.row,1)">开启</el-button>
100
-                    <el-button type="text" v-if="scope.row.offOrOn==1" size="mini" @click="changestate(scope.row,0)">关闭</el-button>
101
-                    <el-button type="text" size="mini" @click="del(scope.row)"
100
+                    <el-button type="primary" plain v-if="scope.row.offOrOn==0" size="mini" @click="changestate(scope.row,1)">开启</el-button>
101
+                    <el-button plain v-if="scope.row.offOrOn==1" size="mini" @click="changestate(scope.row,0)">关闭</el-button>
102
+                    <el-button type="danger" plain size="mini" @click="del(scope.row)"
102 103
                       >删除</el-button
103 104
                     >
104 105
                     <!-- <el-button @click="delecheck( scope.$index, scope.row)" type="detailbtn" class="fa fa-info-circle" size="mini">查看</el-button> -->

+ 3 - 3
src/views/demo/parameManagement/dataDictionary/index.vue

@@ -107,12 +107,12 @@
107 107
                 <template slot-scope="scope">
108 108
                   <el-button
109 109
                     @click="addChildren(scope.row)"
110
-                    type="text"
110
+                    type="primary"
111
+                    plain
111 112
                     size="small"
112
-                    icon="el-icon-circle-check"
113 113
                     >添加子项</el-button
114 114
                   >
115
-                  <el-button type="text" size="small" icon="el-icon-edit"
115
+                  <el-button type="warning" plain size="small" 
116 116
                      @click="editChildren(scope.row,2)">修改</el-button
117 117
                   >
118 118
                 </template>

+ 6 - 4
src/views/demo/parameManagement/timingTask/index.vue

@@ -84,21 +84,23 @@
84 84
                     {{scope.row.onOrOff==0?'否':scope.row.onOrOff==1?'是':scope.row.onOrOff}}
85 85
                   </template>
86 86
                 </el-table-column>
87
-                <el-table-column label="操作" width="180" align="center">
87
+                <el-table-column label="操作" width="220" align="center">
88 88
                   <template slot-scope="scope">
89 89
                     <el-button
90
-                      type="text"
90
+                      type="primary"
91
+                      plain
91 92
                       size="mini"
92 93
                       @click="goDetail(scope.row)"
93 94
                       >查看</el-button
94 95
                     >
95 96
                     <el-button
96
-                      type="text"
97
+                      type="warning"
97 98
                       size="mini"
99
+                      plain
98 100
                       @click="goEdit(scope.row)"
99 101
                       >编辑</el-button
100 102
                     >
101
-                    <el-button type="text" size="mini" @click="del(scope.row)"
103
+                    <el-button type="danger" plain size="mini" @click="del(scope.row)"
102 104
                       >删除</el-button
103 105
                     >
104 106
                     <!-- <el-button @click="delecheck( scope.$index, scope.row)" type="detailbtn" class="fa fa-info-circle" size="mini">查看</el-button> -->

+ 2 - 0
src/views/demo/productManage/compontents/addDialog.vue

@@ -185,6 +185,8 @@ export default {
185 185
 
186 186
           if (this.dialogTitle == "新建产品") {
187 187
             params.id = "";
188
+            params.orgCode=localStorage.getItem("orgCode")
189
+            params.orgName=localStorage.getItem("orgName")
188 190
             api.productSave(params).then((res) => {
189 191
               if (res.code == 200) {
190 192
                 this.$message.success("新建成功");

+ 2 - 2
src/views/demo/productManage/productInfo/index.vue

@@ -405,12 +405,12 @@ export default {
405 405
     },
406 406
     // 每页条数改变
407 407
     handleSizeChange1(val) {
408
-      this.pagination.pageSize = val;
408
+      this.pagination1.pageSize = val;
409 409
       this.getList();
410 410
     },
411 411
     // 当前页改变
412 412
     handleCurrentChange1(val) {
413
-      this.pagination.curPage = val;
413
+      this.pagination1.curPage = val;
414 414
       this.getList();
415 415
     },
416 416
   },

+ 2 - 2
src/views/demo/system/organization/index.vue

@@ -69,8 +69,8 @@
69 69
                 </el-table-column>
70 70
                 <el-table-column label="操作" width='180' align="center">
71 71
                   <template slot-scope="scope">
72
-                    <el-button @click="handleCheck(1, scope.$index, scope.row)"  class="fa fa-edit" size="mini">编辑</el-button>
73
-                    <el-button @click="delecheck( scope.$index, scope.row)"  class="fa fa-remove" size="mini">删除</el-button>
72
+                    <el-button @click="handleCheck(1, scope.$index, scope.row)" type="warning" plain size="mini">编辑</el-button>
73
+                    <el-button @click="delecheck( scope.$index, scope.row)"  type="danger" plain size="mini">删除</el-button>
74 74
                     <!-- <el-button @click="delecheck( scope.$index, scope.row)" type="detailbtn" class="fa fa-info-circle" size="mini">查看</el-button> -->
75 75
                   </template>
76 76
                 </el-table-column>

+ 3 - 3
src/views/demo/system/roleManagement/index.vue

@@ -57,9 +57,9 @@
57 57
                 </el-table-column>
58 58
                 <el-table-column fixed="right" label="操作" width="300" align="center">
59 59
                   <template slot-scope="scope">
60
-                    <el-button @click="handleEdit(1, scope.$index, scope.row)" class="fa fa-edit" size="mini">编辑</el-button>
61
-                    <el-button @click="delecheck( scope.$index, scope.row)" class="fa fa-remove" size="mini">删除</el-button>
62
-                    <el-button @click="handleCheck(scope.$index, scope.row)" class="fa fa-info-circle" size="mini">查看</el-button>
60
+                    <el-button @click="handleEdit(1, scope.$index, scope.row)" type="warning" plain size="mini">编辑</el-button>
61
+                    <el-button @click="delecheck( scope.$index, scope.row)" type="danger" plain size="mini">删除</el-button>
62
+                    <el-button @click="handleCheck(scope.$index, scope.row)" type="primary" plain size="mini">查看</el-button>
63 63
                     <!-- <el-switch v-model="value" on-text='启用' off-text='禁用' active-value='启用' inactive-value='禁用' active-color="#13ce66" inactive-color="#ff4949"> -->
64 64
                     <!-- </el-switch> -->
65 65
                   </template>

+ 2 - 2
src/views/demo/system/userManagement/index.vue

@@ -88,8 +88,8 @@
88 88
                 </el-table-column> -->
89 89
                 <el-table-column fixed="right" label="操作" width="300" align="center">
90 90
                   <template slot-scope="scope">
91
-                    <el-button @click="edit(scope.row,2)" class="fa fa-edit" size="mini">编辑</el-button>
92
-                    <el-button @click="deleted(scope.row)" class="fa fa-remove" size="mini">删除</el-button>
91
+                    <el-button @click="edit(scope.row,2)" type="warning" plain size="mini">编辑</el-button>
92
+                    <el-button @click="deleted(scope.row)" type="danger" plain size="mini">删除</el-button>
93 93
 
94 94
                     <!-- <el-switch
95 95
                     id="switchBtn"

+ 47 - 14
src/views/system/index/page.vue

@@ -19,19 +19,23 @@
19 19
             <img src="@/assets/images/bjtj.png" alt="">
20 20
             报警统计</div>
21 21
           <div class="echartsBox">
22
-            <div class="topDate">
22
+            <!-- <div class="topDate">
23 23
               <el-date-picker
24 24
                 size="mini"
25 25
                 v-model="date"
26
-                type="date"
27
-                placeholder="选择日期"
26
+                type="daterange"
27
+                value-format="yyyy-MM-dd"
28
+                format="yyyy-MM-dd"
29
+                range-separator="至"
30
+                start-placeholder="开始日期"
31
+                end-placeholder="结束日期"
28 32
               >
29 33
               </el-date-picker>
30
-            </div>
34
+            </div> -->
31 35
 
32 36
             <el-tabs v-model="activeName" @tab-click="handleClick">
33
-              <el-tab-pane label="1小时" name="1"></el-tab-pane>
34
-              <el-tab-pane label="1天" name="2"></el-tab-pane>
37
+              <!-- <el-tab-pane label="1小时" name="1"></el-tab-pane>
38
+              <el-tab-pane label="1天" name="2"></el-tab-pane> -->
35 39
               <el-tab-pane label="7天" name="3"></el-tab-pane>
36 40
               <el-tab-pane label="30天" name="4"></el-tab-pane>
37 41
             </el-tabs>
@@ -54,6 +58,7 @@
54 58
             <el-table
55 59
             height="500"
56 60
               :data="tableData"
61
+              :header-cell-style="{ background: '#E9F4F3', color: '#445D5A' }"
57 62
               style="width: 100%">
58 63
               <el-table-column
59 64
                 prop="alarmTypeName"
@@ -69,6 +74,7 @@
69 74
               </el-table-column>
70 75
               <el-table-column
71 76
                 prop="alarmTime"
77
+                width="160px"
72 78
                 align="center"
73 79
                 label="时间">
74 80
               </el-table-column>
@@ -124,7 +130,7 @@ export default {
124 130
       infoForm:{},
125 131
       dialogVisible:false,
126 132
       tableData:[{}],
127
-      date: "",
133
+      date: [],
128 134
       topBox: [
129 135
         {
130 136
           name: "产品数",
@@ -205,23 +211,36 @@ export default {
205 211
           num1: "1分钟前/实时",
206 212
         },
207 213
       ],
208
-      activeName: "1",
214
+      activeName: "3",
209 215
       option: {
210 216
         xAxis: {
211 217
           type: "category",
212
-          data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
218
+          data: [],
219
+          axisLabel: {
220
+              interval:0, //坐标刻度之间的显示间隔,默认就可以了(默认是不重叠)
221
+               rotate:38   //调整数值改变倾斜的幅度(范围-90到90)
222
+            }
213 223
         },
214 224
         yAxis: {
215 225
           type: "value",
216 226
         },
217 227
         series: [
218 228
           {
219
-            data: [820, 932, 901, 934, 1290, 1330, 1320],
220
-            type: "line",
229
+            
230
+            data: [],
231
+            type: "bar",
221 232
             smooth: true,
222 233
             symbol:'none',
223
-            lineStyle:{
224
-              color:'#008775'
234
+            barMaxWidth: 50,
235
+            itemStyle:{
236
+              normal:{
237
+              color:'#008775',barBorderRadius:8,
238
+              label:{
239
+                show:true,
240
+                position:'top'
241
+              }
242
+
243
+              }
225 244
             },
226 245
           },
227 246
         ],
@@ -282,7 +301,20 @@ export default {
282 301
     },
283 302
     getHomeAlarm(v){
284 303
       api.homeAlarm(localStorage.getItem("orgCode"),v).then(res=>{
285
-        let data=res.data
304
+        if(res.code==200){
305
+          let data=res.data
306
+          let xAxis=[];
307
+          let series=[]
308
+          data.forEach(item=>{
309
+            xAxis.push(item.alarmTime)
310
+            series.push(item.alarmCount)
311
+          })
312
+          this.option.xAxis.data=xAxis
313
+          this.option.series[0].data=series
314
+              let myChart = this.$echarts.init(document.getElementById("myChart"));
315
+    myChart.setOption(this.option)
316
+        }
317
+        
286 318
       })
287 319
     },
288 320
     goMore(){
@@ -419,4 +451,5 @@ export default {
419 451
   margin: auto;
420 452
   margin-top: -32px;
421 453
 }
454
+
422 455
 </style>

+ 51 - 4
src/views/system/login/page.vue

@@ -33,7 +33,7 @@
33 33
                     type="text"
34 34
                     v-model="formLogin.username"
35 35
                     placeholder="用户名">
36
-                    <i slot="prepend" class="fa fa-user-circle-o"></i>
36
+                    <i slot="prepend" class="fa fa-user"></i>
37 37
                   </el-input>
38 38
                 </el-form-item>
39 39
                 <el-form-item prop="password">
@@ -41,7 +41,7 @@
41 41
                     type="password"
42 42
                     v-model="formLogin.password"
43 43
                     placeholder="密码">
44
-                    <i slot="prepend" class="fa fa-keyboard-o"></i>
44
+                    <i slot="prepend" class="fa fa-lock"></i>
45 45
                   </el-input>
46 46
                 </el-form-item>
47 47
                
@@ -278,8 +278,8 @@ export default {
278 278
   }
279 279
   // 登录表单
280 280
   .page-login--form {
281
-    width: 25em;
282
-    height: 23em;
281
+    width: 28em;
282
+    height: 26em;
283 283
     background-image: url("./image/dengluk.png");
284 284
     background-repeat: no-repeat;
285 285
     background-size: 100% 100%;
@@ -292,9 +292,19 @@ export default {
292 292
     // 登录按钮
293 293
     .button-login {
294 294
       width: 100%;
295
+      height: 56px;
295 296
       background: linear-gradient(0deg, #01E9BD, #00D6B9);
296 297
       border-radius: 6px;
297 298
     }
299
+    .el-input{
300
+    width: 100%;
301
+background: rgba(255,255,255,0.1100);
302
+border: 1px solid #6DF6E4;
303
+box-shadow: 0px 0px 9px 0px rgba(0,87,75,0.3100);
304
+border-radius: 6px;
305
+color: #fff;
306
+height: 57px;
307
+    }
298 308
     // 输入框左边的图表区域缩窄
299 309
     .el-input-group__prepend {
300 310
       padding: 0px 14px;
@@ -484,5 +494,42 @@ export default {
484 494
     //   }
485 495
     // }
486 496
   }
497
+.el-input__inner{
498
+        border: none;
499
+        height: 57px;
500
+        line-height: 57px;
501
+        padding-left: 10px;
502
+        padding-right: 0;
503
+        background: transparent; 
504
+        color:#fff
505
+    } 
506
+     .el-input__inner:-webkit-autofill,
507
+     .el-input__inner:-webkit-autofill:hover,
508
+     .el-input__inner:-webkit-autofill:focus,
509
+     .el-input__inner:-webkit-autofill:active {
510
+        -webkit-transition-delay: 99999s;
511
+        -webkit-transition: color 99999s ease-out, background-color 99999s ease-out;
512
+    }  
513
+    .el-input-group__append, .el-input-group__prepend{
514
+      background: none !important;
515
+      border:none !important;
516
+      color: rgba(255, 255, 255, 0.8) !important;
517
+      font-size: 22px;
518
+    }
519
+    .el-form-item__error{
520
+      color:#fff
521
+    }
522
+        input::-webkit-input-placeholder{
523
+            color:#fff;
524
+        }
525
+        input::-moz-placeholder{   /* Mozilla Firefox 19+ */
526
+            color:#fff;
527
+        }
528
+        input:-moz-placeholder{    /* Mozilla Firefox 4 to 18 */
529
+            color:#fff;
530
+        }
531
+        input:-ms-input-placeholder{  /* Internet Explorer 10-11 */ 
532
+            color:#fff;
533
+        }
487 534
 }
488 535
 </style>