2023-03-03 16:08:27 +08:00
|
|
|
|
<!--
|
|
|
|
|
* @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>
|
2023-03-03 17:28:49 +08:00
|
|
|
|
<div class="view-wrapper">
|
2023-03-04 00:09:25 +08:00
|
|
|
|
<!-- <div class="left-wrapper"></div> -->
|
|
|
|
|
<div class="center-wrapper">
|
|
|
|
|
<span class="slogan">对标先进 比学赶超</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right-wrapper">
|
|
|
|
|
|
|
|
|
|
</div>
|
2023-03-03 17:28:49 +08:00
|
|
|
|
</div>
|
2023-03-03 16:08:27 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { reactive, onBeforeMount } from "vue";
|
2023-03-03 17:28:49 +08:00
|
|
|
|
import { useRouter } from "vue-router";
|
2023-03-03 16:08:27 +08:00
|
|
|
|
import { StaffInfo } from "@/data/cpicxim/StaffInfo";
|
|
|
|
|
import { loadStaffInfo } from "@/utils/api/localStorage";
|
2023-03-03 17:28:49 +08:00
|
|
|
|
import { ElMessage } from "element-plus";
|
2023-03-03 16:08:27 +08:00
|
|
|
|
export default {
|
|
|
|
|
name: "DesktopArchievement",
|
|
|
|
|
setup()
|
|
|
|
|
{
|
2023-03-03 17:28:49 +08:00
|
|
|
|
const router = useRouter();
|
2023-03-03 16:08:27 +08:00
|
|
|
|
const staffInfo: StaffInfo = loadStaffInfo();
|
|
|
|
|
|
2023-03-03 17:28:49 +08:00
|
|
|
|
//检查存储的登录信息,不存在则返回登录页面
|
|
|
|
|
if (staffInfo.P13UID == "")
|
2023-03-03 16:08:27 +08:00
|
|
|
|
{
|
2023-03-03 17:28:49 +08:00
|
|
|
|
ElMessage({
|
|
|
|
|
message: "登录信息失效,请重新登录!",
|
|
|
|
|
type: "success",
|
|
|
|
|
center: true,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
router.push("/login");
|
|
|
|
|
}
|
2023-03-03 16:08:27 +08:00
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2023-03-03 17:28:49 +08:00
|
|
|
|
.view-wrapper {
|
2023-03-03 16:08:27 +08:00
|
|
|
|
box-sizing: border-box;
|
2023-03-04 00:09:25 +08:00
|
|
|
|
min-height: 600px;
|
2023-03-03 17:28:49 +08:00
|
|
|
|
height: 100vh;
|
2023-03-04 00:09:25 +08:00
|
|
|
|
min-width: 1280px;
|
2023-03-03 17:28:49 +08:00
|
|
|
|
width: 100vw;
|
2023-03-04 00:09:25 +08:00
|
|
|
|
padding: 5mm;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: end;
|
|
|
|
|
align-items: stretch;
|
2023-03-03 17:28:49 +08:00
|
|
|
|
|
2023-03-04 00:09:25 +08:00
|
|
|
|
.slogan {
|
|
|
|
|
margin: 0px;
|
|
|
|
|
padding-top: 15px;
|
|
|
|
|
display: block;
|
|
|
|
|
text-align: center;
|
2023-03-03 17:28:49 +08:00
|
|
|
|
|
2023-03-04 00:09:25 +08:00
|
|
|
|
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;
|
2023-03-03 17:28:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-03-04 00:09:25 +08:00
|
|
|
|
div {
|
|
|
|
|
border: 1px solid red;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.center-wrapper {
|
|
|
|
|
width: 50%;
|
|
|
|
|
// margin-left: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-wrapper {
|
|
|
|
|
min-width: 400px;
|
|
|
|
|
width: 25%;
|
2023-03-03 17:28:49 +08:00
|
|
|
|
}
|
2023-03-03 16:08:27 +08:00
|
|
|
|
</style>
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
body {
|
2023-03-03 17:28:49 +08:00
|
|
|
|
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);
|
2023-03-03 16:08:27 +08:00
|
|
|
|
}
|
|
|
|
|
</style>
|