From 5bce1c60238446e6ddf8c7bd5fbedebb76393cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 16 Feb 2023 11:02:11 +0800 Subject: [PATCH] =?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 | 5 +- src/views/system/poser/index.vue | 90 ++++++++++++-------------------- 2 files changed, 37 insertions(+), 58 deletions(-) diff --git a/src/api/system/poser.js b/src/api/system/poser.js index 4ee482c..7999bfe 100644 --- a/src/api/system/poser.js +++ b/src/api/system/poser.js @@ -25,9 +25,10 @@ export function listInfo(query) { }) } // 查询泉医到家系统海报模块信息(包含咨询简介信息)详细 -export function getPoser(id) { + +export function getPoser(moduleType, nurseStationId, nurseltemId) { return request({ - url: '/system/poser/' + id, + url: `/system/poser/getModuleType?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseltemId=${nurseltemId}`, method: 'get' }) } diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue index bf5b092..603f6c7 100644 --- a/src/views/system/poser/index.vue +++ b/src/views/system/poser/index.vue @@ -27,12 +27,19 @@ /> - + placeholder="请选择" + style="width: 208px" + > + + + 0) { updatePicture(this.imgs).then((res) => {}); } + this.nurseItemquery.nurseStationId = null; this.imgs = { pictureUrlList: [] }; this.open = false; this.reset(); @@ -979,7 +951,10 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map((item) => item.id); + console.log(selection); + this.ids = selection.map((item) => item.nurseStationId); + this.itemids = selection.map((item) => item.nurseItemId); + this.Types = selection.map((item) => item.moduleType); this.single = selection.length !== 1; this.multiple = !selection.length; }, @@ -992,12 +967,15 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset(); - const id = row.id || this.ids; - getPoser(id).then((response) => { + const id = row.nurseStationId || this.ids; + const itemid = row.nurseStationId || this.ids; + const type = row.moduleType || this.Types; + getPoser(type, id, itemid).then((response) => { this.form = response.data; if (response.data.goodAttributeDetailsLists) { this.goodDetailsLists = response.data.goodAttributeDetailsLists; } + this.nurseItemquery.nurseStationId = response.data.nurseStationId; this.open = true; this.title = "修改泉医到家系统海报模块信息(包含咨询简介信息)"; });