GaoYuPeng hace 3 años
padre
commit
ff52d01822

+ 31 - 0
package-lock.json

@@ -5987,6 +5987,22 @@
5987 5987
         "safer-buffer": "^2.1.0"
5988 5988
       }
5989 5989
     },
5990
+    "echarts": {
5991
+      "version": "5.2.1",
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
+      "requires": {
5995
+        "tslib": "2.3.0",
5996
+        "zrender": "5.2.1"
5997
+      },
5998
+      "dependencies": {
5999
+        "tslib": {
6000
+          "version": "2.3.0",
6001
+          "resolved": "https://registry.nlark.com/tslib/download/tslib-2.3.0.tgz",
6002
+          "integrity": "sha1-gDuM2rPhK6WBpMpByIObuw2ssJ4="
6003
+        }
6004
+      }
6005
+    },
5990 6006
     "editorconfig": {
5991 6007
       "version": "0.15.3",
5992 6008
       "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz",
@@ -15914,6 +15930,21 @@
15914 15930
           "dev": true
15915 15931
         }
15916 15932
       }
15933
+    },
15934
+    "zrender": {
15935
+      "version": "5.2.1",
15936
+      "resolved": "https://registry.nlark.com/zrender/download/zrender-5.2.1.tgz",
15937
+      "integrity": "sha1-X0u9qRW6bUErCxncJDG+qtBUF7s=",
15938
+      "requires": {
15939
+        "tslib": "2.3.0"
15940
+      },
15941
+      "dependencies": {
15942
+        "tslib": {
15943
+          "version": "2.3.0",
15944
+          "resolved": "https://registry.nlark.com/tslib/download/tslib-2.3.0.tgz",
15945
+          "integrity": "sha1-gDuM2rPhK6WBpMpByIObuw2ssJ4="
15946
+        }
15947
+      }
15917 15948
     }
15918 15949
   }
15919 15950
 }

+ 1 - 0
package.json

@@ -16,6 +16,7 @@
16 16
     "better-scroll": "^1.15.2",
17 17
     "core-js": "^3.4.3",
18 18
     "dayjs": "^1.8.17",
19
+    "echarts": "^5.2.1",
19 20
     "element-ui": "^2.15.6",
20 21
     "faker": "^4.1.0",
21 22
     "flex.css": "^1.1.7",

+ 12 - 41
src/App.vue

@@ -1,26 +1,26 @@
1 1
 <template>
2 2
   <div id="app">
3
-    <router-view/>
3
+    <router-view />
4 4
   </div>
5 5
 </template>
6 6
 
7 7
 <script>
8
-import util from '@/libs/util'
8
+import util from "@/libs/util";
9 9
 export default {
10
-  name: 'app',
10
+  name: "app",
11 11
   watch: {
12
-    '$i18n.locale': 'i18nHandle'
12
+    "$i18n.locale": "i18nHandle",
13 13
   },
14
-  created () {
15
-    this.i18nHandle(this.$i18n.locale)
14
+  created() {
15
+    this.i18nHandle(this.$i18n.locale);
16 16
   },
17 17
   methods: {
18
-    i18nHandle (val, oldVal) {
19
-      util.cookies.set('lang', val)
20
-      document.querySelector('html').setAttribute('lang', val)
21
-    }
22
-  }
23
-}
18
+    i18nHandle(val, oldVal) {
19
+      util.cookies.set("lang", val);
20
+      document.querySelector("html").setAttribute("lang", val);
21
+    },
22
+  },
23
+};
24 24
 </script>
25 25
 
26 26
 <style lang="scss">
@@ -48,34 +48,5 @@ justify-content: flex-end;
48 48
 .el-tree-node__content:hover {
49 49
      background-color:#91a8bc !important;
50 50
 }
51
-//table border
52 51
 
53
-.el-table td,.el-table th.is-leaf,.el-table-border,.el-table--group{
54
-  border-color:#67a7df !important
55
-}
56
-.el-table th.el-table_cell.is-leaf{
57
- border:#67a7df !important
58
-}
59
-.el-table tr{
60
-  background:#00375e !important;
61
-}
62
-.el-table--border{
63
-  border-color:#67a7df !important
64
-}
65
-    .right_main{
66
-      border:1px solid #67a7df;
67
-      background:#112f5d;
68
-    
69
-      margin-top:10px;
70
-      .right_title{
71
-        color:#FFF;
72
-        border-bottom:1px solid #67a7df;
73
-        padding:10px;
74
-         font-size:14px;
75
-    }
76
-    .right_table{
77
-       padding:20px;
78
-    
79
-    }
80
-    }
81 52
 </style>

+ 69 - 6
src/assets/style/public-class.scss

