| | |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | | <el-button |
| | | <!-- <el-button |
| | | icon="el-icon-setting" |
| | | @click="handleRole" |
| | | v-if="userInfo.authority.includes('admin')" |
| | | plain |
| | | >权限设置 |
| | | </el-button> |
| | | </el-button> --> |
| | | </template> |
| | | <template #menu="{ row }"> |
| | | <el-button |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | roleIds: [], |
| | | form: {}, |
| | | box: false, |
| | | props: { |
| | |
| | | tree: true, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | selection: false, |
| | | viewBtn: true, |
| | | labelWidth: 120, |
| | | searchLabelWidth: 120, |
| | |
| | | const menuList = this.$refs.treeMenu.getCheckedKeys(); |
| | | const dataScopeList = this.$refs.treeDataScope.getCheckedKeys(); |
| | | const apiScopeList = this.$refs.treeApiScope.getCheckedKeys(); |
| | | grant(this.idsArray, menuList, dataScopeList, apiScopeList).then(() => { |
| | | //grant(this.idsArray, menuList, dataScopeList, apiScopeList).then(() => { |
| | | grant(this.roleIds, menuList, dataScopeList, apiScopeList).then(() => { |
| | | this.box = false; |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | this.dataScopeTreeObj = res.data.data.dataScope; |
| | | this.apiScopeTreeObj = res.data.data.apiScope; |
| | | this.selectionList.push(row); |
| | | this.roleIds = [row.id]; |
| | | this.box = true; |
| | | }); |
| | | }); |