调整布局,开始开发总业绩组件。
This commit is contained in:
41
code/web/task_schedule/src/components/Archievement.vue
Normal file
41
code/web/task_schedule/src/components/Archievement.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<!--
|
||||
* @Author: Kane
|
||||
* @Date: 2023-03-04 16:09:31
|
||||
* @LastEditors: Kane
|
||||
* @FilePath: /task_schedule/src/components/Archievement.vue
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
-->
|
||||
<template>
|
||||
<div class="archievement-wrapper">
|
||||
<span>总业绩</span>
|
||||
<span>¥ {{ }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { reactive } from "vue";
|
||||
import * as echarts from "echarts";
|
||||
|
||||
export default {
|
||||
name: "ArchievementComponent",
|
||||
setup()
|
||||
{
|
||||
const ui = reactive({
|
||||
total_archievement: 435220,
|
||||
});
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.archievement-wrapper {
|
||||
height: 360px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
}
|
||||
</style>
|
@@ -5,8 +5,8 @@ html {
|
||||
}
|
||||
|
||||
body {
|
||||
/* width: 100vw;
|
||||
height: 100vh; */
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
overflow: hidden;
|
||||
|
@@ -12,6 +12,11 @@
|
||||
<!-- <div class="left-wrapper"></div> -->
|
||||
<div class="center-wrapper">
|
||||
<span class="slogan">对标先进 比学赶超</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>
|
||||
</div>
|
||||
<div class="right-wrapper">
|
||||
|
||||
@@ -30,7 +35,7 @@ export default {
|
||||
setup()
|
||||
{
|
||||
const router = useRouter();
|
||||
const staffInfo: StaffInfo = loadStaffInfo();
|
||||
const staffInfo = loadStaffInfo();
|
||||
|
||||
//检查存储的登录信息,不存在则返回登录页面
|
||||
if (staffInfo.P13UID == "")
|
||||
@@ -50,8 +55,8 @@ export default {
|
||||
<style scoped lang="scss">
|
||||
.view-wrapper {
|
||||
box-sizing: border-box;
|
||||
min-height: 600px;
|
||||
height: 100vh;
|
||||
min-height: 800px;
|
||||
height: calc(100vh - 10mm);
|
||||
min-width: 1280px;
|
||||
width: 100vw;
|
||||
padding: 5mm;
|
||||
@@ -59,9 +64,24 @@ export default {
|
||||
justify-content: end;
|
||||
align-items: stretch;
|
||||
|
||||
div {
|
||||
border: 1px solid red;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
.center-wrapper {
|
||||
//中间部分
|
||||
width: 50%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
justify-content: start;
|
||||
|
||||
.slogan {
|
||||
//标语
|
||||
margin: 0px;
|
||||
padding-top: 15px;
|
||||
padding: 15px 0px;
|
||||
display: block;
|
||||
text-align: center;
|
||||
|
||||
@@ -82,15 +102,36 @@ export default {
|
||||
#feebb1 -4px 4px;
|
||||
}
|
||||
|
||||
div {
|
||||
border: 1px solid red;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
.total-archievement-wrapper {
|
||||
//业绩部分
|
||||
height: 360px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
|
||||
.center-wrapper {
|
||||
width: 50%;
|
||||
// margin-left: auto;
|
||||
.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;
|
||||
}
|
||||
}
|
||||
|
||||
.reward-wrapper {
|
||||
//奖励部分
|
||||
height: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
.right-wrapper {
|
||||
|
Reference in New Issue
Block a user