| | |
| | | <div class="abox"> |
| | | <avue-tree :data="treeData" :option="treeOption" @node-click="nodeClick"/> |
| | | </div> |
| | | |
| | | </basic-container> |
| | | </el-scrollbar> |
| | | </div> |
| | |
| | | <basic-container> |
| | | <div class="bbox"> |
| | | <avue-crud ref="crud" |
| | | v-model="form" |
| | | :before-open="beforeOpen" |
| | | :data="data" |
| | | :option="option" |
| | | :page.sync="page" |
| | | :permission="permissionList" |
| | | :search.sync="search" |
| | | :table-loading="loading" |
| | | @row-del="rowDel" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | v-model="form" |
| | | :before-open="beforeOpen" |
| | | :data="data" |
| | | :option="option" |
| | | :page.sync="page" |
| | | :permission="permissionList" |
| | | :search.sync="search" |
| | | :table-loading="loading" |
| | | @row-del="rowDel" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button v-if="permission.user_delete" |
| | | icon="el-icon-delete" |
| | |
| | | </avue-crud> |
| | | </div> |
| | | <el-dialog :visible.sync="roleBox" |
| | | append-to-body |
| | | title="用户角色配置" |
| | | width="345px"> |
| | | |
| | | append-to-body |
| | | title="用户角色配置" |
| | | width="345px"> |
| | | <el-tree ref="treeRole" |
| | | :data="roleGrantList" |
| | | :default-checked-keys="roleTreeObj" |
| | | :props="props" |
| | | check-strictly |
| | | default-expand-all |
| | | node-key="id" |
| | | show-checkbox> |
| | | :data="roleGrantList" |
| | | :default-checked-keys="roleTreeObj" |
| | | :props="props" |
| | | check-strictly |
| | | default-expand-all |
| | | node-key="id" |
| | | show-checkbox> |
| | | </el-tree> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | viewBtn: true, |
| | | dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //行选中时高亮 |
| | | column: [ |
| | | { |
| | | label: "登录账号", |
| | |
| | | }else { |
| | | this.passVisible=true; |
| | | } |
| | | console.log("selectionList",this.selectionList) |
| | | console.log(this.UserPwdstrategyVO) |
| | | //console.log("selectionList",this.selectionList) |
| | | //console.log(this.UserPwdstrategyVO) |
| | | }, |
| | | // 设置密码策略,传递下拉框的id和多选框的id |
| | | passhandle(){ |
| | |
| | | //要传递的id,一个是数组另一个是字符串 |
| | | this.UserPwdstrategyVO.userIds=this.selid; |
| | | this.UserPwdstrategyVO.pwdstrategyId=this.id |
| | | console.log("1",this.UserPwdstrategyVO) |
| | | console.log("2",this.UserPwdstrategyVO.userIds) |
| | | |
| | | //请求 |
| | | insert(this.UserPwdstrategyVO.userIds).then(()=>{ |
| | | this.passVisible=false |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //选中当前行 |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |