yaozc2021
2024-12-26 7e8b52c9cc2643be195d53d95502b1954776a1d0
Merge branch 'wcd-2412-update' of http://192.168.1.110:5678/r/pms-upgrade into wcd
1 files added
2 files modified
56 ■■■■■ changed files
eladmin-web-master/src/layout/components/Sidebar/index.vue 16 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/router/routers.js 10 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/ifamepage.vue 30 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/layout/components/Sidebar/index.vue
@@ -12,7 +12,14 @@
        unique-opened
        mode="vertical"
      >
        <sidebar-item v-for="route in sidebarRouters" :key="route.path" :item="route" :base-path="route.path" />
        <!-- <sidebar-item v-for="route in sidebarRouters" :key="route.path" :item="route" :base-path="route.path" /> -->
        <sidebar-item
          v-for="route in sidebarRouters"
          :key="route.path"
          :item="route"
          :base-path="route.path"
          @click.native="handleMenuClick(route)"
        />
      </el-menu>
    </el-scrollbar>
  </div>
@@ -49,6 +56,13 @@
    isCollapse() {
      return !this.sidebar.opened
    }
  },
  methods: {
    handleMenuClick(menu) {
      if (menu.meta && menu.meta.isNewWindow) {
        window.open(this.$router.resolve({ path: menu.path }).href, '_blank');
      }
    }
  }
}
</script>
eladmin-web-master/src/router/routers.js
@@ -58,6 +58,16 @@
      }
    ]
  },
  {
    path: '/yhkj',
    name: 'IframePage',
    meta: {
        title: '以恒官网',
        icon: 'user',
        isNewWindow: true
    },
    component: () => import('@/views/ifamepage.vue')
}
]
export default new Router({
eladmin-web-master/src/views/ifamepage.vue
New file
@@ -0,0 +1,30 @@
<template>
    <div class="iframe-container">
      <iframe :src="iframeSrc" class="iframe-content"></iframe>
  </div>
  </template>
  <script>
  export default {
    data() {
      return {
        // iframeSrc: 'https://www.baidu.com/index.htm'
        iframeSrc: 'http://114.116.101.63:30800/'
      };
    }
  };
  </script>
  <style scoped>
  .iframe-container {
    width: 100%;
    height: 100%;
    overflow: hidden; /* 隐藏外部容器的滚动条 */
  }
  .iframe-content {
    width: 100%;
    height: 100%;
    border: none;
    overflow: auto; /* 保留 iframe 的滚动条 */
  }
  </style>