| | |
| | | ></el-tree> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="系统权限"> |
| | | <!-- <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox> --> |
| | | <div style="margin: 15px 0;"></div> |
| | | <el-checkbox-group v-model="checkedSystem" @change="handleCheckedChange"> |
| | | <el-checkbox v-for="system in systemList" :label="system.dictKey" :key="system.dictKey" >{{system.dictValue}}</el-checkbox> |
| | | </el-checkbox-group> |
| | | <el-tree |
| | | :data="systemList" |
| | | show-checkbox |
| | | node-key="dictKey" |
| | | ref="treeSystemScope" |
| | | :default-checked-keys="checkedSystem" |
| | | :props="propSystem" |
| | | ></el-tree> |
| | | </el-tab-pane> |
| | | <!-- <el-tab-pane label="数据权限"> |
| | | <el-tree |
| | |
| | | props: { |
| | | label: "title", |
| | | value: "key" |
| | | }, |
| | | propSystem:{ |
| | | label:"dictValue", |
| | | value:"dictKey" |
| | | }, |
| | | menuGrantList: [], |
| | | dataScopeGrantList: [], |
| | |
| | | // const apiScopeList = this.$refs.treeApiScope.getCheckedKeys() |
| | | const dataScopeList = [] |
| | | const apiScopeList = [] |
| | | const systemIds = this.checkedSystem.join(",") |
| | | const systemLists = this.$refs.treeSystemScope.getCheckedKeys() |
| | | const systemIds = systemLists.join(",") |
| | | grant(this.idsArray, menuList, dataScopeList, apiScopeList,systemIds).then(() => { |
| | | this.box = false |
| | | this.$message({ |
| | |
| | | }else{ |
| | | this.checkedSystem = [] |
| | | } |
| | | |
| | | this.menuTreeObj = res.data.data.menu |
| | | this.dataScopeTreeObj = res.data.data.dataScope |
| | | this.apiScopeTreeObj = res.data.data.apiScope |