Browse Source

侧边栏改造

yangchengfei 5 months ago
parent
commit
176981cfc7

+ 0 - 44
src/api/receiptConfirmation/index.js

@@ -66,47 +66,3 @@ export function updateInConfirm(data) {
66 66
         data,
67 67
     })
68 68
 }
69
-
70
-// ---------------------------------利息维护------------------------------------------
71
-// 查询利息维护信息列表
72
-export function maintainGelList(query) {
73
-    return request({
74
-        url: `${depot_intelligent}/business-fs-interest-maintain/getList`,
75
-        method: "get",
76
-        params: query || {},
77
-    })
78
-}
79
-
80
-// 利息维护详情
81
-export function maintainGetById(id) {
82
-    return request({
83
-        url: `${depot_intelligent}/business-fs-interest-maintain/getById/${id}`,
84
-        method: 'get',
85
-    })
86
-}
87
-
88
-// 利息维护新增
89
-export function maintainSave(data) {
90
-    return request({
91
-        url: `${depot_intelligent}/business-fs-interest-maintain/save`,
92
-        method: "post",
93
-        data: data,
94
-    })
95
-}
96
-
97
-// 利息维护修改
98
-export function maintainUpdate(data) {
99
-    return request({
100
-        url: `${depot_intelligent}/business-fs-interest-maintain/update`,
101
-        method: 'put',
102
-        data,
103
-    })
104
-}
105
-
106
-// 利息维护删除
107
-export function maintainDelete(id) {
108
-    return request({
109
-        url: `${depot_intelligent}/business-fs-interest-maintain/delete/${id}`,
110
-        method: 'delete',
111
-    })
112
-}

BIN
src/assets/theme/leftbg.png


+ 7 - 2
src/page/Layout/layout.vue

@@ -10,7 +10,12 @@
10 10
       <!-- <div class="project-title iconfont iconchubeiliangguanli"> 储备粮管理</div> -->
11 11
     </el-row>
12 12
     <el-row>
13
-      <el-col :span="4" :style="{ height: wrapHeight + 'px' }" id="nav">
13
+      <el-col
14
+        :span="4"
15
+        :style="{ height: wrapHeight + 'px' }"
16
+        id="nav"
17
+        class="menuList-wrap"
18
+      >
14 19
         <MenuList></MenuList>
15 20
       </el-col>
16 21
       <el-col :span="20" id="main" :style="{ height: wrapHeight + 'px' }">
@@ -65,7 +70,7 @@ export default {
65 70
     const isProd = process.env.NODE_ENV === "production";
66 71
     // let url;
67 72
     if (!isProd) {
68
-      this.url = `http://101.36.160.210:31055/crk/?k_username=${u}&k_password=${p}`;
73
+      this.url = `http://101.36.160.210:31055/crk/#/welcome/?username=${u}&password=${p}`;
69 74
     } else {
70 75
       this.url = `http://172.18.93.228:80/#/welcome?username=${u}&password=${p}`;
71 76
     }

+ 10 - 13
src/page/Layout/menuList/menuItem.vue

@@ -6,7 +6,7 @@
6 6
       :item="firstItem"
7 7
       :index="firstIndex + ''"
8 8
       @handle-select="handleSelect"
9
-      />
9
+    />
10 10
   </div>
11 11
 </template>
12 12
 
@@ -19,36 +19,34 @@ export default {
19 19
   name: "menuItem",
20 20
   props: {
21 21
     routeList: {
22
-      type: Array
23
-    }
22
+      type: Array,
23
+    },
24 24
   },
25
-  components: {MyMenuItem},
25
+  components: { MyMenuItem },
26 26
   data() {
27 27
     return {};
28 28
   },
29
-  created() {
30
-
31
-  },
29
+  created() {},
32 30
   methods: {
33 31
     handleSelect(item) {
34 32
       sessionStorage.setItem("searchData", null);
35 33
       sessionStorage.setItem("searchDataTab1", null);
36 34
       sessionStorage.setItem("pageData", null);
37 35
       sessionStorage.setItem("resourceCode", item.resourceCode);
38
-    }
39
-  }
36
+    },
37
+  },
40 38
 };
41 39
 </script>
42 40
 
43
-<style scoped>
41
+<style scoped lang="scss">
44 42
 .router-link-active {
45 43
   text-decoration: none;
46 44
 }
47 45
 .el-menu-item,
