From 6cc2964f69fa334a3fb4abadc1b0e5ffcb3c34da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Tue, 28 Mar 2023 16:06:04 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/nurseItem.js | 6 ++++ src/views/system/stationItem/index.vue | 40 ++++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/src/api/system/nurseItem.js b/src/api/system/nurseItem.js index 49ad1da..707d250 100644 --- a/src/api/system/nurseItem.js +++ b/src/api/system/nurseItem.js @@ -68,3 +68,9 @@ export function updatePicture(data) { data: data }) } +export function updateShelfStatus(id, shelfStatus) { + return request({ + url: `/system/stationItem/updateShelfStatus?id=${id}&shelfStatus=${shelfStatus}`, + method: 'post', + }) +} \ No newline at end of file diff --git a/src/views/system/stationItem/index.vue b/src/views/system/stationItem/index.vue index 0f47ce4..a281ad1 100644 --- a/src/views/system/stationItem/index.vue +++ b/src/views/system/stationItem/index.vue @@ -9,8 +9,7 @@ label-width="110px" > - + + + + @@ -582,7 +591,8 @@ import { delNurseItem, addNurseItem, updateNurseItem, - updatePicture + updatePicture, + updateShelfStatus } from "@/api/system/nurseItem"; import { getToken } from "@/utils/auth"; import { getListByUser } from "@/api/system/userlist.js"; @@ -764,6 +774,23 @@ export default { this.classifylistInfo(); }, methods: { + //点击上架 + upwhetherShelf(row) { + let shelfStatus = null; + if (row.shelfStatus == false) { + shelfStatus = "NOT_SHELF"; + } else if (row.shelfStatus == true) { + shelfStatus = "SHELF"; + } + updateShelfStatus(row.id, shelfStatus).then(res => { + if (row.shelfStatus == false) { + this.$modal.msgSuccess("已修改上架状态为未上架"); + } else { + this.$modal.msgSuccess("已修改上架状态为上架"); + } + this.getList(); + }); + }, //// //护理项目list //打开遮罩层 clickClassifyshow() { @@ -934,6 +961,13 @@ export default { getList() { this.loading = true; list(this.queryParams).then(response => { + response.rows.forEach(e => { + if (e.shelfStatus == "SHELF") { + e.shelfStatus = true; + } else { + e.shelfStatus = false; + } + }); this.nurseItemList = response.rows; this.total = response.total; this.loading = false; From d30fad7d78f34b2a1bd6445f104607c9db42fd4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Wed, 29 Mar 2023 15:06:36 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/poser.js | 7 ++++ src/views/system/poser/index.vue | 62 +++++++++++++++++--------------- 2 files changed, 41 insertions(+), 28 deletions(-) diff --git a/src/api/system/poser.js b/src/api/system/poser.js index 1094e9d..762d7cc 100644 --- a/src/api/system/poser.js +++ b/src/api/system/poser.js @@ -71,4 +71,11 @@ export function delPoser(nurseStationId, moduleType, nurseItemId) { url: `/system/poser/deletePoserInfo?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseItemId=${nurseItemId}`, method: 'delete' }) +} + +export function selectPosterImageJump() { + return request({ + url: '/system/poser/selectPosterImageJump', + method: 'GET', + }) } \ No newline at end of file diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue index 14edbc7..82246d2 100644 --- a/src/views/system/poser/index.vue +++ b/src/views/system/poser/index.vue @@ -174,7 +174,7 @@ @@ -300,13 +300,19 @@ + + +