田源
2024-12-31 bea440900387207041324ae04969036df1521467
整合代码
已修改3个文件
18 ■■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/config/website.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/page/login/userlogin.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/config/website.js
@@ -33,7 +33,7 @@
  },
  //配置菜单的属性
  menu: {
    iconDefault: 'iconoir:home',
    iconDefault: 'codicon:gear',
    props: {
      label: 'name',
      path: 'path',
Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue
@@ -6,17 +6,19 @@
                    :class="{'is-active':vaildActive(item)}"
                    :index="item[pathKey]"
                    @click="open(item)">
        <i :class="item[iconKey]"></i>
        <div style="display: flex">
          <icon-show :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
        <span slot="title"
              :alt="item[pathKey]">{{ generateTitle(item) }}</span>
                :alt="item[pathKey]"
                :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span>
        </div>
      </el-menu-item>
      <el-submenu v-else-if="!validatenull(item[childrenKey])&&vaildRoles(item)"
                  :key="item[labelKey]"
                  :index="item[pathKey]">
        <template slot="title">
          <div style="display: flex">
            <icon-show v-if="item[iconKey]" :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
            <i v-else class="el-icon-setting" :font-size="iconSize"></i>
            <icon-show :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
            <span slot="title"
                  :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span>
          </div>
@@ -28,8 +30,7 @@
                        :index="child[pathKey],cindex"
                        @click="open(child)">
            <div style="display: flex">
              <icon-show v-if="child[iconKey]" :name="child[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
              <i v-else class="el-icon-setting" :font-size="iconSize"></i>
              <icon-show :name="child[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
              <span slot="title">{{ generateTitle(child) }}</span>
            </div>
          </el-menu-item>
Source/plt-web/plt-web-ui/src/page/login/userlogin.vue
@@ -120,7 +120,7 @@
        //角色ID
        roleId: "",
        //用户名
        username: "admin",
        username: "",
        //密码
        password: "",
        selectInput: '',
@@ -158,6 +158,7 @@
  },
  created() {
    // this.getTenant();
    this.loginForm.username = this.userInfo.userName
  },
  mounted() {
    //在mounted获取首页下拉菜单数据