|
|
@@ -6,6 +6,7 @@
|
|
6
|
6
|
<top-nav id="topmenu-container" class="topmenu-container" v-if="settingsStore.topNav" />
|
|
7
|
7
|
|
|
8
|
8
|
<div class="right-menu">
|
|
|
9
|
+ <div v-if="intervalDate" style="color: #DC143C; font-size: 20px; font-weight: 700; margin-right: 60px;">系统将在{{ intervalDate }}天后到期停止使用,请及时联系管理员。</div>
|
|
9
|
10
|
<!-- 签入界面 -->
|
|
10
|
11
|
<telephone-login></telephone-login>
|
|
11
|
12
|
<template v-if="appStore.device !== 'mobile'">
|
|
|
@@ -116,7 +117,7 @@
|
|
116
|
117
|
const appStore = useAppStore()
|
|
117
|
118
|
const userStore = useUserStore()
|
|
118
|
119
|
const settingsStore = useSettingsStore()
|
|
119
|
|
-
|
|
|
120
|
+
|
|
120
|
121
|
function toggleSideBar() {
|
|
121
|
122
|
appStore.toggleSideBar()
|
|
122
|
123
|
}
|
|
|
@@ -149,6 +150,21 @@
|
|
149
|
150
|
const activeName = ref(-1);
|
|
150
|
151
|
const loading = ref(false)
|
|
151
|
152
|
const msgNum = ref(false);
|
|
|
153
|
+ onMounted(() => {
|
|
|
154
|
+ getInterval();
|
|
|
155
|
+ })
|
|
|
156
|
+ // 授权 到期时间
|
|
|
157
|
+ const intervalDate = ref(0)
|
|
|
158
|
+ function getInterval() {
|
|
|
159
|
+ getPageListData('/getauthdate').then(({ data }) => {
|
|
|
160
|
+ console.log(data)
|
|
|
161
|
+ intervalDate.value = data || 0;
|
|
|
162
|
+ if ( data === 0 ) {
|
|
|
163
|
+ logout()
|
|
|
164
|
+ }
|
|
|
165
|
+ })
|
|
|
166
|
+
|
|
|
167
|
+ }
|
|
152
|
168
|
|
|
153
|
169
|
// 获取消息
|
|
154
|
170
|
const getMsg = function _f(type = activeName.value) {
|
|
|
@@ -173,6 +189,7 @@
|
|
173
|
189
|
|
|
174
|
190
|
return _f;
|
|
175
|
191
|
}();
|
|
|
192
|
+
|
|
176
|
193
|
setInterval(() => {
|
|
177
|
194
|
getMsg();
|
|
178
|
195
|
}, 1000 * 30)
|