弹窗修改

This commit is contained in:
zhangsir
2024-06-17 09:47:16 +08:00
parent 549b74d47d
commit d8a69328f1

View File

@@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<div v-if="Object.keys(detailData).length" class="growth"> <div v-if="!Object.keys(detailData).length" class="growth">
<div class="growth_heads"> <div class="growth_heads">
<div class="growth_left"> <div class="growth_left">
<div class="left_text">我的成长路径</div> <div class="left_text">我的成长路径</div>
@@ -25,7 +25,7 @@
</div> </div>
<div class="growth_right"> <div class="growth_right">
<div class="right_text">什么是成长路径</div> <div class="right_text">什么是成长路径</div>
<div class="growth_img" @click="centerDialogVisible= true"> <div class="growth_img" @click="checkedTrue">
<img class="img" src="../../assets/images/growth/mark.png" alt=""> <img class="img" src="../../assets/images/growth/mark.png" alt="">
</div> </div>
</div> </div>
@@ -125,7 +125,7 @@
<div class="dialog_body_text"> <div class="dialog_body_text">
本功能针对学员所在组织岗位职级自动匹配成长路径完成本路径方可晋升 本功能针对学员所在组织岗位职级自动匹配成长路径完成本路径方可晋升
</div> </div>
<div class="dialog_body_btn" @click="centerDialogVisible = false"> <div class="dialog_body_btn" @click="checkedVisible">
<span>我已阅读</span> <span>我已阅读</span>
</div> </div>
<div class="dialog_body_foot"> <div class="dialog_body_foot">
@@ -148,7 +148,7 @@ export default {
return { return {
downBody: false, downBody: false,
explainBody: false, explainBody: false,
centerDialogVisible: true, centerDialogVisible: false,
checked: false, checked: false,
detailData: {}, detailData: {},
} }
@@ -165,6 +165,11 @@ export default {
}) })
} }
}) })
if(localStorage.getItem("checkedGrowth") != null){
this.centerDialogVisible = localStorage.getItem("checkedGrowth") === "true"
}else{
this.centerDialogVisible = true
}
}, },
watch:{ watch:{
@@ -176,6 +181,14 @@ export default {
query: {growId:this.detailData.growId,name: this.detailData.growName} query: {growId:this.detailData.growId,name: this.detailData.growName}
}) })
}, },
checkedTrue(){
this.centerDialogVisible = true
this.checked = localStorage.getItem("checkedGrowth") === "false"
},
checkedVisible(){
this.centerDialogVisible = false
localStorage.setItem("checkedGrowth",!this.checked)
},
}, },
computed: { computed: {
...mapGetters(['userInfo']) ...mapGetters(['userInfo'])