| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-05-02 22:20:47 |
| | | * @LastEditTime: 2024-10-09 16:08:25 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | <el-button type="danger" @click="delData">删除</el-button> |
| | | <el-button type="primary" @click="addAuthority">权限设置</el-button> |
| | | </div> |
| | | <div class="dict-table"> |
| | | <el-table ref="multipleTableRef" :data="tableData" border row-key="id" style="width: 100%" class="multipleTableRef" @selection-change="handleSelectionChange" lazy |
| | | :load="tableLoad" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" default-expand-all> |
| | | <div class="dict-table" v-if="showTable"> |
| | | <el-table ref="multipleTableRef" :data="tableData" border row-key="id" style="width: 100%" class="multipleTableRef" @selection-change="handleSelectionChange" lazy :load="tableLoad" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" default-expand-all> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column prop="deptName" label="权限名称"></el-table-column> |
| | | <el-table-column prop="fullName" label="权限描述"></el-table-column> |
| | |
| | | name: "datascope", |
| | | data(){ |
| | | return { |
| | | showTable: false, |
| | | treeCheck: [], |
| | | authorityTreeData: [], |
| | | authoritySaveing: false, |
| | |
| | | } |
| | | }) |
| | | }, |
| | | addDatascopeSuccess() { |
| | | addDatascopeSuccess(addDictForm,mode) { |
| | | this.searchclick(); |
| | | }, |
| | | //添加 |
| | |
| | | this.searchBtn(); |
| | | }, |
| | | searchBtn() { |
| | | this.showTable = false; |
| | | var obj = {}; |
| | | for(var key in this.searchData) { |
| | | if(this.searchData[key]) { |
| | |
| | | this.tableData = []; |
| | | this.$HTTP.get("/api/blade-system/data-scope-manager/lazy-list?" + this.$TOOL.qsStringify(obj)).then(res=> { |
| | | if(res.code == 200) { |
| | | this.showTable = true; |
| | | this.tableData = res.data; |
| | | } |
| | | }) |