Browse Source

页面及样式

钞小赢 3 years ago
parent
commit
4665fd5491

+ 8 - 8
package-lock.json

@@ -5989,8 +5989,8 @@
5989 5989
     },
5990 5990
     "echarts": {
5991 5991
       "version": "5.2.1",
5992
-      "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.2.1.tgz",
5993
-      "integrity": "sha512-OJ79b22eqRfbSV8vYmDKmA+XWfNbr0Uk/OafWcFNIGDWti2Uw9A6eVCiJLmqPa9Sk+EWL+t5v26aak0z3gxiZw==",
5992
+      "resolved": "https://registry.nlark.com/echarts/download/echarts-5.2.1.tgz?cache=0&sync_timestamp=1632191607532&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fecharts%2Fdownload%2Fecharts-5.2.1.tgz",
5993
+      "integrity": "sha1-vVjsARzYLe9KcU5AOO9Lc7hBe8M=",
5994 5994
       "requires": {
5995 5995
         "tslib": "2.3.0",
5996 5996
         "zrender": "5.2.1"
@@ -5998,8 +5998,8 @@
5998 5998
       "dependencies": {
5999 5999
         "tslib": {
6000 6000
           "version": "2.3.0",
6001
-          "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
6002
-          "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
6001
+          "resolved": "https://registry.nlark.com/tslib/download/tslib-2.3.0.tgz",
6002
+          "integrity": "sha1-gDuM2rPhK6WBpMpByIObuw2ssJ4="
6003 6003
         }
6004 6004
       }
6005 6005
     },
@@ -15933,16 +15933,16 @@
15933 15933
     },
15934 15934
     "zrender": {
15935 15935
       "version": "5.2.1",
15936
-      "resolved": "https://registry.npmjs.org/zrender/-/zrender-5.2.1.tgz",
15937
-      "integrity": "sha512-M3bPGZuyLTNBC6LiNKXJwSCtglMp8XUEqEBG+2MdICDI3d1s500Y4P0CzldQGsqpRVB7fkvf3BKQQRxsEaTlsw==",
15936
+      "resolved": "https://registry.nlark.com/zrender/download/zrender-5.2.1.tgz",
15937
+      "integrity": "sha1-X0u9qRW6bUErCxncJDG+qtBUF7s=",
15938 15938
       "requires": {
15939 15939
         "tslib": "2.3.0"
15940 15940
       },
15941 15941
       "dependencies": {
15942 15942
         "tslib": {
15943 15943
           "version": "2.3.0",
15944
-          "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
15945
-          "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
15944
+          "resolved": "https://registry.nlark.com/tslib/download/tslib-2.3.0.tgz",
15945
+          "integrity": "sha1-gDuM2rPhK6WBpMpByIObuw2ssJ4="
15946 15946
         }
15947 15947
       }
15948 15948
     }

+ 0 - 54
src/App.vue

@@ -25,60 +25,6 @@ export default {
25 25
 
26 26
 <style lang="scss" >
27 27
 @import "~@/assets/style/public-class.scss";
28
-//分页整体样式
29
-.el-pagination {
30
-  margin-top: 20px;
31
-  display: flex;
32
-  justify-content: flex-end;
33
-}
34
-//分页总共几页样式
35
-.el-pagination__total {
36
-  color: #fff !important;
37
-}
38
-//label样式
39
-.el-form-item__label {
40
-  color: #fff !important;
41
-}
42
-//树形节点选中后的颜色
43
-.el-tree-node:focus > .el-tree-node__content {
44
-  background-color: #0064b9 !important;
45
-  border-radius: 20px;
46
-}
47
-//树形节点鼠标移上去的颜色
48
-.el-tree-node__content:hover {
49
-  background-color: #91a8bc !important;
50
-}
51
-//table border
52 28
 
53
-.el-table td,
54
-.el-table th.is-leaf,
55
-.el-table-border,
56
-.el-table--group {
57
-  border-color: #67a7df !important;
58
-}
59
-.el-table th.el-table_cell.is-leaf {
60
-  border: #67a7df !important;
61
-}
62
-.el-table tr {
63
-  background: #00375e !important;
64
-}
65 29
 
66
-.el-table--border {
67
-  border-color: #67a7df !important;
68
-}
69
-.right_main {
70
-  border: 1px solid #67a7df;
71
-  background: #112f5d;
72
-
73
-  margin-top: 10px;
74
-  .right_title {
75
-    color: #fff;
76
-    border-bottom: 1px solid #67a7df;
77
-    padding: 10px;
78
-    font-size: 14px;
79
-  }
80
-  .right_table {
81
-    padding: 20px;
82
-  }
83
-}
84 30
 </style>

+ 66 - 0
src/assets/style/public-class.scss

@@ -87,3 +87,69 @@ $sizes: (0, 5, 10, 15, 20);
87 87
   background: #0068a0 !important;
88 88
   color:#fff !important;
89 89
 }
