From e28e9395819fd992bc3e168b6ff89fb6f538f1bc Mon Sep 17 00:00:00 2001
From: 唐耀东 <18861537@qq.com>
Date: 星期一, 23 五月 2022 15:25:34 +0800
Subject: [PATCH] 提交代码

---
 src/views/basics/organization/index.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/views/basics/organization/index.vue b/src/views/basics/organization/index.vue
index 946b4f6..0a4958e 100644
--- a/src/views/basics/organization/index.vue
+++ b/src/views/basics/organization/index.vue
@@ -46,6 +46,7 @@
               type="text"
               icon="el-icon-edit"
               @click="handleUpdate(scope.row)"
+              v-hasPermi="['oa:organization:edit']"
           >淇敼
           </el-button>
           <el-button
@@ -60,6 +61,7 @@
               type="text"
               icon="el-icon-delete"
               @click="handleDelete(scope.row)"
+              v-hasPermi="['oa:organization:remove']"
           >鍒犻櫎
           </el-button>
         </template>
@@ -181,7 +183,7 @@
     },
     /** 鏌ヨ楂樻牎缁勭粐鏈烘瀯涓嬫媺鏍戠粨鏋� */
     getTreeselect() {
-      listOrganization().then(response => {
+      listOrganization({schoolId: this.schoolId}).then(response => {
         this.organizationOptions = [];
         const data = {id: 0, name: '椤剁骇鑺傜偣', children: []};
         data.children = this.handleTree(response.data, "id", "parentId");
@@ -276,7 +278,7 @@
     },
     /** 鍒犻櫎鎸夐挳鎿嶄綔 */
     handleDelete(row) {
-      this.$modal.confirm('鏄惁纭鍒犻櫎楂樻牎缁勭粐鏈烘瀯缂栧彿涓�"' + row.id + '"鐨勬暟鎹」锛�').then(() => {
+      this.$modal.confirm('鏄惁纭鍒犻櫎锛�').then(() => {
         this.loading = true;
         return delOrganization(row.id);
       }).then(() => {

--
Gitblit v1.9.1