From 5a1cbbd198bc9c0a6a8af83985c75e96ae25ab9c Mon Sep 17 00:00:00 2001 From: liuchengxin <13104445455@126.com> Date: 星期四, 27 一月 2022 11:28:36 +0800 Subject: [PATCH] 问题修改 --- src/views/system/post/index.vue | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 02698da..4aa8b56 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -97,7 +97,7 @@ <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="鎿嶄綔" fixed="right" width="120" align="center" class-name="small-padding fixed-width"> <template slot-scope="scope"> <el-button size="mini" @@ -109,6 +109,7 @@ <el-button size="mini" type="text" + class="del-btn" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['system:post:remove']" @@ -126,7 +127,7 @@ /> <!-- 娣诲姞鎴栦慨鏀瑰矖浣嶅璇濇 --> - <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> + <Dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form-item label="宀椾綅鍚嶇О" prop="postName"> <el-input v-model="form.postName" placeholder="璇疯緭鍏ュ矖浣嶅悕绉�" /> @@ -154,7 +155,7 @@ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> <el-button @click="cancel">鍙� 娑�</el-button> </div> - </el-dialog> + </Dialog> </div> </template> @@ -293,7 +294,7 @@ /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete(row) { const postIds = row.postId || this.ids; - this.$modal.confirm('鏄惁纭鍒犻櫎宀椾綅缂栧彿涓�"' + postIds + '"鐨勬暟鎹」锛�').then(function() { + this.$modal.confirm('鏄惁纭鍒犻櫎锛�').then(function() { return delPost(postIds); }).then(() => { this.getList(); -- Gitblit v1.9.1