90
+
91
+//主体内容样式
92
+.right_main {
93
+  border: 1px solid #67a7df;
94
+  background: #112f5d;
95
+
96
+  margin-top: 10px;
97
+  .right_title {
98
+    color: #fff;
99
+    border-bottom: 1px solid #67a7df;
100
+    padding: 10px;
101
+    font-size: 14px;
102
+  }
103
+  .right_table {
104
+    padding: 20px;
105
+  }
106
+}
107
+//分页整体样式
108
+.el-pagination {
109
+  margin-top: 20px;
110
+  display: flex;
111
+  justify-content: flex-end;
112
+}
113
+//分页总共几页样式
114
+.el-pagination__total {
115
+  color: #fff !important;
116
+}
117
+//label样式
118
+.el-form-item__label {
119
+  color: #fff !important;
120
+}
121
+//树形节点选中后的颜色
122
+.el-tree-node:focus > .el-tree-node__content {
123
+  background-color: #0064b9 !important;
124
+  border-radius: 20px;
125
+}
126
+//树形节点鼠标移上去的颜色
127
+.el-tree-node__content:hover {
128
+  background-color: #91a8bc !important;
129
+}
130
+//table border
131
+
132
+.el-table td,
133
+.el-table th.is-leaf,
134
+.el-table-border,
135
+.el-table--group {
136
+  border-color: #67a7df !important;
137
+}
138
+.el-table th.el-table_cell.is-leaf {
139
+  border: #67a7df !important;
140
+}
141
+.el-table tr {
142
+  background: #00375e !important;
143
+}
144
+
145
+.el-table--border {
146
+  border-color: #67a7df !important;
147
+  
148
+}
149
+//鼠标移到每行时的背景色
150
+.el-table__body tr.hover-row.current-row>td.el-table__cell,
151
+.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,
152
+.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,
153
+.el-table__body tr.hover-row>td.el-table__cell{
154
+  background:hsl(204, 66%, 23%) !important;
155
+}

+ 1 - 0
src/layout/header-aside/layout.vue

@@ -198,4 +198,5 @@ export default {
198 198
   align-items: center;
199 199
   padding-left: 10px;
200 200
 }
201
+
201 202
 </style>

+ 305 - 0
src/views/demo/dataQuery/index copy.vue

