zhangzengfei
2022-07-20 4a800a8fc83c6bd1f86a8e847b079a51a7532c09
src/pages/settings/index/index.vue
@@ -216,35 +216,6 @@
        <div class="permission" v-if="inAccountDetail && isSetPermission">
          <div class="title">权限管理</div>
          <!-- <div class="line-wrap" v-for="item in sysMenus" :key="item.id">
            <div class="line">
              <div class="name">{{ item.name }}</div>
              <el-switch
                v-model="item.selected"
                active-color="rgba(61, 104, 225, 1)"
                @change="fatherChange(item)"
              >
              </el-switch>
            </div>
            <div v-if="item.children">
              <div
                class="line"
                style="margin-left: 55px"
                v-for="x in item.children"
                :key="x.id"
              >
                <div class="name">{{ x.name }}</div>
                <el-switch
                  v-model="x.selected"
                  active-color="rgba(61, 104, 225, 1)"
                  @change="childrenChange(item)"
                >
                </el-switch>
              </div>
            </div>
          </div> -->
          <!--    -->
          <div class="tree-window">
            <el-tree
              ref="treeMenus"
@@ -607,6 +578,7 @@
    ></deviceInfo>
    <Authorization v-if="activeIndex == 7" style="width: 100%" ref="view_7">
    </Authorization>
    <WebManage v-if="activeIndex == 8"></WebManage>
  </div>
  <div class="welcome-page" v-else ref="curPage" @mouseup="mouseDownIndex = ''">
    <div
@@ -620,7 +592,6 @@
        size="mini"
        @focus="showRecomand = true"
        clearable
        @input="filterRecomand"
        :suffix-icon="showRecomand && searchText.length ? '' : 'el-icon-search'"
        v-model="searchText"
      >
@@ -680,6 +651,7 @@
import keyboardLanguage from "../views/keyboardLanguage";
import generalSettings from "../views/generalSettings";
import Authorization from "../views/Authorization";
import WebManage from "@/pages/settings/components/WebManage";
import { pad0, getUrlKey } from "@/api/utils";
export default {
@@ -693,6 +665,7 @@
    generalSettings,
    deviceInfo,
    Authorization,
    WebManage,
  },
  data() {
    var v2 = (rule, value, callback) => {
@@ -839,6 +812,13 @@
          imgUrl: "/images/settings/授权管理.png",
          blackIcon: "/images/settings/黑色一级icon/授权管理.png",
          whiteIcon: "/images/settings/白色一级icon/授权管理.png",
        },
        {
          name: "域名管理",
          icon: "\ue6db",
          imgUrl: "/images/settings/通用设置.png",
          blackIcon: "/images/settings/黑色一级icon/通用设置.png",
          whiteIcon: "/images/settings/白色一级icon/通用设置.png",
        },
      ],
      accountArr: [],
@@ -1524,6 +1504,10 @@
      return false;
    },
    isShowPermitBtn() {
      // basic 用户不允许修改权限
      if (this.activeUserRole == "超级管理员") {
        return false;
      }
      if (this.curUserRole == "管理员") {
        return this.activeUserRole == "普通用户";
      } else {
@@ -2059,7 +2043,7 @@
      .change-pw {
        padding: 40px 10px;
        max-width: 600px;
        // max-width: 600px;
        margin: 0 auto;
        .title {
          font-weight: bold;
@@ -2283,7 +2267,7 @@
          line-height: 22px;
        }
        .fill-group {
          max-width: 450px;
          //  max-width: 450px;
          margin-top: 10px;
          margin: 0 auto;
@@ -2679,5 +2663,3 @@
  }
}
</style>