| | |
| | | <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" |
| | |
| | | :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" |
| | |
| | | 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 => { |
| | |
| | | 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){ |
| | |
| | | }); |
| | | }, |
| | | clearValue(){ |
| | | this.$refs.uiTree.setCheckedNodes([]) |
| | | this.$refs.uiTree.setCheckedNodes([]); |
| | | } |
| | | } |
| | | } |
| | |
| | | .el-scrollbar__wrap { |
| | | overflow: auto !important; |
| | | } |
| | | |
| | | .headerCon{ |
| | | .el-button{ |
| | | width: 82px; |