田源
2024-10-14 a34c10535d130c4be667301434a0e8072ee82716
Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue
@@ -23,8 +23,13 @@
        <h3 style="margin: 0 0 10px 0">UI权限配置</h3>
        <div>
          <el-button icon="el-icon-place" plain size="small" type="primary" @click="saveHandler">授权</el-button>
          <el-button icon="el-icon-close" plain size="small" type="primary" @click="clearValue" style="margin-right: 40px;">重置</el-button>
          业务类型:<el-select v-model="type" placeholder="请选择" size="small" :clearable="true" @change="typeChange" style="width: 300px;margin-right: 20px;">
          <el-button icon="el-icon-close" plain size="small" style="margin-right: 40px;" type="primary"
                     @click="clearValue">重置
          </el-button>
          业务类型:
          <el-select v-model="type" :clearable="true" placeholder="请选择" size="small"
                     style="width: 300px;margin-right: 20px;"
                     @change="typeChange">
            <el-option
              v-for="item in typeData"
              :key="item.oid"
@@ -32,7 +37,9 @@
              :value="item.attributes.name">
            </el-option>
          </el-select>
          UI上下文:<el-select v-model="context" placeholder="请选择" size="small" :clearable="true" @change="contextChange" style="width: 350px;">
          UI上下文:
          <el-select v-model="context" :clearable="true" placeholder="请选择" size="small" style="width: 350px;"
                     @change="contextChange">
          <el-option
            v-for="item in contextData"
            :key="item.oid"
@@ -122,7 +129,8 @@
        const params = {
          'conditionMap[roleId]': this.nodeRow.oid,
          'conditionMap[type]': this.type,
          'conditionMap[context]': this.context
          'conditionMap[context]': this.context,
          'conditionMap[showCheckbox]': true
        }
        this.defaultExpandKeys=['root'];
        getUIAuthor(params).then(res => {
@@ -149,7 +157,8 @@
    processChildren(item) {
      if (item.children && item.children.length > 0) {
        item.children = item.children.map(child => {
          if(child.level<4){
          if (child.level < 2) {
            // 默认树节点展开两层效果
            this.defaultExpandKeys.push(child.oid)
          }
          if(child.level==1){
@@ -217,7 +226,7 @@
      });
    },
    clearValue(){
      this.$refs.uiTree.setCheckedNodes([])
      this.$refs.uiTree.setCheckedNodes([]);
    }
  }
}
@@ -228,6 +237,7 @@
  .el-scrollbar__wrap {
    overflow: auto !important;
  }
  .headerCon{
    .el-button{
      width: 82px;