From 4001279159dd37942b3cf4c83ab537f95832a82d Mon Sep 17 00:00:00 2001
From: liuchengxin <13104445455@163.com>
Date: 星期一, 06 六月 2022 13:33:21 +0800
Subject: [PATCH] BUG修改

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

diff --git a/src/views/basics/organization/index.vue b/src/views/basics/organization/index.vue
index 946b4f6..be5a4d0 100644
--- a/src/views/basics/organization/index.vue
+++ b/src/views/basics/organization/index.vue
@@ -33,19 +33,21 @@
         v-loading="loading"
         :data="organizationList"
         row-key="id"
+        height="calc(100vh - 210px)"
         default-expand-all
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
     >
-      <el-table-column label="鏈烘瀯鍚嶇О" align="center" prop="name"/>
-      <el-table-column label="鏈烘瀯缂栧彿" prop="code"/>
-      <el-table-column label="鏄剧ず椤哄簭" align="center" prop="orderNum"/>
-      <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+      <el-table-column label="鏈烘瀯鍚嶇О" align="left" prop="name" show-overflow-tooltip/>
+      <el-table-column label="鏈烘瀯缂栧彿" align="left" width="150" prop="code" show-overflow-tooltip/>
+      <el-table-column label="鏄剧ず椤哄簭" width="80" align="center" prop="orderNum"/>
+      <el-table-column label="鎿嶄綔" align="center" width="180" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
               size="mini"
               type="text"
               icon="el-icon-edit"
               @click="handleUpdate(scope.row)"
+              v-hasPermi="['oa:organization:edit']"
           >淇敼
           </el-button>
           <el-button
@@ -60,6 +62,7 @@
               type="text"
               icon="el-icon-delete"
               @click="handleDelete(scope.row)"
+              v-hasPermi="['oa:organization:remove']"
           >鍒犻櫎
           </el-button>
         </template>
@@ -181,7 +184,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 +279,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