From bd8d09e08a6c179b7c842b4ac77c5f468a0b1470 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期二, 24 六月 2025 16:32:34 +0800
Subject: [PATCH] qx

---
 src/views/hosp/ruleAdvice/index.vue |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/src/views/hosp/ruleAdvice/index.vue b/src/views/hosp/ruleAdvice/index.vue
index d57632a..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,
@@ -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