|
@@ -1,6 +1,6 @@
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref } from 'vue';
|
|
|
+import { ref,onMounted } from 'vue';
|
|
|
import { Icon } from 'vant';
|
|
|
import { useRoute } from 'vue-router';
|
|
|
import moment from 'moment';
|
|
@@ -32,7 +32,11 @@ const actionsList = ref([
|
|
|
]);//底部固定数据
|
|
|
const eventList = ref([]);//日程信息
|
|
|
const Tabs = ref(getTabsByRole(localStorage.getItem('ssbg-role')));//顶部tab
|
|
|
-const showCalendar = ref(localStorage.getItem('ssbg-role') !== 'admin');
|
|
|
+const showCalendar = ref(true);
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ showCalendar.value = localStorage.getItem('ssbg-role') === 'admin' ? false : true;
|
|
|
+})
|
|
|
|
|
|
/* 获取日历日程列表 */
|
|
|
const getEventList = async () => {
|
|
@@ -103,7 +107,7 @@ const switchTabHandle = (key) => {
|
|
|
v-if="showCalendar"
|
|
|
/>
|
|
|
|
|
|
- <div class="fix-action" v-if="isWxprogram()">
|
|
|
+ <div class="fix-action" v-if="isWxprogram() && showCalendar">
|
|
|
<ul class="action-ul">
|
|
|
<li
|
|
|
v-for="item in actionsList"
|