From d138b7df8fa97dc7ed6b07acdfef804ebb186a74 Mon Sep 17 00:00:00 2001
From: liuchengxin <13104445455@163.com>
Date: 星期五, 27 五月 2022 21:21:21 +0800
Subject: [PATCH] BUG修改
---
src/views/basics/building/index.vue | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/views/basics/building/index.vue b/src/views/basics/building/index.vue
index 294d29d..8bf17db 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>
@@ -43,13 +42,14 @@
v-loading="loading"
:data="buildingList"
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"/>
+ <el-table-column label="鍗曞厓缂栧彿" align="left" width="150" prop="code"/>
+ <el-table-column label="鏄剧ず椤哄簭" align="center" width="80" prop="orderNum"/>
+ <el-table-column label="鎿嶄綔" align="center" width="180" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
@@ -64,7 +64,6 @@
type="text"
icon="el-icon-plus"
@click="handleAdd(scope.row)"
- v-hasPermi="['oa:building:add']"
>鏂板
</el-button>
<el-button
@@ -81,7 +80,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 +255,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 +280,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