管道基础大数据平台系统开发-【前端】-新系統界面
liupengpeng
2023-02-14 b671529a86644b7496279c469fa683f58be222e1
src/views/maintenance/menuSettings.vue
@@ -8,7 +8,7 @@
      <el-divider />
    </div>
    <div class="cataLogContent">
      <div class="left_Tree">
      <div class="left_Tree subpage_Div">
        <div style="width:auto">
          <el-tree
            ref="tree"
@@ -24,7 +24,7 @@
        </div>
      </div>
      <div class="right_menu">
      <div class="right_menu subpage_Div">
        <div style="display:flex;justify-content:space-between">
          <el-breadcrumb separator="/">
@@ -35,20 +35,7 @@
          <div>
            <el-button
              :disabled="itemdetail.pid == null ? true : false"
              @click="setEditNode(1)"
              type="info"
              icon="el-icon-top"
              size="small"
            >向上移动</el-button>
            <el-button
              :disabled="itemdetail.pid == null ? true : false"
              @click="setEditNode(2)"
              type="info"
              icon="el-icon-bottom"
              size="small"
            >向下移动</el-button>
            <el-button
              v-if="menuStatus.insert"
              :disabled="itemdetail.pid == null ? true : false"
              @click="setNewNode(1)"
              type="success"
@@ -56,6 +43,7 @@
              size="small"
            >新增同级</el-button>
            <el-button
              v-if="menuStatus.insert"
              :disabled="itemdetail.pid == null ? true : false"
              @click="setNewNode(2)"
              type="success"
@@ -63,12 +51,29 @@
              size="small"
            >新增子级</el-button>
            <el-button
              v-if="menuStatus.delete"
              @click="setDelNode()"
              :disabled="itemdetail.pid == null ? true : false"
              type="danger"
              icon="el-icon-delete"
              size="small"
            >删除</el-button>
            <el-button
              v-if="menuStatus.update"
              :disabled="itemdetail.pid == null ? true : false"
              @click="setEditNode(1)"
              type="info"
              icon="el-icon-top"
              size="small"
            >向上移动</el-button>
            <el-button
              v-if="menuStatus.update"
              :disabled="itemdetail.pid == null ? true : false"
              @click="setEditNode(2)"
              type="info"
              icon="el-icon-bottom"
              size="small"
            >向下移动</el-button>
          </div>
        </div>
@@ -116,6 +121,7 @@
            >
              <el-select
                style="width: 400px"
                :popper-append-to-body="false"
                v-model="itemdetail.isShow"
                placeholder=""
              >
@@ -153,6 +159,7 @@
            >
              <el-select
                style="width: 400px"
                :popper-append-to-body="false"
                v-model="itemdetail.type"
                :placeholder="$t('common.choose')"
              >
@@ -241,6 +248,8 @@
          :label-width="formLabelWidth"
        >
          <el-select
            :popper-append-to-body="false"
            style="width:100%"
            v-model="ruleForm.isShow"
            placeholder=""
          >
@@ -277,6 +286,8 @@
          :label-width="formLabelWidth"
        >
          <el-select
            :popper-append-to-body="false"
            style="width:100%"
            v-model="ruleForm.type"
            :placeholder="$t('common.choose')"
          >
@@ -749,11 +760,11 @@
            this.getMenuTree();
            return;
          } else {
            alert('调整失败,请重试!');
            this.$message.error('调整失败,请重试!');
          }
        })
        .catch(() => {
          alert('修改失败,请重试!');
          this.$message.error('调整失败,请重试!');
        });
    },
    handleNodeClick(data, node) {
@@ -779,7 +790,7 @@
                }, 500);
              })
              .catch((res) => {
                alert('修改失败,请重试!');
                this.$message.error('调整失败,请重试!');
                this.fullscreenLoading = false;
              });
          } else {
@@ -795,6 +806,7 @@
      }
    },
    showPermsMenu(res) {
      switch (res.tag) {
        case '/delete':
          this.menuStatus.delete = true;
@@ -810,6 +822,7 @@
    getPerms() {
      var val = this.$store.state.currentPerms;
      var permsEntity = this.$store.state.permsEntity;
      if (permsEntity.length == 0) {
        getPerms().then((res) => {
          if (res.code == 200) {
@@ -836,7 +849,7 @@
  height: 98%;
  width: 98%;
  padding: 1%;
  position: absolute;
  .cataLogContent {
    width: 100%;
    height: 92%;
@@ -845,21 +858,13 @@
    .left_Tree {
      width: 15%;
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
      overflow-y: auto;
      .el-icon-circle-plus {
        color: gray;
      }
      .el-icon-delete-solid {
        color: gray;
      }
    }
    .right_menu {
      width: 80%;
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
      overflow: auto;
@@ -869,77 +874,9 @@
        .el-input {
          width: 400px;
        }
        /deep/.el-form-item__label {
          color: white;
        }
      }
    }
  }
  .el-card-define {
    height: 100%;
    background: #303030;
    border: 1px solid gray;
    padding: 1px;
  }
  /deep/ .el-input__inner {
    background-color: transparent !important;
    border: 1px solid;
    color: white;
  }
  /deep/ .el-dialog {
    background: #303030;
  }
  /deep/.el-range-editor.is-active,
  .el-range-editor.is-active:hover,
  .el-select .el-input.is-focus .el-input__inner {
    border: 1px solid;
  }
  /deep/.el-dialog__title {
    color: white;
  }
  /deep/.el-form-item__label {
    color: white;
  }
  /*里面的代码可以根据自己需求去进行更改*/
  /* 设置滚动条的样式 */
  ::-webkit-scrollbar {
    width: 4px;
  }
  /* 滚动槽 */
  ::-webkit-scrollbar-track {
    -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
    border-radius: 10px;
  }
  /* 滚动条滑块 */
  ::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #8b8b8b;
    -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
  }
  ::-webkit-scrollbar-thumb:window-inactive {
    background: #8b8b8b;
    height: 289px;
  }
}
</style>
<style lang="less">
.el-select-dropdown {
  background: #303030;
  border-color: white;
}
//右侧和下方的白边
.el-scrollbar__wrap {
  margin-bottom: -20px !important;
  margin-right: -20px !important;
}
.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.3);
}
.el-select-dropdown__item {
  color: white;
}
</style>