From c01dff9a24f98f10f247d2f2e449383f567ec338 Mon Sep 17 00:00:00 2001
From: 唐耀东 <18861537@qq.com>
Date: 星期三, 18 五月 2022 14:55:48 +0800
Subject: [PATCH] 提交代码

---
 src/views/basics/building/index.vue |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/views/basics/building/index.vue b/src/views/basics/building/index.vue
index 294d29d..a8d8b5f 100644
--- a/src/views/basics/building/index.vue
+++ b/src/views/basics/building/index.vue
@@ -33,7 +33,6 @@
             icon="el-icon-plus"
             size="mini"
             @click="handleAdd"
-            v-hasPermi="['oa:building:add']"
         >鏂板
         </el-button>
       </el-col>
@@ -56,7 +55,6 @@
               type="text"
               icon="el-icon-edit"
               @click="handleUpdate(scope.row)"
-              v-hasPermi="['oa:building:edit']"
           >淇敼
           </el-button>
           <el-button
@@ -64,7 +62,6 @@
               type="text"
               icon="el-icon-plus"
               @click="handleAdd(scope.row)"
-              v-hasPermi="['oa:building:add']"
           >鏂板
           </el-button>
           <el-button
@@ -73,7 +70,6 @@
               class="del-btn"
               icon="el-icon-delete"
               @click="handleDelete(scope.row)"
-              v-hasPermi="['oa:building:remove']"
           >鍒犻櫎
           </el-button>
         </template>
@@ -81,7 +77,7 @@
     </el-table>
 
     <!-- 娣诲姞鎴栦慨鏀瑰缓绛戝崟鍏冨璇濇 -->
-    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+    <el-dialog :title="title" :visible.sync="open" width="500px" :append-to-body="true" :close-on-click-modal="false">
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
         <el-form-item label="涓婄骇鍗曞厓" prop="parentId">
           <treeselect v-model="form.parentId" :options="buildingOptions" :normalizer="normalizer"
@@ -256,9 +252,9 @@
     /** 鎻愪氦鎸夐挳 */
     submitForm() {
       this.$refs["form"].validate(valid => {
-        this.form.schoolId = this.schoolId;
         if (valid) {
           this.buttonLoading = true;
+          this.form.schoolId = this.schoolId;
           if (this.form.id != null) {
             updateBuilding(this.form).then(response => {
               this.$modal.msgSuccess("淇敼鎴愬姛");
@@ -281,7 +277,7 @@
     },
     /** 鍒犻櫎鎸夐挳鎿嶄綔 */
     handleDelete(row) {
-      this.$modal.confirm('鏄惁纭鍒犻櫎"' + row.detailedName + '"锛�').then(() => {
+      this.$modal.confirm('鏄惁纭鍒犻櫎锛�').then(() => {
         this.loading = true;
         return delBuilding(row.id);
       }).then(() => {

--
Gitblit v1.9.1