Browse Source

常用功能颜色配置

master_bak
dai 3 years ago
parent
commit
d60fb32d71
  1. 7
      src/assets/scss/modules/search.scss
  2. 6
      src/router/index.js
  3. 12
      src/views/main-navbar.vue
  4. 4
      src/views/main-sidebar-sub-menu.vue
  5. 713
      src/views/modules/shequ/index.vue

7
src/assets/scss/modules/search.scss

@ -143,8 +143,7 @@
width: 78px;
height: 78px;
&::before {
content: "";
.icon-wrap {
position: absolute;
z-index: 0;
display: block;
@ -170,8 +169,8 @@
position: relative;
display: block;
margin: auto;
width: 78px;
height: 78px;
width: 64px;
height: 64px;
object-fit: cover;
}
}

6
src/router/index.js

@ -123,7 +123,7 @@ function cookApiDataItem(item) {
}
let allChildrenUrl = n2one(item.children)
.filter((i) => i.url != "")
.filter((i) => i.url != "" && i.showFlag == 1)
.map((i) => i.url);
console.log("))))))))))))", allChildrenUrl);
@ -132,6 +132,10 @@ function cookApiDataItem(item) {
item.url = allChildrenUrl[0];
}
}
// item.children.forEach((item) => {
// item.color = "#f00";
// return item;
// });
return item;
}

12
src/views/main-navbar.vue

@ -22,10 +22,7 @@
@click="$store.state.sidebarFold = !$store.state.sidebarFold"
>
<svg
class="
icon-svg
aui-navbar__icon-menu aui-navbar__icon-menu--switch
"
class="icon-svg aui-navbar__icon-menu aui-navbar__icon-menu--switch"
aria-hidden="true"
>
<use xlink:href="#icon-outdent"></use>
@ -51,6 +48,7 @@
</el-menu-item>
<el-menu-item
v-show="menu.showFlag==1"
v-for="(menu, idx) in $store.state.sidebarMenuList"
:key="menu.id"
:menu="menu"
@ -169,7 +167,11 @@ export default {
(item) => item.meta.menuId === menuId
)[0];
if (route) {
this.$router.push({ name: route.name });
if (route.meta.iframeURL.endsWith("【跳转新页面】")) {
return window.open(route.meta.iframeURL.slice(0, -7));
} else {
this.$router.push({ name: route.name });
}
}
this.$store.state.LevelOneMenuActiveName = menuId;
this.$store.state.sidebarActiveSubMenuList =

4
src/views/main-sidebar-sub-menu.vue

@ -1,6 +1,7 @@
<template>
<div v-if="menu.showFlag">
<el-submenu
v-show="menu.showFlag == 1"
v-if="menu.children && menu.children.length >= 1"
:index="menu.id"
ref="subMenu"
@ -13,6 +14,7 @@
<span>{{ menu.name }}</span>
</template>
<sub-menu
v-show="item.showFlag == 1"
v-for="item in menu.children"
:key="item.id"
:menu="item"
@ -51,7 +53,7 @@ export default {
if (route.meta.iframeURL.endsWith("【跳转新页面】")) {
window.open(route.meta.iframeURL.slice(0, -7));
} else {
this.$router.push({ name: route.name })
this.$router.push({ name: route.name });
}
}
},

713
src/views/modules/shequ/index.vue

File diff suppressed because it is too large
Loading…
Cancel
Save