1
lzhe
2024-10-09 70152039ec5ebb8dffd407630c4a725e12733383
1
已修改2个文件
13 ■■■■ 文件已修改
src/views/console/system/add-scope-manager.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/system/data-scope-manager.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/system/add-scope-manager.vue
@@ -149,7 +149,6 @@
                        }else {
                            Object.assign(this.addDictForm, res.data);
                        }
                        console.log(res.data.parentId,res.data.$parentId)
                    }
                })
            },
src/views/console/system/data-scope-manager.vue
@@ -2,7 +2,7 @@
 * @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
-->
@@ -26,9 +26,8 @@
                <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>
@@ -71,6 +70,7 @@
        name: "datascope",
        data(){
            return {
                showTable: false,
                treeCheck: [],
                authorityTreeData: [],
                authoritySaveing: false,
@@ -165,7 +165,7 @@
                    }
                })
            },
            addDatascopeSuccess() {
            addDatascopeSuccess(addDictForm,mode) {
                this.searchclick();
            },
            //添加
@@ -276,6 +276,7 @@
                this.searchBtn();
            },
            searchBtn() {
                this.showTable = false;
                var obj = {};
                for(var key in this.searchData) {
                    if(this.searchData[key]) {
@@ -285,6 +286,7 @@
                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;
                    }
                })