From 6636b48aab02c10b261562abd5dcb6f2c1566a86 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期二, 15 七月 2025 15:56:09 +0800 Subject: [PATCH] qx --- src/views/hosp/commonAdvice/index.vue | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/hosp/commonAdvice/index.vue b/src/views/hosp/commonAdvice/index.vue index f7f4059..e5769c8 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> @@ -62,7 +65,8 @@ updateAdvice, addAdvice, getAdvice, - delAdvice + delAdvice, + delCyremove } from "@/api/advice/advice"; import { addCyTjAdvice, @@ -141,6 +145,7 @@ this.reset(); }, proposalChange() { + this.reset(); this.open = true; }, // 琛ㄥ崟閲嶇疆 @@ -202,7 +207,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 +214,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