From 722c1f79f20d126f40158e3a2be678f650f6428a Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Thu, 27 Oct 2022 18:02:21 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/Setting.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/user/Setting.vue b/src/views/user/Setting.vue index f65fdd29..e51d032d 100644 --- a/src/views/user/Setting.vue +++ b/src/views/user/Setting.vue @@ -10,7 +10,7 @@
修改头像
- +
@@ -254,6 +254,8 @@ if(this.userInfo.avatar){ this.avatarUrl = this.avatar; } + console.log("sss "+this.userInfo.showHome); + this.hideHome = this.userInfo.showHome; this.load(); this.getInfo(); this.getSysTypeTree().then(rs => { @@ -261,8 +263,15 @@ }); }, methods:{ + // 保存个人主页选项的编辑 saveHideHome(){ //执行隐藏操作 + userApi.updateShowHome(!this.hideHome).then(res=>{ + if(res.status == 200) { + this.userInfo.showHome = !this.hideHome; + this.$message.success('修改成功'); + } + }) }, checkAndSendFinish(){ //验证并发送完成事件 @@ -439,7 +448,7 @@ color: #FFFFFF; margin: 0px; } - + } .avatar:hover .avatarhover{ display: block; From 8e7cfb269a389dcfdea82b3ba658e9638ae9e40c Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Thu, 27 Oct 2022 18:06:09 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index 1a8ec6a5..65608edc 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -81,6 +81,15 @@ const updateDynamic=function (dynamic){ return ajax.get('/xboe/sys/user/update-dynamic?dynamic='+dynamic); } +/** + * 个人主页开关设置 + * flag true - 打开; false - 关闭 + * */ +const updateShowHome=function (flag){ + return ajax.post('/xboe/sys/user/show-home?showHome='+flag); +} + + /** * 二次查询 签名和动态 * */ @@ -96,7 +105,8 @@ export default{ findByName, detail, getOrgSimpleByUserId, - updateSign, - updateDynamic, - findSignDynamic + updateSign, + updateDynamic, + findSignDynamic, + updateShowHome } From 6013430e953203e91edbda25bb7d8f7ced2501ab Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Thu, 27 Oct 2022 18:06:24 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=A1=88=E4=BE=8B=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=82=B9=E7=82=B9=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 37eb48d2..c813d934 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -92,13 +92,14 @@
{{ item.keyword5 }}
-
+
+ {{ item.summary }} - {{displayAll(item)}} + - - {{item.isAll?'收起':'展开'}} - + + +