gaoshp
2024-11-19 f29900986f01cf5d39b5755cec674825cef27961
src/views/console/system/data-scope-manager.vue
@@ -2,13 +2,13 @@
 * @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
-->
<template>
   <div class="dict-main">
      <el-form :inline="true" :model="searchData" abel-width="120px">
      <el-form :inline="true" :model="searchData" label-width="80px">
         <el-form-item label="权限名称">
            <el-input v-model="searchData.deptName" placeholder="权限名称" clearable />
         </el-form-item>
@@ -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;
               }
            })