@@ -74,11 +74,8 @@ $sizes: (0, 5, 10, 15, 20);
74 74
 }
75 75
 
76 76
 //鼠标移到每行时的背景色
77
-.el-table__body tr.hover-row.current-row>td.el-table__cell,
78
-.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,
79
-.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,
80
-.el-table__body tr.hover-row>td.el-table__cell{
81
-  background:#00375b;
77
+.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
78
+  background:hsl(204, 66%, 23%) !important;
82 79
 }
83 80
 //头部导航一级菜单选中后的样式
84 81
 .theme-d2 .d2-theme-header .el-menu .el-menu-item.is-active{
@@ -89,4 +86,70 @@ $sizes: (0, 5, 10, 15, 20);
89 86
 .theme-d2 .d2-theme-header .el-menu .el-submenu.is-active .el-submenu__title{
90 87
   background: #0068a0 !important;
91 88
   color:#fff !important;
92
-}
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
+#formLabel .el-form-item__label {
119
+  color: #fff;
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>

+ 3 - 1
src/libs/util.js

@@ -14,7 +14,9 @@ const util = {
14 14
  */
15 15
 util.title = function (titleText) {
16 16
   const processTitle = process.env.VUE_APP_TITLE || 'D2Admin'
17
-  window.document.title = `${processTitle}${titleText ? ` | ${titleText}` : ''}`
17
+  // window.document.title = `${processTitle}${titleText ? ` | ${titleText}` : ''}`
18
+  //浏览器标题
19
+  window.document.title = `${processTitle}`
18 20
 }
19 21
 
20 22
 /**

+ 7 - 2
src/main.js

@@ -12,15 +12,20 @@ import router from './router'
12 12
 import { menuHeader, menuAside } from '@/menu'
13 13
 import { frameInRoutes } from '@/router/routes'
14 14
 
15
+//echarts
16
+import * as echarts from "echarts"
17
+Vue.prototype.$echarts = echarts
18
+
15 19
 // 核心插件
16 20
 Vue.use(d2Admin)
17 21
 
22
+
18 23
 new Vue({
19 24
   router,
20 25
   store,
21 26
   i18n,
22 27
   render: h => h(App),
23
-  created () {
28
+  created() {
24 29
     // 处理路由 得到每一级的路由设置
25 30
     this.$store.commit('d2admin/page/init', frameInRoutes)
26 31
     // 设置顶栏菜单
@@ -30,7 +35,7 @@ new Vue({
30 35
     // 初始化菜单搜索功能
31 36
     this.$store.commit('d2admin/search/init', menuHeader)
32 37
   },
33
-  mounted () {
38
+  mounted() {
34 39
     // 展示系统信息
35 40
     this.$store.commit('d2admin/releases/versionShow')
36 41
     // 用户登录后从数据库加载一系列的设置

+ 2 - 2
src/store/modules/d2admin/modules/account.js

@@ -51,14 +51,14 @@ export default {
51 51
       // 判断是否需要确认
52 52
       if (confirm) {
53 53
         commit('d2admin/gray/set', true, { root: true })
54
-        MessageBox.confirm('确定要注销当前用户吗', '注销用户', { type: 'warning' })
54
+        MessageBox.confirm('确定要退出当前用户吗', '退出用户', { type: 'warning' })
55 55
           .then(() => {
56 56
             commit('d2admin/gray/set', false, { root: true })
57 57
             logout()
58 58
           })
59 59
           .catch(() => {
60 60
             commit('d2admin/gray/set', false, { root: true })
61
-            Message({ message: '取消注销操作' })
61
+            Message({ message: '取消退出操作' })
62 62
           })
63 63
       } else {
64 64
         logout()

+ 2 - 2
src/views/demo/alarmRecord/index.vue

@@ -3,7 +3,7 @@
3 3
     <d2-container>
4 4
       <template slot="header">首页/报警记录</template>
5 5
       <div>
6
-        <el-form :inline="true" :model="formInline" class="demo-form-inline">
6
+        <el-form :inline="true" :model="formInline" class="demo-form-inline" id="formLabel">
7 7
           <el-form-item label="报警时间">
8 8
             <el-date-picker
9 9
               v-model="formInline.scanTime"
@@ -56,7 +56,7 @@
56 56
           </el-form-item>
57 57
         </el-form>
58 58
 
59
-        <el-table :data="cfInfoList" border style="width: 100%">
59
+        <el-table :data="cfInfoList" border style="width: 100%" :header-cell-style="{background:'#0064b9',color:'#c9f5fa'}">
60 60
           <el-table-column
61 61
             prop="branchOffice"
62 62
             label="所属分公司"

+ 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>

+ 2 - 17
src/views/demo/dataQuery/index.vue

@@ -30,7 +30,7 @@
30 30
           <div class="right_main">
31 31
             <div class="right_title"><i class="fa fa-bar-chart" aria-hidden="true" style="padding-right:5px"></i>数据查询</div>
32 32
             <div class="right_table">
33
-          <el-form :inline="true" :model="formInline" class="demo-form-inline">
33
+          <el-form :inline="true" :model="formInline" class="demo-form-inline" id="formLabel">
34 34
             <el-form-item label="扫描时间">
35 35
               <el-date-picker
36 36
                 v-model="formInline.scanTime"
@@ -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
 }

+ 35 - 13
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,17 +17,24 @@
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
28 35
             >
29 36
           </div>
30
-          <el-form :model="formData" ref="formData">
37
+          <el-form :model="formData" ref="formData" id="formLabel">
31 38
             <el-row style="margin-top: 10px">
32 39
               <el-col :span="24" :offset="2">
33 40
                 <el-form-item label="报警启用状态:">
@@ -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>

+ 29 - 9
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,12 +17,19 @@
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">
25
-          <el-form :inline="true" :model="formInline" class="demo-form-inline">
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">
32
+          <el-form :inline="true" :model="formInline" class="demo-form-inline" id="formLabel">
26 33
             <el-form-item label="设备名称:">
27 34
               <el-input
28 35
                 v-model="formInline.sbName"
@@ -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;

+ 29 - 10
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,12 +17,19 @@
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">
25
-          <el-form :inline="true" :model="formInline" class="demo-form-inline">
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">
32
+          <el-form :inline="true" :model="formInline" class="demo-form-inline" id="formLabel">
26 33
             <el-form-item label="设备名称:">
27 34
               <el-input
28 35
                 v-model="formInline.sbName"
@@ -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;

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

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

+ 1 - 1
src/views/demo/warehouseShow/warehouseInfo/warehouseInfo-check.vue

@@ -20,7 +20,7 @@
20 20
           <div>保管员信息</div>
21 21
         </div>
22 22
 
23
-        <el-form :inline="true" :model="form" class="demo-form-inline">
23
+        <el-form :inline="true" :model="form" class="demo-form-inline" label-width="130px">
24 24
           <div class="middle">
25 25
             <el-form-item label="姓名:">
26 26
               <el-select v-model="form.name" placeholder="请选择">

+ 54 - 0
src/views/system/index/page.vue

@@ -49,6 +49,7 @@
49 49
     <el-row class="content contentX">
50 50
       <div class="page-content left-content">
51 51
         <span class="content-title">出入库数量趋势</span>
52
+        <div id="myChart" :style="{ width: '400px', height: '250px' }"></div>
52 53
       </div>
53 54
       <div class="page-content right-content">
54 55
         <span class="content-title">库区报警排名</span>
@@ -74,8 +75,58 @@ export default {
74 75
         return "two-row";
75 76
       }
76 77
     },
78
+    drawLine() {
79
+      // 基于准备好的dom,初始化echarts实例
80
+      let myChart = this.$echarts.init(document.getElementById("myChart"));
81
+      // 绘制图表
82
+      myChart.setOption({
83
+        // title: { text: "在Vue中使用echarts" },
84
+        tooltip: {},
85
+        legend: {
86
+          data: ["出库", "入库"],
87
+        },
88
+        xAxis: {
89
+          type: "category",
90
+          boundaryGap: false,
91
+          data: [
92
+            "1月",
93
+            "2月",
94
+            "3月",
95
+            "4月",
96
+            "5月",
97
+            "6月",
98
+            "7月",
99
+            "8月",
100
+            "9月",
101
+            "10月",
102
+            "11月",
103
+            "12月",
104
+          ],
105
+        },
106
+        yAxis: { type: "value" },
107
+        series: [
108
+          {
109
+            name: "出库",
110
+            type: "line",
111
+            stack: "Total",
112
+            smooth: true,
113
+            data: [120, 132, 101, 134, 90, 230, 210, 120, 132, 101, 134, 90],
114
+          },
115
+          {
116
+            name: "入库",
117
+            type: "line",
118
+            stack: "Total",
119
+            smooth: true,
120
+            data: [220, 182, 191, 234, 290, 330, 310, 120, 132, 101, 134, 90],
121
+          },
122
+        ],
123
+      });
124
+    },
77 125
   },
78 126
   created() {},
127
+  mounted() {
128
+    this.drawLine();
129
+  },
79 130
 };
80 131
 </script>
81 132
 
@@ -166,6 +217,9 @@ export default {
166 217
   .tzggListLi {
167 218
     float: right;
168 219
   }
220
+  #myChart {
221
+    margin: 0 auto;
222
+  }
169 223
   // .btn-group {
170 224
   //   color: $color-text-placehoder;
171 225
   //   font-size: 12px;