<!--
 * @Author: Kane
 * @Date: 2023-03-03 14:38:07
 * @LastEditors: Kane
 * @FilePath: /task_schedule/src/views/DesktopArchievement.vue
 * @Description: 显示在桌面上，展示任务量与业绩的view
 * 
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
-->
<template>
    <div class="view-wrapper">
        <span>对标先进&nbsp;比学赶超</span>
    </div>
</template>

<script lang="ts">
import { reactive, onBeforeMount } from "vue";
import { useRouter } from "vue-router";
import { StaffInfo } from "@/data/cpicxim/StaffInfo";
import { loadStaffInfo } from "@/utils/api/localStorage";
import { ElMessage } from "element-plus";
export default {
    name: "DesktopArchievement",
    setup()
    {
        const router = useRouter();
        const staffInfo: StaffInfo = loadStaffInfo();

        //检查存储的登录信息，不存在则返回登录页面
        if (staffInfo.P13UID == "")
        {
            ElMessage({
                message: "登录信息失效，请重新登录！",
                type: "success",
                center: true,
            });

            router.push("/login");
        }
    },
};
</script>

<style scoped lang="scss">
.view-wrapper {
    box-sizing: border-box;
    height: 100vh;
    width: 100vw;
    border: 1px solid red;
}

span {
    margin: 0px;
    display: block;

    font: {
        family: "FZ-ZHUOHEI";
        weight: 100;
        size: 70px;
    }

    color: $color-bg-05;
    text-shadow: #feebb1 0px 0px,
    #feebb1 5px 0px,
    #feebb1 -5px -0px,
    #feebb1 -0px -5px,
    #feebb1 -4px -4px,
    #feebb1 4px 4px,
    #feebb1 4px -4px,
    #feebb1 -4px 4px;
}
</style>
<style lang="scss">
body {
    background-image: radial-gradient(farthest-corner at 100% 0%,
            $color-bg-01,
            $color-bg-02,
            $color-bg-03,
            $color-bg-04,
            $color-bg-05,
            $color-bg-05);
}
</style>