|
@@ -163,6 +163,15 @@ async function renderCalendar(){
|
|
|
function handleClickEvent(item){
|
|
|
if(item.matter_type===1) return Toast("该事项未关联指标")
|
|
|
const {activeStart,activeEnd} = baseCalendarRef.value?.calendarApi.view||{}
|
|
|
+ // 存一份数据到sessionStorage 回退时回显用
|
|
|
+ const obj={
|
|
|
+ permissionValue:permissionValue.value,
|
|
|
+ permissionName:permissionName.value,
|
|
|
+ monthValue:monthValue.value,
|
|
|
+ activeId:activeId.value,
|
|
|
+ activeIndex:activeIndex.value
|
|
|
+ }
|
|
|
+ sessionStorage.setItem('forexCalendarData',JSON.stringify(obj))
|
|
|
//信息传到transIndex,在transIndex跳转
|
|
|
window.parent.postMessage({
|
|
|
path:'/hzyb/forex/detail',
|
|
@@ -178,7 +187,19 @@ function handleClickEvent(item){
|
|
|
showEventList.value = false
|
|
|
}
|
|
|
onMounted(()=>{
|
|
|
- monthValue.value = new Date()
|
|
|
+ const obj=sessionStorage.getItem('forexCalendarData')?JSON.parse(sessionStorage.getItem('forexCalendarData')):null
|
|
|
+ if(obj){
|
|
|
+ const d=moment(obj.monthValue).format('YYYY/MM/DD')
|
|
|
+ monthValue.value = new Date(d)
|
|
|
+ permissionValue.value=obj.permissionValue
|
|
|
+ permissionName.value=obj.permissionName
|
|
|
+ activeId.value=Number(obj.activeId)
|
|
|
+ activeIndex.value= Number(obj.activeIndex)
|
|
|
+ changeMonth(monthValue.value)
|
|
|
+ }else{
|
|
|
+ monthValue.value = new Date()
|
|
|
+ }
|
|
|
+
|
|
|
getPermissionList()
|
|
|
})
|
|
|
</script>
|