@@ -0,0 +1,305 @@
1
+<template>
2
+  <div>
3
+    <d2-container>
4
+      <!-- <template slot="header">首页/数据查询</template> -->
5
+      <div class="main">
6
+        <div class="left">
7
+          <el-input placeholder="输入关键字进行过滤" v-model="filterText">
8
+          </el-input>
9
+
10
+          <el-tree
11
+            class="filter-tree"
12
+            :data="leftList"
13
+            node-key="id"
14
+            :props="defaultProps"
15
+            default-expand-all
16
+            :filter-node-method="filterNode"
17
+            ref="tree"
18
+          >
19
+            <span class="custom-tree-node" slot-scope="{ node, data }">
20
+              <span v-if="node.level==1"> <i :class="node.icon"></i>{{ node.label }} </span>
21
+               <span v-if="node.level==2"> <i :class="node.icon"></i>{{ node.label }} </span>
22
+                <span v-if="node.level==3"> <i :class="node.icon"></i>{{ node.label }} </span>
23
+                 <span v-if="node.level==4"> <i></i>{{ node.label }} </span>
24
+            </span>
25
+          </el-tree>
26
+        </div>
27
+        <div class="right">
28
+          <!-- <template slot="header">首页/数据查询</template> -->
29
+          <div class="nav">当前所在位置:首页>数据查询</div>
30
+          <div class="right_main">
31
+            <div class="right_title"><i class="fa fa-bar-chart" aria-hidden="true" style="padding-right:5px"></i>数据查询</div>
32
+            <div class="right_table">
33
+          <el-form :inline="true" :model="formInline" class="demo-form-inline">
34
+            <el-form-item label="扫描时间">
35
+              <el-date-picker
36
+                v-model="formInline.scanTime"
37
+                type="daterange"
38
+                align="right"
39
+                unlink-panels
40
+                range-separator="至"
41
+                start-placeholder="开始日期"
42
+                end-placeholder="结束日期"
43
+                :picker-options="pickerOptions"
44
+              >
45
+              </el-date-picker>
46
+            </el-form-item>
47
+            <el-form-item>
48
+              <el-button type="primary" icon="el-icon-search" @click="search"
49
+                >查询</el-button
50
+              >
51
+            </el-form-item>
52
+
53
+            <el-form-item>
54
+              <el-button
55
+                type="primary"
56
+                icon="el-icon-refresh-left"
57
+                @click="reset"
58
+                >重置</el-button
59
+              >
60
+            </el-form-item>
61
+          </el-form>
62
+          <el-table :data="dataSearchList" border style="width: 100%" :header-cell-style="{background:'#0064b9',color:'#c9f5fa'}">
63
+            <el-table-column
64
+              prop="directLibrary"
65
+              label="所属直属库"
66
+              align="center"
67
+            >
68
+            </el-table-column>
69
+            <el-table-column prop="subTreasury" label="所属分库" align="center">
70
+            </el-table-column>
71
+            <el-table-column prop="cfName" label="仓房名称" align="center">
72
+            </el-table-column>
73
+            <el-table-column
74
+              prop="scanStart"
75
+              label="扫描开始时间"
76
+              align="center"
77
+            >
78
+            </el-table-column>
79
+            <el-table-column prop="scanEnd" label="扫描结束时间" align="center">
80
+            </el-table-column>
81
+
82
+            <el-table-column prop="isAlarm" label="是否报警" align="center">
83
+            </el-table-column>
84
+
85
+            <el-table-column prop="cfState" label="仓房状态" align="center">
86
+            </el-table-column>
87
+             <el-table-column prop="cfState" label="体积" align="center">
88
+            </el-table-column>  
89
+             <el-table-column prop="cfState" label="重量" align="center">
90
+            </el-table-column>     
91
+             <!-- <el-table-column
92
+      fixed="right"
93
+      label="操作"
94
+      width="100">
95
+      <template slot-scope="scope">
96
+        <el-button @click="detail(scope.row)" type="text" size="small">详情</el-button>
97
+    
98
+      </template>
99
+    </el-table-column>      -->
100
+          </el-table>
101
+          <el-pagination
102
+            @size-change="handleSizeChange"
103
+            @current-change="handleCurrentChange"
104
+            :current-page="1"
105
+            :page-sizes="[10, 20, 30, 40]"
106
+            :page-size="pagination.pageSize"
107
+            layout="total, sizes, prev, pager, next, jumper"
108
+            :total="pagination.total"
109
+          >
110
+          </el-pagination>
111
+          </div>
112
+        </div>
113
+        </div>
114
+      </div>
115
+    </d2-container>
116
+  </div>
117
+</template>
118
+<script>
119
+export default {
120
+  name: "dataQuery",
121
+  data() {
122
+    return {
123
+      filterText: "",
124
+      //默认展开的节点
125
+      defaultProps: {
126
+        children: "children",
127
+        label: "label",
128
+      },
129
+      //左侧树数据
130
+      leftList: [
131
+        {
132
+          id: 0,
133
+          label: "中储粮河南分公司",
134
+          icon: "el-icon-tickets",
135
+          children: [
136
+            {
137
+              id: 1,
138
+              label: "商丘直属库",
139
+              icon: "el-icon-paperclip",
140
+              children: [
141
+                {
142
+                  id: 4,
143
+                  label: "宁陵粮油储备公司",
144
+                  children: [
145
+                    {
146
+                      id: 9,
147
+                      label: "1号仓",
148
+                    },
149
+                    {
150
+                      id: 10,
151
+                      label: "2号仓",
152
+                    },
153
+                  ],
154
+                },
155
+              ],
156
+            },
157
+            {
158
+              id: 2,
159
+              label: "郑州直属库",
160
+              icon: "el-icon-paperclip",
161
+              children: [
162
+                {
163
+                  id: 5,
164
+                  label: "中牟粮油储备公司",
165
+                  children: [
166
+                    {
167
+                      id: 8,
168
+                      label: "1号仓",
169
+                    },
170
+                    {
171
+                      id: 9,
172
+                      label: "1号仓",
173
+                    },
174
+                  ],
175
+                },
176
+              ],
177
+            },
178
+          ],
179
+        },
180
+      ],
181
+      // 日期插件
182
+      //
183
+      pickerOptions: {
184
+        shortcuts: [
185
+          {
186
+            text: "最近一周",
187
+            onClick(picker) {
188
+              const end = new Date();
189
+              const start = new Date();
190
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
191
+              picker.$emit("pick", [start, end]);
192
+            },
193
+          },
194
+          {
195
+            text: "最近一个月",
196
+            onClick(picker) {
197
+              const end = new Date();
198
+              const start = new Date();
199
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
200
+              picker.$emit("pick", [start, end]);
201
+            },
202
+          },
203
+          {
204
+            text: "最近三个月",
205
+            onClick(picker) {
206
+              const end = new Date();
207
+              const start = new Date();
208
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
209
+              picker.$emit("pick", [start, end]);
210
+            },
211
+          },
212
+        ],
213
+      },
214
+      formInline: {
215
+        scanTime: "",
216
+      },
217
+      //表格字段
218
+      dataSearchList: [
219
+        {
220
+          directLibrary: "",
221
+          subTreasury: "",
222
+          cfName: "",
223
+          scanStart: "",
224
+          scanEnd: "",
225
+
226
+          cfState: "",
227
+        },
228
+      ],
229
+
230
+      pagination: {
231
+        //每页显示的条数
232
+        pageSize: 10,
233
+        //当前页
234
+        curPage: 1,
235
+        //总数
236
+        total: 20
237
+      },
238
+    };
239
+  },
240
+  watch: {
241
+    filterTest(val) {
242
+      this.$refs.tree.filter(val);
243
+    },
244
+  },
245
+  methods: {
246
+    filterNode(value, data) {
247
+      if (!value) return true;
248
+      return data.label.indexOf(value) !== -1;
249
+    },
250
+    search() {},
251
+    reset() {},
252
+    //每页条数改变
253
+    handleSizeChange(val) {
254
+      console.log(`每页 ${val} 条`);
255
+    },
256
+    //当前页改变
257
+    handleCurrentChange(val) {
258
+      // this.pagination.curPage = val;
259
+      console.log(`当前页: ${val}`);
260
+    },
261
+    detail(){}
262
+  },
263
+};
264
+</script>
265
+<style lang="scss" scoped>
266
+.main {
267
+  height: 100%;
268
+  display: flex;
269
+  .left {
270
+    width: 250px;
271
+    height: 100%;
272
+   background: #163d79;
273
+  
274
+  }
275
+  .right {
276
+    margin-left: 20px;
277
+    width:calc(100% - 250px);
278
+    .nav {
279
+      padding: 10px 0 10px 10px;
280
+      color:#FFF;
281
+      font-size:14px;
282
+  
283
+      background: #004a93;
284
+    }
285
+    // .right_main{
286
+    //   border:1px solid #67a7df;
287
+    //   background:#112f5d;
288
+    
289
+    //   margin-top:10px;
290
+    //   .right_title{
291
+    //     color:#FFF;
292
+    //     border-bottom:1px solid #67a7df;
293
+    //     padding:10px;
294
+    //      font-size:14px;
295
+    // }
296
+    // .right_table{
297
+    //    padding:20px;
298
+    
299
+    // }
300
+    // }
301
+   
302
+  }
303
+}
304
+
305
+</style>

