feat: 锁屏遮罩添加系统重置等待
This commit is contained in:
@@ -143,6 +143,17 @@ onUnmounted(() => {
|
|||||||
{{ t('components.LockScreen.backReload2') }}
|
{{ t('components.LockScreen.backReload2') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 锁屏-OMC系统重置 -->
|
||||||
|
<div class="lock-screen_reload" v-if="lockedStore.type === 'reset'">
|
||||||
|
<LoadingOutlined style="font-size: 56px" />
|
||||||
|
<div class="text">
|
||||||
|
{{ t('components.LockScreen.systemReset') }}
|
||||||
|
</div>
|
||||||
|
<div class="desc">
|
||||||
|
{{ t('components.LockScreen.systemReset2') }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,9 @@ export default {
|
|||||||
validError:'Validation Failure',
|
validError:'Validation Failure',
|
||||||
backLogin:'Logout to Relogin',
|
backLogin:'Logout to Relogin',
|
||||||
backReload:'Restarting now, please wait...',
|
backReload:'Restarting now, please wait...',
|
||||||
backReload2:'When ready, your browser will automatically refresh.',
|
backReload2:'When ready, Your browser will automatically refresh.',
|
||||||
|
systemReset:'Resetting now, please wait...',
|
||||||
|
systemReset2:'Data information is being reset.',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -130,6 +130,8 @@ export default {
|
|||||||
backLogin:'退出并重新登录',
|
backLogin:'退出并重新登录',
|
||||||
backReload:'正在重启,请稍等...',
|
backReload:'正在重启,请稍等...',
|
||||||
backReload2:'当准备就绪的时候,你的浏览器会自动刷新。',
|
backReload2:'当准备就绪的时候,你的浏览器会自动刷新。',
|
||||||
|
systemReset:'正在重置,请稍等...',
|
||||||
|
systemReset2:'数据信息正在重置',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ import { defineStore } from 'pinia';
|
|||||||
/**锁屏信息类型 */
|
/**锁屏信息类型 */
|
||||||
type Locked = {
|
type Locked = {
|
||||||
/**锁屏类型 */
|
/**锁屏类型 */
|
||||||
type: 'none' | 'lock' | 'reload' | string;
|
type: 'none' | 'lock' | 'reload' | 'reset' ;
|
||||||
/**lock 超时锁屏时间,秒*/
|
/**lock 超时锁屏时间,秒*/
|
||||||
lockTimeout: number;
|
lockTimeout: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
const useLockedStore = defineStore('locked', {
|
const useLockedStore = defineStore('locked', {
|
||||||
state: (): Locked => ({
|
state: (): Locked => ({
|
||||||
type: localGet(CACHE_LOCAL_LOCK) || 'none',
|
type: (localGet(CACHE_LOCAL_LOCK) || 'none') as Locked['type'],
|
||||||
lockTimeout: 0,
|
lockTimeout: 0,
|
||||||
}),
|
}),
|
||||||
getters: {},
|
getters: {},
|
||||||
@@ -38,7 +38,7 @@ const useLockedStore = defineStore('locked', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 设置锁定
|
// 设置锁定
|
||||||
async fnLock(type: 'none' | 'lock' | 'reload' | string) {
|
async fnLock(type: Locked['type'] ) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
localSet(CACHE_LOCAL_LOCK, type);
|
localSet(CACHE_LOCAL_LOCK, type);
|
||||||
if (type === 'reload') {
|
if (type === 'reload') {
|
||||||
|
|||||||
Reference in New Issue
Block a user