调整布局,开始开发总业绩组件。

This commit is contained in:
2023-03-04 16:38:56 +08:00
parent 04e7a8cd5b
commit 075e9050dd
7 changed files with 156 additions and 223 deletions

View File

@@ -12,6 +12,11 @@
<!-- <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>
</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 {