From c6101e12c1d43b49d47b27854a3cfc3476700ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Wed, 28 Sep 2022 14:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/nurseItem.js | 2 +- src/views/system/station/index.vue | 3 + src/views/system/stationConsumable/index.vue | 139 +++++++++++++++++-- src/views/system/stationItem/index.vue | 2 +- 4 files changed, 135 insertions(+), 11 deletions(-) diff --git a/src/api/system/nurseItem.js b/src/api/system/nurseItem.js index 21ab652..384f02e 100644 --- a/src/api/system/nurseItem.js +++ b/src/api/system/nurseItem.js @@ -48,7 +48,7 @@ export function addNurseItem(data) { export function updateNurseItem(data) { return request({ url: '/system/stationItem/edit', - method: 'put', + method: 'post', data: data }) } diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue index 385d699..524e28b 100644 --- a/src/views/system/station/index.vue +++ b/src/views/system/station/index.vue @@ -967,6 +967,7 @@ export default { }); }, handleQuery() { + this.loading = true; this.queryParams.pageNum = 1; this.liststationinfo(); }, @@ -1029,6 +1030,7 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset(); + this.loading = true; const id = row.id || this.ids; getStation(id) .then((response) => { @@ -1088,6 +1090,7 @@ export default { // }); }); this.open = true; + this.loading = false; }); }, /** 提交按钮 */ diff --git a/src/views/system/stationConsumable/index.vue b/src/views/system/stationConsumable/index.vue index 777c07a..c529806 100644 --- a/src/views/system/stationConsumable/index.vue +++ b/src/views/system/stationConsumable/index.vue @@ -228,7 +228,17 @@ > - + + {{ form.nurseStationName }} + + {{ form.nurseStationName }} @@ -246,19 +256,19 @@ maxlength="10" /> - + 取 消 - - + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + - { console.log(res); @@ -875,14 +993,15 @@ export default { }); }, handleQuery() { + this.loading = true; this.queryParams.pageNum = 1; this.listStationConsumableinfo(); }, //护理站分页 listinfo() { list(this.nurseStationqueryParams).then((res) => { - console.log(res); this.nurseStationlist2 = res.rows; + console.log(this.nurseStationlist2); this.total2 = res.total; }); }, @@ -937,12 +1056,14 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { + this.loading = true; this.reset(); const id = row.id || this.ids; getStationConsumable(id).then((response) => { this.form = response.data; this.xgopen = true; this.title = "修改护理站耗材信息"; + this.loading = false; }); }, /** 提交按钮 */ diff --git a/src/views/system/stationItem/index.vue b/src/views/system/stationItem/index.vue index 957145c..3492c13 100644 --- a/src/views/system/stationItem/index.vue +++ b/src/views/system/stationItem/index.vue @@ -1185,7 +1185,7 @@ export default { this.$refs["form"].validate((valid) => { console.log(valid); if (valid) { - if (this.form.id != null) { + if (this.form.nurseStationItem.id != null) { updateNurseItem(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); this.open = false;