qx
qx
2025-06-24 bd8d09e08a6c179b7c842b4ac77c5f468a0b1470
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();
            });
          }
        }