From 2ace21433499dc1974ea1357c965165f54de4f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Tue, 21 Feb 2023 16:52:44 +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/stationAvatar.js | 8 ++ src/views/system/poser/index.vue | 8 +- src/views/system/stationAvatar/index.vue | 159 ++++++++++++++++++----- 3 files changed, 134 insertions(+), 41 deletions(-) diff --git a/src/api/system/stationAvatar.js b/src/api/system/stationAvatar.js index 8355f87..d42ceb0 100644 --- a/src/api/system/stationAvatar.js +++ b/src/api/system/stationAvatar.js @@ -9,8 +9,16 @@ export function updateNurseStationHeads(data) { }) } +//海报视频上传 +export function updatePoserHeads(data) { + return request({ + url: '/system/poser/updatePoserHeads', + method: 'post', + data: data + }) +} export function posts(data) { return request({ diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue index f063bac..69ec9cc 100644 --- a/src/views/system/poser/index.vue +++ b/src/views/system/poser/index.vue @@ -762,11 +762,9 @@ export default { getListBy(this.queryParams).then(res => { this.nurseStationlist = res.rows; this.queryParams.nurseStationId = res.rows[0].id; - this.nurseItemquery.nurseStationId = JSON.parse( - JSON.stringify(res.rows[0].id) - ); + this.nurseItemquery.nurseStationId = res.rows[0].id; + this.getList(); }); - this.getList(); }, //打开护理站列表 nurseStationshowclick() { @@ -794,7 +792,7 @@ export default { } this.form.nurseItemName = null; this.form.nurseItemId = null; - this.nurseitemid = null + this.nurseitemid = null; this.nurseStationshow = false; this.nurseItemnuser = item.id; this.nurseItemquery.nurseStationId = item.id; diff --git a/src/views/system/stationAvatar/index.vue b/src/views/system/stationAvatar/index.vue index 7076419..7098564 100644 --- a/src/views/system/stationAvatar/index.vue +++ b/src/views/system/stationAvatar/index.vue @@ -2,9 +2,18 @@
+
+
+
+ 请上传图片为800x800px的正方形 +

@@ -71,7 +92,7 @@ - + + 提 交 @@ -112,12 +133,16 @@ \ No newline at end of file +.wihi { + background-color: #fff; + width: 100px; + height: 100px; +} +.wihi:hover:after { + transform: translate(50%, 50%); +} +