152 lines
3.5 KiB
Vue
Raw Normal View History

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">对标先进&nbsp;比学赶超</span>
<div class="total-archievement-wrapper">
<div class="total-archievement-rate-wrapper"></div>
<div class="total-archievement-charts-wrapper"></div>
</div>
<div class="reward-wrapper"></div>
2023-03-04 00:09:25 +08:00
</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();
const staffInfo = loadStaffInfo();
2023-03-03 16:08:27 +08:00
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;
min-height: 800px;
height: calc(100vh - 10mm);
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
div {
border: 1px solid red;
box-sizing: border-box;
}
}
.center-wrapper {
//中间部分
width: 50%;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: start;
2023-03-04 00:09:25 +08:00
.slogan {
//标语
2023-03-04 00:09:25 +08:00
margin: 0px;
padding: 15px 0px;
2023-03-04 00:09:25 +08:00
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
}
.total-archievement-wrapper {
//业绩部分
height: 360px;
display: flex;
justify-content: center;
align-items: stretch;
.total-archievement-rate-wrapper {
//业绩比例
width: 25%;
display: flex;
justify-content: center;
align-items: center;
}
.total-archievement-charts-wrapper {
//业绩图表
width: 75%;
display: flex;
justify-content: center;
align-items: center;
}
2023-03-04 00:09:25 +08:00
}
.reward-wrapper {
//奖励部分
height: 240px;
}
2023-03-04 00:09:25 +08:00
}
.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>