From 42e7bee237fc87c2f8f4e20116cdc47da4842b44 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期四, 17 七月 2025 18:32:49 +0800 Subject: [PATCH] 1 --- src/views/hosp/commonAdvice/index.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/hosp/commonAdvice/index.vue b/src/views/hosp/commonAdvice/index.vue index f7f4059..14c85d8 100644 --- a/src/views/hosp/commonAdvice/index.vue +++ b/src/views/hosp/commonAdvice/index.vue @@ -18,6 +18,9 @@ <el-col :span="1.5"> <el-button type="primary" size="mini" @click="proposalChange">鏂板</el-button> </el-col> + <el-col :span="1.5"> + <el-button type="primary" size="mini" @click="handleDelete">鎵归噺鍒犻櫎</el-button> + </el-col> </el-row> @@ -25,6 +28,7 @@ height="580px"> <el-table-column type="selection" width="40" align="center" /> <el-table-column label="搴忓彿" width="70" align="center" prop="newID" /> + <el-table-column label="鐢ㄦ埛鍚�" width="70" align="center" prop="userName" /> <el-table-column label="鏍囬" width="120" align="center" prop="title" /> <el-table-column label="寤鸿鍐呭" align="left" prop="advice" /> <el-table-column label="鎿嶄綔" align="center" fixed="right" class-name="small-padding fixed-width" width="100px"> @@ -43,10 +47,10 @@ <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body :close-on-click-modal="false"> <el-form ref="form" :model="form" label-width="80px" :inline="true"> <el-form-item label="鏍囬" prop="title"> - <el-input v-model="form.title" placeholder="璇疯緭鍏ユ爣棰�" style="width: 200px" /> + <el-input v-model="form.title" placeholder="璇疯緭鍏ユ爣棰�" style="width: 780px" /> </el-form-item> <el-form-item label="鍐呭" prop="advice"> - <el-input v-model="form.advice" type="textarea" placeholder="璇疯緭鍏ヤ富瑕佸唴瀹�" style="width: 780px" /> + <el-input v-model="form.advice" type="textarea" :rows="20" placeholder="璇疯緭鍏ヤ富瑕佸唴瀹�" style="width: 780px" /> </el-form-item> </el-form> <div slot="footer" class="dialog-footer"> @@ -62,7 +66,8 @@ updateAdvice, addAdvice, getAdvice, - delAdvice + delAdvice, + delCyremove } from "@/api/advice/advice"; import { addCyTjAdvice, @@ -141,6 +146,7 @@ this.reset(); }, proposalChange() { + this.reset(); this.open = true; }, // 琛ㄥ崟閲嶇疆 @@ -202,7 +208,6 @@ const id = row.id || this.ids; this.kjbq = []; getAdvice(id).then((response) => { - console.log(response, 55566); this.form = response.data; this.open = true; // this.form.deptId = this.queryParams.deptId; @@ -210,11 +215,12 @@ }); }, handleDelete(row) { - const ids = row.id || this.ids; // 鑾峰彇涓婚敭鍊硷紝濡傛灉row涓病鏈変富閿�硷紝鍒欎娇鐢╰his.ids + let idss = this.ids + '' + const ids = row.id || idss; // 鑾峰彇涓婚敭鍊硷紝濡傛灉row涓病鏈変富閿�硷紝鍒欎娇鐢╰his.ids this.$modal .confirm(`鏄惁纭鍒犻櫎"${ids}"鐨勬暟鎹」锛焋) .then(() => { - return delAdvice(ids); // 璋冪敤鍒犻櫎鎺ュ彛锛屼紶鍏ヤ富閿�� + return delCyremove(ids); // 璋冪敤鍒犻櫎鎺ュ彛锛屼紶鍏ヤ富閿�� }) .then(() => { this.getList(); // 鍒犻櫎鎴愬姛鍚庡埛鏂板垪琛� -- Gitblit v1.8.0