48 46
 .el-submenu /deep/ .el-submenu__title {
49 47
   margin: 1px 0;
50
-  background: url("../../../assets/wisdom_images/menuBottomLine.png") no-repeat
51
-    bottom;
48
+  /* background: url("../../../assets/wisdom_images/menuBottomLine.png") no-repeat
49
+    bottom; */
52 50
 }
53 51
 .iconStyle {
54 52
   color: #0357ab !important;
@@ -64,7 +62,6 @@ export default {
64 62
   padding-left: 55px !important;
65 63
 }
66 64
 .menuSecondary2 {
67
-
68 65
 }
69 66
 
70 67
 .menuSecondaryWrap2:before {

+ 30 - 17
src/page/Layout/menuList/menuList.vue

@@ -4,13 +4,22 @@
4 4
       <el-menu
5 5
         router
6 6
         :default-active="defaultActive"
7
+        :default-openeds="defaultOpened"
8
+        :background-color="theme.menuBg"
9
+        :text-color="theme.menuText"
10
+        :unique-opened="false"
11
+        active-text-color="#fff"
12
+      >
13
+        <!-- <el-menu
14
+        router
15
+        :default-active="defaultActive"
7 16
         class="el-menu-vertical-demo"
8 17
         background-color="#F4F5F8"
9 18
         text-color="#797979"
10 19
         active-text-color="#fff"
11 20
         :default-openeds="defaultOpened"
12 21
         :unique-opened="true"
13
-      >
22
+      > -->
14 23
         <Menu-item :routeList="routeList"></Menu-item>
15 24
       </el-menu>
16 25
     </el-scrollbar>
@@ -20,6 +29,7 @@
20 29
 <script>
21 30
 import MenuItem from "./menuItem";
22 31
 import { mapGetters } from "vuex";
32
+import theme from "@/style/theme.scss";
23 33
 
24 34
 export default {
25 35
   name: "menuList",
@@ -27,37 +37,40 @@ export default {
27 37
     return {
28 38
       routeList: [],
29 39
       defaultActive: "",
30
-      defaultOpened: ['0'],
40
+      defaultOpened: ["0"],
31 41
     };
32 42
   },
33 43
   components: {
34 44
     MenuItem,
35 45
   },
36 46
   computed: {
47
+    theme() {
48
+      return theme;
49
+    },
37 50
     ...mapGetters({
38 51
       leftMenuList: "leftMenuList",
39
-      defaultActiveUrl: 'defaultActiveUrl',
52
+      defaultActiveUrl: "defaultActiveUrl",
40 53
     }),
41
-    firstLevelName () {
42
-      if((! this.leftMenuList) || this.leftMenuList.length <= 0) return ''
43
-      return this.leftMenuList[0].resourceName
44
-    }
54
+    firstLevelName() {
55
+      if (!this.leftMenuList || this.leftMenuList.length <= 0) return "";
56
+      return this.leftMenuList[0].resourceName;
57
+    },
45 58
   },
46 59
   watch: {
47 60
     leftMenuList(n, o) {
48
-      this.defaultActive = this.defaultActiveUrl
49
-      this.routeList = n
50
-      console.log('菜单修改', n, this.defaultActive)
61
+      this.defaultActive = this.defaultActiveUrl;
62
+      this.routeList = n;
63
+      console.log("菜单修改", n, this.defaultActive);
51 64
     },
52 65
     defaultActiveUrl(n, o) {
53
-      this.defaultActive = this.defaultActiveUrl
54
-    }
66
+      this.defaultActive = this.defaultActiveUrl;
67
+    },
55 68
   },
56 69
   created() {
57 70
     // alert("99");
58 71
     // console.log(JSON.parse(sessionStorage.getItem('leftMenuList')))
59
-    this.routeList = this.routes()
60
-    console.log('left menu list', this.routeList)
72
+    this.routeList = this.routes();
73
+    console.log("left menu list", this.routeList);
61 74
     let href = window.location.href;
62 75
     // console.log(href, "href");
63 76
     // console.log(this.$route.path, "this.$route.path");
@@ -90,14 +103,14 @@ export default {
90 103
 };
91 104
 </script>
92 105
 
93
-<style scoped lang="scss">
106
+<style  lang="scss">
94 107
 .live-scrollbar {
95 108
   height: 100%;
96 109
 }
97 110
 
98 111
 /*   隐藏 横向滚动条*/
99
-.el-scrollbar /deep/ .el-scrollbar__wrap {
100
-  overflow-x: hidden;
112
+.el-scrollbar__wrap {
113
+  overflow-x: hidden !important;
101 114
 }
102 115
 .el-scrollbar /deep/ .is-horizontal {
103 116
   display: none;

+ 4 - 0
src/page/Layout/menuList/myMenuItem.vue

@@ -36,3 +36,7 @@ export default {
36 36
   }
37 37
 };
38 38
 </script>
39
+
40
+<style lang="scss" scoped>
41
+
42
+</style>

+ 1 - 1
src/page/home.vue

@@ -158,7 +158,7 @@ export default {
158 158
     const isProd = process.env.NODE_ENV === "production";
159 159
     // let url;
160 160
     if (!isProd) {
161
-      this.url = `http://101.36.160.210:31055/crk/?k_username=${u}&k_password=${p}`;
161
+      this.url = `http://101.36.160.210:31055/crk/#/welcome/?username=${u}&password=${p}`;
162 162
     } else {
163 163
       this.url = `http://172.18.93.228:80/#/welcome?username=${u}&password=${p}`;
164 164
     }

+ 2 - 1
src/style/common/variables.scss

@@ -26,4 +26,5 @@ $dialog-header:#006bd5!default;
26 26
 $dialog-tit-color:#ffffff!default;
27 27
 $dialog-con-color:#525357!default;
28 28
 $breadcrumb-bg:#49a2fa!default;
29
-$breadcrumb-color:#ffffff!default;
29
+// $breadcrumb-bg:#f5f9fe!default;
30
+$breadcrumb-color:#ffffff!default;

+ 52 - 45
src/style/style.scss

@@ -11,10 +11,10 @@ body {
11 11
 }
12 12
 
13 13
 .el-button--default {
14
-  height: 34px;
15
-  padding: 0 10px;
16
-  border-radius: 4px;
17
-  vertical-align: middle;
14
+	height: 34px;
15
+	padding: 0 10px;
16
+	border-radius: 4px;
17
+	vertical-align: middle;
18 18
 }
19 19
 
20 20
 .el-table thead {
@@ -271,38 +271,41 @@ body {
271 271
 	margin-left: 136px;
272 272
 }
273 273
 
274
-.el-dialog{
275
-  top: 25px;
276
-  overflow: hidden;
277
-  height: calc(100vh - 60px);
274
+.el-dialog {
275
+	top: 25px;
276
+	overflow: hidden;
277
+	height: calc(100vh - 60px);
278 278
 }
279
+
279 280
 //普通弹窗样式
280 281
 .el-dialog .el-dialog__header {
281 282
 	background-color: $dialog-header;
282 283
 	padding: 20px 10px 9px;
283 284
 }
285
+
284 286
 .el-dialog .el-dialog__body {
285
-  height: calc(100% - 170px);
286
-  overflow: auto;
287
+	height: calc(100% - 170px);
288
+	overflow: auto;
287 289
 }
290
+
288 291
 /* 整个滚动条 */
289 292
 .el-dialog .el-dialog__body::-webkit-scrollbar {
290
-  width: 8px;
291
-  /* 设置滚动条的宽度 */
293
+	width: 8px;
294
+	/* 设置滚动条的宽度 */
292 295
 }
293 296
 
294 297
 /* 滚动条轨道 */
295 298
 .el-dialog .el-dialog__body::-webkit-scrollbar-track {
296
-  background: #f1f1f1;
297
-  border-radius: 4px;
298
-  /* 设置轨道的背景颜色 */
299
+	background: #f1f1f1;
300
+	border-radius: 4px;
301
+	/* 设置轨道的背景颜色 */
299 302
 }
300 303
 
301 304
 /* 滚动条的滑块 */
302 305
 .el-dialog .el-dialog__body::-webkit-scrollbar-thumb {
303
-  background: #888;
304
-  border-radius: 4px;
305
-  /* 设置滑块的背景颜色 */
306
+	background: #888;
307
+	border-radius: 4px;
308
+	/* 设置滑块的背景颜色 */
306 309
 }
307 310
 
308 311
 .el-dialog .el-dialog__title {
@@ -419,36 +422,40 @@ body {
419 422
 }
420 423
 
421 424
 .static-table {
422
-  width: 100%;
423
-  //border: 1px solid #dddddd;
424
-  border-collapse: collapse;
425
-  td {
426
-    border: 1px solid #dddddd;
427
-    height: 51px;
428
-    text-align: center;
429
-    vertical-align: middle;
430
-  }
431
-  tr:nth-child(odd) {
432
-    background-color: #f9f9f9;
433
-  }
434
-  tr:nth-child(even) {
435
-    background-color: #ffffff;
436
-  }
437
-  tr:hover {
438
-    background-color: #ecf3f8;
439
-  }
425
+	width: 100%;
426
+	//border: 1px solid #dddddd;
427
+	border-collapse: collapse;
428
+
429
+	td {
430
+		border: 1px solid #dddddd;
431
+		height: 51px;
432
+		text-align: center;
433
+		vertical-align: middle;
434
+	}
435
+
436
+	tr:nth-child(odd) {
437
+		background-color: #f9f9f9;
438
+	}
439
+
440
+	tr:nth-child(even) {
441
+		background-color: #ffffff;
442
+	}
443
+
444
+	tr:hover {
445
+		background-color: #ecf3f8;
446
+	}
440 447
 }
441 448
 
442 449
 .store-static-table {
443
-  td {
444
-    height: 75px;
450
+	td {
451
+		height: 75px;
445 452
 
446
-    .el-form-item {
447
-      margin: 5px 5px;
448
-    }
449
-  }
453
+		.el-form-item {
454
+			margin: 5px 5px;
455
+		}
456
+	}
450 457
 
451
-  /deep/ .el-form-item__error {
452
-    width: 100%;
453
-  }
458
+	/deep/ .el-form-item__error {
459
+		width: 100%;
460
+	}
454 461
 }

+ 95 - 0
src/style/theme.scss

@@ -0,0 +1,95 @@
1
+$blueColor: #295dac;
2
+$blueHoverColor: #3866ab;
3
+$whiteColor: #ffffff;
4
+
5
+$menuText: #ffffff;
6
+$menuActiveText: #295dac;
7
+$menuBg: rgba(0, 0, 0, 0);
8
+$subMenuActiveText: #ffffff;
9
+
10
+:export {
11
+    menuText: $menuText;
12
+    menuActiveText: $menuActiveText;
13
+    menuBg: $menuBg;
14
+    subMenuActiveText: $subMenuActiveText;
15
+    blueColor: $blueColor;
16
+}
17
+
18
+
19
+.menuList-wrap {
20
+    background: url(./../assets/theme/leftbg.png);
21
+
22
+    .el-menu-item.is-active {
23
+        background-color: $whiteColor !important;
24
+        color: $menuActiveText !important;
25
+    }
26
+
27
+    .router-link-active .el-menu-item {
28
+        color: $blueColor !important;
29
+        background-color: $whiteColor !important;
30
+    }
31
+
32
+    .navbar {
33
+        color: $whiteColor;
34
+    }
35
+
36
+    .el-menu-item {
37
+        font-size: 16px;
38
+    }
39
+
40
+    //menu
41
+    .el-submenu__title {
42
+        font-size: 16px !important;
43
+
44
+    }
45
+
46
+    .el-submenu__title i {
47
+        background: transparent !important;
48
+        color: $whiteColor;
49
+    }
50
+
51
+    .el-submenu__title i {
52
+        font-size: 16px;
53
+        margin-left: 13px !important;
54
+    }
55
+
56
+    .live-scrollbar .el-submenu .el-menu-item:hover {
57
+        background-color: $whiteColor !important;
58
+        color: $blueColor !important;
59
+    }
60
+
61
+    .router-link-active .el-menu-item .is-active {
62
+        background-color: $whiteColor !important;
63
+        color: $blueColor !important;
64
+    }
65
+
66
+    .router-link-active .el-menu-item:hover {
67
+        color: $blueColor !important;
68
+        background-color: $whiteColor !important;
69
+    }
70
+
71
+    // menu hover
72
+    .submenu-title-noDropdown,
73
+    .el-submenu__title {
74
+        background: transparent !important;
75
+
76
+        &:hover {
77
+            background-color: rgba(20, 74, 156, 0.4) !important;
78
+        }
79
+    }
80
+
81
+    .is-active>.el-submenu__title {
82
+        background: transparent !important;
83
+        color: $whiteColor !important;
84
+
85
+    }
86
+
87
+    .el-submenu .is-active .is-opened {
88
+        color: $blueColor !important;
89
+        background-color: $whiteColor !important;
90
+    }
91
+
92
+    .el-submenu .el-menu-item:hover {
93
+        background-color: rgba(20, 74, 156, 0.4) !important;
94
+    }
95
+}