index.vue
2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<template>
<PageWrapper>
<template #headerContent> <WorkbenchHeader /> </template>
<div class="lg:flex">
<div class="lg:w-7/10 w-full !mr-4 enter-y">
<ProjectCard :loading="loading" class="enter-y" />
<DynamicInfo :loading="loading" class="!my-4 enter-y" />
</div>
<div class="lg:w-3/10 w-full enter-y">
<QuickNav :loading="loading" class="enter-y" />
<Card class="!my-4 enter-y" :loading="loading">
<img class="xl:h-50 h-30 mx-auto" src="../../../assets/svg/illustration.svg" />
</Card>
<SaleRadar :loading="loading" class="enter-y" />
</div>
</div>
<BasicModal
@register="register"
v-bind="$attrs"
:mask="true"
:showCancelBtn="false"
:showOkBtn="false"
:canFullscreen="false"
:closable="false"
:maskStyle="maskColor"
:height="600"
:width="1500"
:maskClosable="false"
title="请修改密码"
:helpMessage="['请您修改密码']"
>
<PasswordDialog />
</BasicModal>
</PageWrapper>
</template>
<script lang="ts" setup>
import PasswordDialog from '/@/views/system/password/index.vue';
import { BasicModal, useModal } from '/@/components/Modal';
import { getAuthCache } from '/@/utils/auth';
import { USER_INFO_KEY } from '/@/enums/cacheEnum';
import { ref, onMounted } from 'vue';
import { Card } from 'ant-design-vue';
import { PageWrapper } from '/@/components/Page';
import WorkbenchHeader from './components/WorkbenchHeader.vue';
import ProjectCard from './components/ProjectCard.vue';
import QuickNav from './components/QuickNav.vue';
import DynamicInfo from './components/DynamicInfo.vue';
import SaleRadar from './components/SaleRadar.vue';
const maskColor = ref({ backgroundColor: 'grey' });
const statusModel = ref(false);
const [register, { openModal }] = useModal();
onMounted(() => {
const userInfo: object = getAuthCache(USER_INFO_KEY);
if (userInfo.needSetPwd == true) {
statusModel.value = true;
openModal(statusModel.value);
} else if (userInfo.needSetPwd == false) {
openModal(statusModel.value);
}
});
//Yunteng123456!!!
//Password123456!
//System123456!
//Testrole123456!
const loading = ref(false);
setTimeout(() => {
loading.value = false;
}, 1500);
</script>