+ 1 - 16
src/views/demo/dataQuery/index.vue

@@ -287,22 +287,7 @@ export default {
287 287
   
288 288
       background: #004a93;
289 289
     }
290
-    .right_main{
291
-      border:1px solid #67a7df;
292
-      background:#112f5d;
293
-    
294
-      margin-top:10px;
295
-      .right_title{
296
-        color:#FFF;
297
-        border-bottom:1px solid #67a7df;
298
-        padding:10px;
299
-         font-size:14px;
300
-    }
301
-    .right_table{
302
-       padding:20px;
303
-
304
-    }
305
-    }
290
+  
306 291
 
307 292
   }
308 293
 }

+ 34 - 12
src/views/demo/parameManagement/alarmParame/index.vue

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <d2-container>
4
-      <template slot="header">首页/报警参数</template>
4
+      <!-- <template slot="header">首页/报警参数</template> -->
5 5
       <div class="main">
6 6
         <div class="left">
7 7
           <el-input placeholder="输入关键字进行过滤" v-model="filterText">
@@ -17,11 +17,18 @@
17 17
             ref="tree"
18 18
           >
19 19
             <span class="custom-tree-node" slot-scope="{ node, data }">
20
-              <span> <i :class="node.icon"></i>{{ node.label }} </span>
20
+              <span v-if="node.level==1"> <i :class="node.icon"></i>{{ node.label }} </span>
21
+               <span v-if="node.level==2"> <i :class="node.icon"></i>{{ node.label }} </span>
22
+                <span v-if="node.level==3"> <i :class="node.icon"></i>{{ node.label }} </span>
23
+                 <span v-if="node.level==4"> <i></i>{{ node.label }} </span>
21 24
             </span>
