This commit is contained in:
daihh
2022-10-27 18:31:51 +08:00
3 changed files with 30 additions and 10 deletions

View File

@@ -81,6 +81,15 @@ const updateDynamic=function (dynamic){
return ajax.get('/xboe/sys/user/update-dynamic?dynamic='+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, findByName,
detail, detail,
getOrgSimpleByUserId, getOrgSimpleByUserId,
updateSign, updateSign,
updateDynamic, updateDynamic,
findSignDynamic findSignDynamic,
updateShowHome
} }

View File

@@ -92,13 +92,14 @@
<div v-if="item.keyword5">{{ item.keyword5 }}</div> <div v-if="item.keyword5">{{ item.keyword5 }}</div>
</div> </div>
</router-link> </router-link>
<div class="case-info-summary" @click="jumcasedet(item)"> <div class="case-info-summary two-line-ellipsis" @click="jumcasedet(item)">
{{ item.summary }}
<!-- <router-link :to="'/case/detail?id='+item.id"> --> <!-- <router-link :to="'/case/detail?id='+item.id"> -->
{{displayAll(item)}} <!-- {{displayAll(item)}} -->
<!-- </router-link> --> <!-- </router-link> -->
<span style="color:#588afc;cursor:pointer;" v-if="item.summary.length>150" @click.stop="changeIsAll(item)"> <!-- <span style="color:#588afc;cursor:pointer;" v-if="item.summary.length>150" @click.stop="changeIsAll(item)"> -->
{{item.isAll?'收起':'展开'}} <!-- {{item.isAll?'收起':'展开'}} -->
</span> <!-- </span> -->
</div> </div>
<div style="display: flex;justify-content: flex-end;"> <div style="display: flex;justify-content: flex-end;">
<div style="margin:8px 0;"> <div style="margin:8px 0;">

View File

@@ -254,6 +254,8 @@
if(this.userInfo.avatar){ if(this.userInfo.avatar){
this.avatarUrl = this.avatar; this.avatarUrl = this.avatar;
} }
console.log("sss "+this.userInfo.showHome);
this.hideHome = this.userInfo.showHome;
this.load(); this.load();
this.getInfo(); this.getInfo();
this.getSysTypeTree().then(rs => { this.getSysTypeTree().then(rs => {
@@ -261,8 +263,15 @@
}); });
}, },
methods:{ methods:{
// 保存个人主页选项的编辑
saveHideHome(){ saveHideHome(){
//执行隐藏操作 //执行隐藏操作
userApi.updateShowHome(!this.hideHome).then(res=>{
if(res.status == 200) {
this.userInfo.showHome = !this.hideHome;
this.$message.success('修改成功');
}
})
}, },
checkAndSendFinish(){ checkAndSendFinish(){
//验证并发送完成事件 //验证并发送完成事件