From 60025719f182b1928375bcd35157d0446f620f32 Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期四, 26 六月 2025 11:28:48 +0800 Subject: [PATCH] 限制电话号码输入长度 --- src/views/hosp/rules/index.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/hosp/rules/index.vue b/src/views/hosp/rules/index.vue index 3ceb5ec..d442679 100644 --- a/src/views/hosp/rules/index.vue +++ b/src/views/hosp/rules/index.vue @@ -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() }); } } -- Gitblit v1.8.0