22 25
           </el-tree>
23 26
         </div>
24 27
         <div class="right">
28
+           <div class="nav">当前所在位置:首页>报警参数</div>
29
+          <div class="right_main">
30
+            <div class="right_title"><i class="fa fa-lightbulb-o" aria-hidden="true" style="padding-right:5px"></i>报警参数</div>
31
+            <div class="right_table">
25 32
           <div class="addBtn">
26 33
             <el-button type="primary" icon="el-icon-plus" @click="addTantou"
27 34
               >修改新增报警规则</el-button
@@ -63,6 +70,8 @@
63 70
               </el-col>
64 71
             </el-row>
65 72
           </el-form>
73
+          </div>
74
+          </div>
66 75
         </div>
67 76
       </div>
68 77
     </d2-container>
@@ -219,15 +228,26 @@ export default {
219 228
 .main {
220 229
   height: 100%;
221 230
   display: flex;
222
-  .left {
223
-    width: 200px;
231
+ .left {
232
+    width: 250px;
224 233
     height: 100%;
225
-    border-right: 1px solid #ccc;
226
-    padding-right: 20px;
234
+   background: #163d79;
235
+
227 236
   }
228
-  .right {
237
+ .right {
229 238
     margin-left: 20px;
230
-    width:100%;
239
+    width:calc(100% - 250px);
240
+    .nav {
241
+      padding: 10px 0 10px 10px;
242
+      color:#FFF;
243
+
244
+      font-size:14px;
245
+  
246
+      background: #004a93;
247
+    }
248
+ 
249
+  
250
+
231 251
   }
232 252
   .addBtn {
233 253
     margin-bottom: 20px;
@@ -236,16 +256,18 @@ export default {
236 256
     font-size: 16px;
237 257
     font-weight: 700;
238 258
     line-height: 40px;
259
+    color:#fff;
239 260
   }
240 261
   p {
241 262
     color: #525357;
242 263
     font-size: 14px;
243 264
     line-height: 40px;
244 265
     position: relative;
266
+    color:#fff;
245 267
   }
246
-  span {
247
-    margin: 10px;
248
-    color: #000000;
249
-  }
268
+  // span {
269
+  //   margin: 10px;
270
+  //   color: #000000;
271
+  // }
250 272
 }
251 273
 </style>

+ 28 - 8
src/views/demo/parameManagement/hardwareParame/index.vue

@@ -1,9 +1,9 @@
1 1
 <template>
2 2
   <div>
3 3
     <d2-container>
4
-      <template slot="header">首页/硬件参数</template>
4
+      <!-- <template slot="header">首页/硬件参数</template> -->
5 5
       <div class="main">
6
-        <div class="left">
6
+       <div class="left">
7 7
           <el-input placeholder="输入关键字进行过滤" v-model="filterText">
8 8
           </el-input>
9 9
 
@@ -17,11 +17,18 @@
17 17
             ref="tree"
18 18
           >
19 19
             <span class="custom-tree-node" slot-scope="{ node, data }">
20
-              <span> <i :class="node.icon"></i>{{ node.label }} </span>
20
+              <span v-if="node.level==1"> <i :class="node.icon"></i>{{ node.label }} </span>
21
+               <span v-if="node.level==2"> <i :class="node.icon"></i>{{ node.label }} </span>
22
+                <span v-if="node.level==3"> <i :class="node.icon"></i>{{ node.label }} </span>
23
+                 <span v-if="node.level==4"> <i></i>{{ node.label }} </span>
21 24
             </span>
22 25
           </el-tree>
23 26
         </div>
24 27
         <div class="right">
28
+          <div class="nav">当前所在位置:首页>硬件参数</div>
29
+          <div class="right_main">
30
+            <div class="right_title"><i class="fa fa-cog" aria-hidden="true" style="padding-right:5px"></i>硬件参数</div>
31
+            <div class="right_table">
25 32
           <el-form :inline="true" :model="formInline" class="demo-form-inline">
26 33
             <el-form-item label="设备名称:">
27 34
               <el-input
@@ -49,7 +56,7 @@
49 56
               >新增激光探头</el-button
50 57
             >
51 58
           </div>
52
-          <el-table :data="hardwareList" border style="width: 100%">
59
+          <el-table :data="hardwareList" border style="width: 100%" :header-cell-style="{background:'#0064b9',color:'#c9f5fa'}">
53 60
             <el-table-column
54 61
               align="center"
55 62
               label="序号"
@@ -80,6 +87,8 @@
80 87
               </template>
81 88
             </el-table-column>
82 89
           </el-table>
90
+          </div>
91
+          </div>
83 92
         </div>
84 93
       </div>
85 94
     </d2-container>
@@ -231,13 +240,24 @@ export default {
231 240
   height: 100%;
232 241
   display: flex;
233 242
   .left {
234
-    width: 200px;
243
+    width: 250px;
235 244
     height: 100%;
236
-    border-right: 1px solid #ccc;
237
-    padding-right: 20px;
245
+   background: #163d79;
246
+
238 247
   }
239
-  .right {
248
+ .right {
240 249
     margin-left: 20px;
250
+    width:calc(100% - 250px);
251
+    .nav {
252
+      padding: 10px 0 10px 10px;
253
+      color:#FFF;
254
+
255
+      font-size:14px;
256
+  
257
+      background: #004a93;
258
+    }
259
+ 
260
+
241 261
   }
242 262
   .addBtn {
243 263
     margin-bottom: 20px;

+ 28 - 9
src/views/demo/parameManagement/scanParame/index.vue

@@ -1,9 +1,9 @@
1 1
 <template>
2 2
   <div>
3 3
     <d2-container>
4
-      <template slot="header">首页/扫描参数</template>
4
+      <!-- <template slot="header">首页/扫描参数</template> -->
5 5
       <div class="main">
6
-        <div class="left">
6
+     <div class="left">
7 7
           <el-input placeholder="输入关键字进行过滤" v-model="filterText">
8 8
           </el-input>
9 9
 
@@ -17,11 +17,18 @@
17 17
             ref="tree"
18 18
           >
19 19
             <span class="custom-tree-node" slot-scope="{ node, data }">
20
-              <span> <i :class="node.icon"></i>{{ node.label }} </span>
20
+              <span v-if="node.level==1"> <i :class="node.icon"></i>{{ node.label }} </span>
21
+               <span v-if="node.level==2"> <i :class="node.icon"></i>{{ node.label }} </span>
22
+                <span v-if="node.level==3"> <i :class="node.icon"></i>{{ node.label }} </span>
23
+                 <span v-if="node.level==4"> <i></i>{{ node.label }} </span>
21 24
             </span>
22 25
           </el-tree>
23 26
         </div>
24 27
         <div class="right">
28
+           <div class="nav">当前所在位置:首页>扫描参数</div>
29
+          <div class="right_main">
30
+            <div class="right_title"><i class="fa fa-search-minus" aria-hidden="true" style="padding-right:5px"></i>扫描参数</div>
31
+            <div class="right_table">
25 32
           <el-form :inline="true" :model="formInline" class="demo-form-inline">
26 33
             <el-form-item label="设备名称:">
27 34
               <el-input
@@ -45,7 +52,7 @@
45 52
             </el-form-item>
46 53
           </el-form>
47 54
 
48
-          <el-table :data="hardwareList" border style="width: 100%">
55
+          <el-table :data="hardwareList" border style="width: 100%" :header-cell-style="{background:'#0064b9',color:'#c9f5fa'}">
49 56
             <el-table-column
50 57
               align="center"
51 58
               label="序号"
@@ -76,6 +83,8 @@
76 83
               </template>
77 84
             </el-table-column>
78 85
           </el-table>
86
+          </div>
87
+          </div>
79 88
         </div>
80 89
       </div>
81 90
     </d2-container>
@@ -435,14 +444,24 @@ export default {
435 444
 .main {
436 445
   height: 100%;
437 446
   display: flex;
438
-  .left {
439
-    width: 200px;
447
+   .left {
448
+    width: 250px;
440 449
     height: 100%;
441
-    border-right: 1px solid #ccc;
442
-    padding-right: 20px;
450
+   background: #163d79;
451
+
443 452
   }
444 453
   .right {
445
-    margin-left: 20px;
454
+  margin-left: 20px;
455
+    width:calc(100% - 250px);
456
+    .nav {
457
+      padding: 10px 0 10px 10px;
458
+      color:#FFF;
459
+
460
+      font-size:14px;
461
+  
462
+      background: #004a93;
463
+    }
464
+ 
446 465
   }
447 466
   .addBtn {
448 467
     margin-bottom: 20px;

+ 148 - 85
src/views/demo/warehouseShow/warehouseInfo/index.vue

@@ -1,95 +1,130 @@
1 1
 <template>
2 2
   <div>
3 3
     <d2-container>
4
-      <template slot="header"><div class="nav">当前所在位置:首页>仓房信息</div></template>
5
-        <div>
6
-          <div class="right_main">
7
-            <div class="right_title"><i class="fa fa-university" aria-hidden="true" style="padding-right:5px"></i>仓房信息</div>
8
-            <div class="right_table">
9
-      <el-form :inline="true" :model="formInline" class="demo-form-inline">
10
-        <el-form-item label="仓房名称:">
11
-          <el-input v-model="formInline.cfName" placeholder="请选择"></el-input>
12
-         
13
-        </el-form-item>
14
-        <el-form-item label="扫描时间">
15
-          <el-date-picker
16
-            v-model="formInline.scanTime"
17
-            type="daterange"
18
-            align="right"
19
-            unlink-panels
20
-            range-separator="至"
21
-            start-placeholder="开始日期"
22
-            end-placeholder="结束日期"
23
-            :picker-options="pickerOptions"
24
-          >
25
-          </el-date-picker>
26
-        </el-form-item>
27
-        <el-form-item>
28
-          <el-button type="primary" icon="el-icon-search" @click="search"
29
-            >查询</el-button
30
-          >
31
-        </el-form-item>
4
+      <template slot="header"
5
+        ><div class="nav">当前所在位置:首页>仓房信息</div></template
6
+      >
7
+      <div>
8
+        <div class="right_main">
9
+          <div class="right_title">
10
+            <i
11
+              class="fa fa-university"
12
+              aria-hidden="true"
13
+              style="padding-right: 5px"
14
+            ></i
15
+            >仓房信息
16
+          </div>
17
+          <div class="right_table">
18
+            <el-form
19
+              :inline="true"
20
+              :model="formInline"
21
+              class="demo-form-inline"
22
+            >
23
+              <el-form-item label="仓房名称:">
24
+                <el-cascader :options="options"></el-cascader>
25
+              </el-form-item>
26
+              <el-form-item label="扫描时间">
27
+                <el-date-picker
28
+                  v-model="formInline.scanTime"
29
+                  type="daterange"
30
+                  align="right"
31
+                  unlink-panels
32
+                  range-separator="至"
33
+                  start-placeholder="开始日期"
34
+                  end-placeholder="结束日期"
35
+                  :picker-options="pickerOptions"
36
+                >
37
+                </el-date-picker>
38
+              </el-form-item>
39
+              <el-form-item>
40
+                <el-button type="primary" icon="el-icon-search" @click="search"
41
+                  >查询</el-button
42
+                >
43
+              </el-form-item>
32 44
 
33
-        <el-form-item>
34
-          <el-button type="primary" icon="el-icon-refresh-left" @click="reset"
35
-            >重置</el-button
36
-          >
37
-        </el-form-item>
38
-      </el-form>
45
+              <el-form-item>
46
+                <el-button
47
+                  type="primary"
48
+                  icon="el-icon-refresh-left"
49
+                  @click="reset"
50
+                  >重置</el-button
51
+                >
52
+              </el-form-item>
53
+            </el-form>
39 54
 
40
-      <el-table :data="cfInfoList" border style="width: 100%" :header-cell-style="{background:'#0064b9',color:'#c9f5fa'}">
41
-        <el-table-column prop="branchOffice" label="所属分公司" align="center">
42
-        </el-table-column>
43
-        <el-table-column prop="directLibrary" label="所属直属库" align="center">
44
-        </el-table-column>
45
-        <el-table-column prop="subTreasury" label="所属分库" align="center">
46
-        </el-table-column>
47
-        <el-table-column prop="cfName" label="仓房名称" align="center">
48
-        </el-table-column>
49
-        <el-table-column prop="keeper" label="保管员" align="center">
50
-        </el-table-column>
51
-        <el-table-column prop="lxfs" label="联系方式" align="center">
52
-        </el-table-column>
55
+            <el-table
56
+              :data="cfInfoList"
57
+              border
58
+              style="width: 100%"
59
+              :header-cell-style="{ background: '#0064b9', color: '#c9f5fa' }"
60
+            >
61
+              <el-table-column
62
+                prop="branchOffice"
63
+                label="所属分公司"
64
+                align="center"
65
+              >
66
+              </el-table-column>
67
+              <el-table-column
68
+                prop="directLibrary"
69
+                label="所属直属库"
70
+                align="center"
71
+              >
72
+              </el-table-column>
73
+              <el-table-column
74
+                prop="subTreasury"
75
+                label="所属分库"
76
+                align="center"
77
+              >
78
+              </el-table-column>
79
+              <el-table-column prop="cfName" label="仓房名称" align="center">
80
+              </el-table-column>
81
+              <el-table-column prop="keeper" label="保管员" align="center">
82
+              </el-table-column>
83
+              <el-table-column prop="lxfs" label="联系方式" align="center">
84
+              </el-table-column>
53 85
 
54
-        <el-table-column
55
-          prop="lastScan"
56
-          label="最近一次扫描时间"
57
-          align="center"
58
-        >
59
-        </el-table-column>
86
+              <el-table-column
87
+                prop="lastScan"
88
+                label="最近一次扫描时间"
89
+                align="center"
90
+              >
91
+              </el-table-column>
60 92
 
61
-        <el-table-column prop="cfState" label="当前仓房状态" align="center">
62
-        </el-table-column>
63
-        <el-table-column align="center" label="操作"  width="180">
64
-          <template slot-scope="scope">
65
-            <el-button
66
-              @click="handleCheck(scope.row)"
67
-              type="text"
68
-              size="small"
69
-              icon="el-icon-circle-check"
70
-              >查看</el-button
71
-            >
72
-            <el-button type="text" size="small" icon="el-icon-edit"
73
-              >编辑</el-button
74
-            >
75
-            <el-button type="text" size="small" icon="el-icon-delete"
76
-              >删除</el-button
77
-            >
78
-          </template>
79
-        </el-table-column>
80
-      </el-table>
81
-       <!-- <pagination
93
+              <el-table-column
94
+                prop="cfState"
95
+                label="当前仓房状态"
96
+                align="center"
97
+              >
98
+              </el-table-column>
99
+              <el-table-column align="center" label="操作" width="180">
100
+                <template slot-scope="scope">
101
+                  <el-button
102
+                    @click="handleCheck(scope.row)"
103
+                    type="text"
104
+                    size="small"
105
+                    icon="el-icon-circle-check"
106
+                    >查看</el-button
107
+                  >
108
+                  <el-button type="text" size="small" icon="el-icon-edit"
109
+                    >编辑</el-button
110
+                  >
111
+                  <el-button type="text" size="small" icon="el-icon-delete"
112
+                    >删除</el-button
113
+                  >
114
+                </template>
115
+              </el-table-column>
116
+            </el-table>
117
+            <!-- <pagination
82 118
         
83 119
           :total="total"
84 120
           :page.sync="listQuery.page"
85 121
           :limit.sync="listQuery.limit"
86 122
           @pagination="getList"
87 123
         /> -->
124
+          </div>
88 125
         </div>
89
-        </div>
90
-    </div>
126
+      </div>
91 127
     </d2-container>
92
- 
93 128
   </div>
94 129
 </template>
95 130
 <script>
@@ -101,6 +136,36 @@ export default {
101 136
   components: { Pagination },
102 137
   data() {
103 138
     return {
139
+      //options
140
+      options: [
141
+        {
142
+          value: 'zhinan',
143
+          label: '指南',
144
+         
145
+          children: 
146
+          [{
147
+            value: 'shejiyuanze',
148
+            label: '设计原则',
149
+            children: [
150
+              {
151
+              value: 'yizhi',
152
+              label: '一致'
153
+            }, 
154
+            {
155
+              value: 'fankui',
156
+              label: '反馈'
157
+            },
158
+             {
159
+              value: 'xiaolv',
160
+              label: '效率'
161
+            },
162
+             {
163
+              value: 'kekong',
164
+              label: '可控'
165
+            }
166
+            ],
167
+          }]
168
+          }],
104 169
       
105 170
       //头部查询条件
106 171
       formInline: {
@@ -242,12 +307,10 @@ export default {
242 307
 };
243 308
 </script>
244 309
 <style lang="scss" scoped>
245
-     .nav {
246
-    
247
-      color:#FFF;
248
-      font-size:14px;
249
-  
250
-      background: #004a93;
251
-    }
252
-  
310
+.nav {
311
+  color: #fff;
312
+  font-size: 14px;
313
+
314
+  background: #004a93;
315
+}
253 316
 </style>