bug修改
This commit is contained in:
parent
875aaf6def
commit
c2f64313fe
|
|
@ -337,12 +337,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 收藏菜单 -->
|
<!-- 收藏菜单 -->
|
||||||
<el-drawer :withHeader="false" size="20%" :show-close="false" :visible.sync="drawerShow" direction="rtl" class="custom-drawer">
|
<el-drawer :withHeader="false" size="20%" :show-close="false" :visible.sync="drawerShow" @close="closeDrawer" direction="rtl" class="custom-drawer">
|
||||||
<div class="myCollect-box">
|
<div class="myCollect-box">
|
||||||
<div class="myCollect-box-title">
|
<div class="myCollect-box-title">
|
||||||
<div style="font-size: 20px;color: #333943;font-weight: 600;">我的收藏</div>
|
<div style="font-size: 20px;color: #333943;font-weight: 600;">我的收藏</div>
|
||||||
<div style="color: #666;cursor: pointer;font-size: 16px;" v-if="!isEdit" @click="isEdit=true">编辑</div>
|
<div style="color: #666;cursor: pointer;font-size: 16px;" v-if="!isEdit" @click="isEdit=true">编辑</div>
|
||||||
<div style="color: #33c2ac;cursor: pointer;font-size: 16px;font-weight: 600;" v-if="isEdit" @click="isEdit=false">确定</div>
|
<div style="color: #33c2ac;cursor: pointer;font-size: 16px;font-weight: 600;" v-if="isEdit" @click="closeDrawer">确定</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="myCollect-box-zhineng">
|
<div class="myCollect-box-zhineng">
|
||||||
<div class="myCollect-box-zhineng-title">收藏菜单</div>
|
<div class="myCollect-box-zhineng-title">收藏菜单</div>
|
||||||
|
|
@ -411,7 +411,6 @@ import Search from '@/components/HeaderSearch'
|
||||||
import { getUserProfile } from '@/api/system/user'
|
import { getUserProfile } from '@/api/system/user'
|
||||||
import { addMenuCollect,deleteMenuCollect,getMenuCollectListApi } from '@/api/system/menu'
|
import { addMenuCollect,deleteMenuCollect,getMenuCollectListApi } from '@/api/system/menu'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Search },
|
components: { Search },
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -485,10 +484,7 @@ export default {
|
||||||
value: val,
|
value: val,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
changCollectStatus() {
|
|
||||||
return
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getUser()
|
this.getUser()
|
||||||
|
|
@ -541,8 +537,13 @@ export default {
|
||||||
menuId:item.menuId
|
menuId:item.menuId
|
||||||
}
|
}
|
||||||
const res = await deleteMenuCollect(param)
|
const res = await deleteMenuCollect(param)
|
||||||
|
this.changCollection(this.menuList,item.menuId,0)
|
||||||
this.getMenuCollectList()
|
this.getMenuCollectList()
|
||||||
},
|
},
|
||||||
|
closeDrawer(){
|
||||||
|
this.isEdit=false;
|
||||||
|
this.drawerShow=false
|
||||||
|
},
|
||||||
goMessageDetail(item) {
|
goMessageDetail(item) {
|
||||||
this.$refs.messagePopover.doClose() // 关闭消息弹窗
|
this.$refs.messagePopover.doClose() // 关闭消息弹窗
|
||||||
// this.$router.push({ path: '/message/detail', query: { id: item.id } }); // 跳消息详情
|
// this.$router.push({ path: '/message/detail', query: { id: item.id } }); // 跳消息详情
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue