From 464e063db031bd43b5349d24b2f6550fdb2ae747 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期一, 04 八月 2025 17:08:55 +0800 Subject: [PATCH] :qx --- src/views/hosp/rules/index.vue | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/hosp/rules/index.vue b/src/views/hosp/rules/index.vue index 3ceb5ec..1a5d78c 100644 --- a/src/views/hosp/rules/index.vue +++ b/src/views/hosp/rules/index.vue @@ -8,8 +8,8 @@ style="margin-bottom: 20px" /> </div> <div class="scrollable-container"> - <div class="content"> - <el-tree :data="deptOptions" :props="defaultProps" :expand-on-click-node="false" + <div class="content"> + <el-tree :data="deptOptions" :props="defaultProps" default-expand-all :expand-on-click-node="false" :filter-node-method="filterNode" ref="tree" node-key="id" :default-expanded-keys="treeId" highlight-current @node-click="handleNodeClick" /> </div> @@ -617,16 +617,16 @@ getListByXmId() { this.loading = true; listRules(this.queryParams).then((response) => { - response.rows.forEach((item, index) => { + response.data.rows.forEach((item, index) => { item.newID = (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1; }); - this.rulesList = response.rows; + this.rulesList = response.data.rows; console.log(this.rulesList, 999); - this.total = response.total; + this.total = response.data.total; this.loading = false; }); }, @@ -788,13 +788,13 @@ this.$modal.msgSuccess("淇敼鎴愬姛"); this.open = false; - this.getList(); + this.getListByXmId() }); } else { addRules(this.form).then((response) => { this.$modal.msgSuccess("鏂板鎴愬姛"); this.open = false; - this.getList(); + this.getListByXmId() }); } } @@ -809,7 +809,7 @@ return delRules(ids); }) .then(() => { - this.getList(); + this.getListByXmId(); this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); }) .catch(() => { }); -- Gitblit v1.8.0