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

6
src/router/index.js

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

12
src/views/main-navbar.vue

@ -22,10 +22,7 @@
@click="$store.state.sidebarFold = !$store.state.sidebarFold" @click="$store.state.sidebarFold = !$store.state.sidebarFold"
> >
<svg <svg
class=" class="icon-svg aui-navbar__icon-menu aui-navbar__icon-menu--switch"
icon-svg
aui-navbar__icon-menu aui-navbar__icon-menu--switch
"
aria-hidden="true" aria-hidden="true"
> >
<use xlink:href="#icon-outdent"></use> <use xlink:href="#icon-outdent"></use>
@ -51,6 +48,7 @@
</el-menu-item> </el-menu-item>
<el-menu-item <el-menu-item
v-show="menu.showFlag==1"
v-for="(menu, idx) in $store.state.sidebarMenuList" v-for="(menu, idx) in $store.state.sidebarMenuList"
:key="menu.id" :key="menu.id"
:menu="menu" :menu="menu"
@ -169,7 +167,11 @@ export default {
(item) => item.meta.menuId === menuId (item) => item.meta.menuId === menuId
)[0]; )[0];
if (route) { 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.LevelOneMenuActiveName = menuId;
this.$store.state.sidebarActiveSubMenuList = this.$store.state.sidebarActiveSubMenuList =

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

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