| | |
| | | <template> |
| | | <div class="login"> |
| | | <login-form ref="loginRef"/> |
| | | <el-dialog |
| | | v-model="tipVisible" |
| | | title="提示" |
| | | width="600" |
| | | align-center |
| | | center |
| | | > |
| | | <span>2026年度专家申请已开始。</span> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button @click="tipVisible = false">关闭</el-button> |
| | | <el-button type="primary" @click="openApply()"> |
| | | 点此申请 |
| | | </el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | <!-- 底部 --> |
| | | <div class="el-login-footer"> |
| | | <span>Copyright ©2023-{{nowYear}} All Rights Reserved.</span> |
| | |
| | | import {onMounted, ref, reactive, watch, defineAsyncComponent, nextTick, onUnmounted} from "vue" |
| | | import useUserStore from '@/store/modules/user' |
| | | import LoginForm from './components/loginForm' |
| | | import {getSettings} from "@/api/backManage/evaluate"; |
| | | const { proxy } = getCurrentInstance() |
| | | const route = useRoute() |
| | | const router = useRouter() |
| | |
| | | } |
| | | |
| | | const noticeRef = ref(null) |
| | | |
| | | const tipVisible = ref(true) |
| | | const state = reactive({ |
| | | activeMenu: 1, |
| | | date: '', |
| | |
| | | dayTime: '', |
| | | checkDetails: false |
| | | }) |
| | | |
| | | const getApplyStatus = async ()=>{ |
| | | const res = await getSettings() |
| | | if(res.code == 200){ |
| | | return res.data |
| | | }else{ |
| | | ElMessage.warning(res.msg) |
| | | return '0' |
| | | } |
| | | } |
| | | |
| | | const openApply = async () => { |
| | | const status = await getApplyStatus(); |
| | | if(status == '1'){ |
| | | const routePath = '/fillForm'; |
| | | const resolvedRoute = router.resolve(routePath); |
| | | const fullPath = resolvedRoute.href |
| | | window.open(fullPath, '_blank'); |
| | | }else{ |
| | | ElMessage.warning('抱歉,专家申请暂未开启,请联系相关人员进行处理') |
| | | } |
| | | } |
| | | |
| | | // 当前时间 |
| | | const getDateTime = () => { |
| | |
| | | justify-content: center; |
| | | height: 100%; |
| | | } |
| | | |
| | | ::v-deep(.el-overlay-dialog){ |
| | | .el-dialog:not(.is-fullscreen){ |
| | | margin-top: auto !important; |
| | | .el-dialog__body{ |
| | | padding-top: 50px; |
| | | padding-bottom: 50px; |
| | | font-size: 20px; |
| | | } |
| | | } |
| | | } |
| | | .el-login-footer { |
| | | height: 40px; |
| | | line-height: 40px; |