From cf1b5bf548b870efd0f1b4e3d5a8f88e79cfd9c9 Mon Sep 17 00:00:00 2001 From: liuchengxin <13104445455@126.com> Date: 星期六, 08 一月 2022 12:15:22 +0800 Subject: [PATCH] 问题修改 --- src/views/system/dept/index.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 1cd40ea..95610c0 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -75,12 +75,12 @@ <span>{{ parseTime(scope.row.createTime) }}</span> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" fixed="right" width="240" class-name="small-padding fixed-width"> <template slot-scope="scope"> <el-button size="mini" type="text" - icon="el-icon-edit" + icon="el-icon-user" @click="handleUser(scope.row)" >鎴愬憳 </el-button> @@ -105,6 +105,7 @@ size="mini" type="text" icon="el-icon-delete" + class="del-btn" @click="handleDelete(scope.row)" v-hasPermi="['system:dept:remove']" >鍒犻櫎 @@ -114,7 +115,7 @@ </el-table> <!-- 娣诲姞鎴栦慨鏀归儴闂ㄥ璇濇 --> - <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body> + <el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="600px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-row> <el-col :span="24" v-if="form.parentId !== 0"> @@ -201,7 +202,7 @@ title="鏈烘瀯鎴愬憳" :visible.sync="drawer" direction="rtl" - size="50%"> + size="500px"> <el-table :data="userTable"> <el-table-column property="nickName" label="濮撳悕" width="150"></el-table-column> <el-table-column property="phonenumber" label="鐢佃瘽" width="200"></el-table-column> @@ -280,6 +281,9 @@ message: "璇疯緭鍏ユ纭殑鎵嬫満鍙风爜", trigger: "blur" } + ], + remarks: [ + {max: 128, message: '鏈�澶氳緭鍏�128涓瓧绗�', trigger: 'blur' } ] }, // 涓嬫媺鐢ㄦ埛 @@ -417,7 +421,7 @@ }, /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete(row) { - this.$modal.confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.deptName + '"鐨勬暟鎹」锛�').then(function () { + this.$modal.confirm('鏄惁纭鍒犻櫎锛�').then(function () { return delDept(row.deptId); }).then(() => { this.getList(); -- Gitblit v1.9.1