Browse Source

sidebar-item-title

noToken
安虹睿 1 year ago
parent
commit
96423a0971
  1. 18
      PC/InterFace.Dash/src/layout/components/Sidebar/SidebarItem.vue
  2. 2
      PC/UI.WinIn.FasterZ.Store/public/config.js
  3. 18
      PC/UI.WinIn.FasterZ.Store/src/layout/components/Sidebar/SidebarItem.vue

18
PC/InterFace.Dash/src/layout/components/Sidebar/SidebarItem.vue

@ -3,14 +3,16 @@
<!-- 最后一层菜单 --> <!-- 最后一层菜单 -->
<template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"> <template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow">
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)"> <app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)">
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}"> <!-- <el-tooltip class="item" effect="dark" :content="onlyOneChild.meta.title" placement="right"> -->
<!-- 系统首页为最后一层且带图标 --> <el-menu-item :title="onlyOneChild.meta.title" :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}">
<item v-if="onlyOneChild.meta.outerFirst" :isSkip="item.meta && item.meta.roles == 'skip'" :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" /> <!-- 系统首页为最后一层且带图标 -->
<!-- 是二级也是最后一级且带菱形 --> <item v-if="onlyOneChild.meta.outerFirst" :isSkip="item.meta && item.meta.roles == 'skip'" :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" />
<item v-else-if="item.level=='2'" :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" :punctuation="'rhombus'"/> <!-- 是二级也是最后一级且带菱形 -->
<!-- 其他为最后一层且不带图标 --> <item v-else-if="item.level=='2'" :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" :punctuation="'rhombus'"/>
<item v-else :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" /> <!-- 其他为最后一层且不带图标 -->
</el-menu-item> <item v-else :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" />
</el-menu-item>
<!-- </el-tooltip> -->
</app-link> </app-link>
</template> </template>

2
PC/UI.WinIn.FasterZ.Store/public/config.js

@ -1,5 +1,7 @@
// dev_win // dev_win
// window.SITE_CONFIG['baseApi'] = 'http://192.168.0.190:30001' // window.SITE_CONFIG['baseApi'] = 'http://192.168.0.190:30001'
// window.SITE_CONFIG['authApi'] = 'http://192.168.0.190:30001'
// window.SITE_CONFIG['userApi'] = 'http://192.168.0.190:30001'
window.SITE_CONFIG['baseApi'] = 'http://dev.ccwin-in.com:60065' window.SITE_CONFIG['baseApi'] = 'http://dev.ccwin-in.com:60065'
window.SITE_CONFIG['authApi'] = 'http://dev.ccwin-in.com:60065' window.SITE_CONFIG['authApi'] = 'http://dev.ccwin-in.com:60065'
window.SITE_CONFIG['userApi'] = 'http://dev.ccwin-in.com:60064' window.SITE_CONFIG['userApi'] = 'http://dev.ccwin-in.com:60064'

18
PC/UI.WinIn.FasterZ.Store/src/layout/components/Sidebar/SidebarItem.vue

@ -3,14 +3,16 @@
<!-- 最后一层菜单 --> <!-- 最后一层菜单 -->
<template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"> <template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow">
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)"> <app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)">
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}"> <!-- <el-tooltip class="item" effect="dark" :content="onlyOneChild.meta.title" placement="right"> -->
<!-- 系统首页为最后一层且带图标 --> <el-menu-item :title="onlyOneChild.meta.title" :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}">
<item v-if="onlyOneChild.meta.outerFirst" :isSkip="item.meta && item.meta.roles == 'skip'" :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" /> <!-- 系统首页为最后一层且带图标 -->
<!-- 是二级也是最后一级且带菱形 --> <item v-if="onlyOneChild.meta.outerFirst" :isSkip="item.meta && item.meta.roles == 'skip'" :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" />
<item v-else-if="item.level=='2'" :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" :punctuation="'rhombus'"/> <!-- 是二级也是最后一级且带菱形 -->
<!-- 其他为最后一层且不带图标 --> <item v-else-if="item.level=='2'" :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" :punctuation="'rhombus'"/>
<item v-else :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" /> <!-- 其他为最后一层且不带图标 -->
</el-menu-item> <item v-else :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" />
</el-menu-item>
<!-- </el-tooltip> -->
</app-link> </app-link>
</template> </template>

Loading…
Cancel
Save