From 84a9297d616a8db97330e3daa6b92974bb738fa5 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期一, 28 七月 2025 16:38:30 +0800 Subject: [PATCH] 1 --- src/views/hosp/ruleAdvice/index.vue | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/views/hosp/ruleAdvice/index.vue b/src/views/hosp/ruleAdvice/index.vue index d8b945a..e3d471b 100644 --- a/src/views/hosp/ruleAdvice/index.vue +++ b/src/views/hosp/ruleAdvice/index.vue @@ -290,6 +290,7 @@ showSearch: true, // 鎬绘潯鏁� total: 0, + proId:"", // 鐥呯+鎰忚琛ㄦ牸鏁版嵁 ruleAdviceList: [], rulesList: [], @@ -361,8 +362,26 @@ this.loading = false; }); }, + getsList() { + this.loading = true; + let date = { + proId: this.proId, + }; + getByProId(date).then((response) => { + response.rows.forEach((item, index) => { + item.newID = + (this.queryParams.pageNum - 1) * this.queryParams.pageSize + + index + + 1; + }); + this.ruleAdviceList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, // 鑺傜偣鍗曞嚮浜嬩欢 handleNodeClick(data) { + this.proId = data.id this.loading = true; let date = { proId: data.id, @@ -440,7 +459,7 @@ this.open = true; this.title = "娣诲姞鐥呯+鎰忚"; listRules(this.queryParams).then((response) => { - this.rulesList = response.rows; + this.rulesList = response.data.rows; }); }, /** 淇敼鎸夐挳鎿嶄綔 */ @@ -460,7 +479,7 @@ bingzhong: query, }; listRules(data).then((response) => { - this.rulesList = response.rows; + this.rulesList = response.data.rows; }); } }, @@ -480,13 +499,13 @@ updateRuleAdvice(this.form).then((response) => { this.$modal.msgSuccess("淇敼鎴愬姛"); this.open = false; - this.getList(); + this.getsList(); }); } else { addRuleAdvice(this.form).then((response) => { this.$modal.msgSuccess("鏂板鎴愬姛"); this.open = false; - this.getList(); + this.getsList(); }); } } -- Gitblit v1.8.0