Fixiaobai
2023-10-24 8b158df0573738110110fa045dab995fa77b9da2
	modified:   src/page/index/logo.vue
modified: src/page/index/sidebar/sidebarItem.vue
已修改2个文件
31 ■■■■ 文件已修改
src/page/index/logo.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/page/index/sidebar/sidebarItem.vue 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/page/index/logo.vue
@@ -12,7 +12,7 @@
            style="width: 220px;"
            src="/images/Sun-Mes-Logo-Normal.png"
        /></span>-->
        <div key="1" style="width:220px;height:60px;background-color:#875a7b;position: relative;">
        <div key="2" style="width:220px;height:60px;background-color:#875a7b;position: relative;">
          <el-image
            v-if="logSrc != null"
            style="width:200px;position: absolute;"
src/page/index/sidebar/sidebarItem.vue
@@ -1,13 +1,12 @@
<template>
  <div class="menu-wrapper">
    <template v-for="(item,index) in menus">
      <el-menu-item v-if="validatenull(item[childrenKey]) && vaildRoles(item)" :index="item[pathKey]"
        :key="index" :class="{ 'is-active': vaildAvtive(item) }" @click="open(item)">
    <template v-for="(item, index) in menu">
      <el-menu-item v-if="validatenull(item[childrenKey]) && vaildRoles(item)" :index="item[pathKey]" :key="index"
        :class="{ 'is-active': vaildAvtive(item) }" @click="open(item)">
        <i :class="item[iconKey]" />
        <span slot="title" :alt="item[pathKey]">{{ item[labelKey] }}</span>
      </el-menu-item>
      <el-submenu v-else-if="!validatenull(item[childrenKey]) && vaildRoles(item)" :index="item[pathKey]"
        :key="index">
      <el-submenu v-else-if="!validatenull(item[childrenKey]) && vaildRoles(item)" :index="item[pathKey]" :key="index">
        <template slot="title">
          <i :class="item[iconKey]" />
          <span slot="title" :class="{ 'el-menu--display': collapse && first }">{{ item[labelKey] }}</span>
@@ -66,8 +65,8 @@
    // this.filterMenus('基础',['POC','盘具维护','IFS日志'])
  },
  mounted() {
    this.filterMenus('基础',['POC','盘具维护','IFS日志'])
   },
    // this.filterMenus('基础',['POC','盘具维护','IFS日志'])
  },
  computed: {
    ...mapGetters(['roles']),
    labelKey() {
@@ -88,7 +87,7 @@
  },
  methods: {
    filterMenus(fatherName, childrens) {
      this.menus=this.menu
      this.menus = this.menu
      let start_menu = JSON.parse(JSON.stringify(this.menus));
      let base = start_menu.filter(item => {
        return item.label === fatherName
@@ -97,14 +96,14 @@
        return !childrens.includes(item.label);
      })
      this.menus.forEach(element => {
      if (element.label === '基础') {
        element.children = []
        element.children = up_base
      }
    });
        if (element.label === '基础') {
          element.children = []
          element.children = up_base
        }
      });
    },
    filterFatherMenus(menuName){
    filterFatherMenus(menuName) {
    },
    dragOpen(item) {
      var routeData = this.$router.resolve({