From 3e091224ab26252d8624b42b461ba773ee8bee0f Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期日, 03 十一月 2024 19:16:31 +0800 Subject: [PATCH] update --- src/views/console/system/data-scope-manager.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/console/system/data-scope-manager.vue b/src/views/console/system/data-scope-manager.vue index 1c0d827..c89419d 100644 --- a/src/views/console/system/data-scope-manager.vue +++ b/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; } }) -- Gitblit v1.9.3