|
|
@ -1,6 +1,6 @@
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { onMounted, ref } from "vue";
|
|
|
|
import { onMounted, ref } from "vue";
|
|
|
|
import {getToolsCount } from '@/api/home/main'
|
|
|
|
import { getToolsCount } from "@/api/home/main";
|
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
const emit = defineEmits<{
|
|
|
|
(e: "reject", params: any);
|
|
|
|
(e: "reject", params: any);
|
|
|
@ -10,16 +10,16 @@ const emit = defineEmits<{
|
|
|
|
const show = ref(false);
|
|
|
|
const show = ref(false);
|
|
|
|
const toolsData = ref({} as any);
|
|
|
|
const toolsData = ref({} as any);
|
|
|
|
|
|
|
|
|
|
|
|
async function getData(){
|
|
|
|
async function getData() {
|
|
|
|
const res=await getToolsCount();
|
|
|
|
const res = await getToolsCount();
|
|
|
|
toolsData.value=res.data || {};
|
|
|
|
toolsData.value = res.data || {};
|
|
|
|
if(res.code == 'OK'){
|
|
|
|
if (res.code == "OK") {
|
|
|
|
showModal();
|
|
|
|
showModal();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onMounted(()=>{
|
|
|
|
onMounted(() => {
|
|
|
|
getData()
|
|
|
|
getData();
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function showModal() {
|
|
|
|
function showModal() {
|
|
|
|
show.value = true;
|
|
|
|
show.value = true;
|
|
|
@ -40,8 +40,6 @@ async function viewRepeat(e: MouseEvent) {
|
|
|
|
closeModal();
|
|
|
|
closeModal();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
defineExpose({
|
|
|
|
showModal,
|
|
|
|
showModal,
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -55,32 +53,33 @@ defineExpose({
|
|
|
|
<div class="wrapper-mark">某某有限公司-某某事业部-张小凡</div>
|
|
|
|
<div class="wrapper-mark">某某有限公司-某某事业部-张小凡</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="wrapper-content">
|
|
|
|
<div class="wrapper-content">
|
|
|
|
<div class="flex_box" style="height: 100px">
|
|
|
|
<div class="flex_box">
|
|
|
|
<div class="item">
|
|
|
|
<div class="item">
|
|
|
|
<SvgIcon name="task_count" width="80" height="96" />
|
|
|
|
<SvgIcon name="task_count" width="49" height="58" />
|
|
|
|
<div class="num_box">{{ toolsData?.total || 0 }}</div>
|
|
|
|
<div class="num_box">{{ toolsData?.total || 0 }}</div>
|
|
|
|
<div class="title_box">任务总数</div>
|
|
|
|
<div class="title_box">任务总数</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
|
|
|
<div class="item">
|
|
|
|
<SvgIcon name="task_wait" width="80" height="96" />
|
|
|
|
<SvgIcon name="task_wait" width="49" height="58" />
|
|
|
|
<div class="num_box">{{ toolsData?.treat || 0 }}</div>
|
|
|
|
<div class="num_box">{{ toolsData?.treat || 0 }}</div>
|
|
|
|
<div class="title_box">待审批</div>
|
|
|
|
<div class="title_box">待审批</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
|
|
|
<div class="item">
|
|
|
|
<SvgIcon name="task_over" width="80" height="96" />
|
|
|
|
<SvgIcon name="task_over" width="49" height="58" />
|
|
|
|
<div class="num_box">{{ toolsData?.approvedCount || 0 }}</div>
|
|
|
|
<div class="num_box">{{ toolsData?.approvedCount || 0 }}</div>
|
|
|
|
<div class="title_box">已审批</div>
|
|
|
|
<div class="title_box">已审批</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
|
|
<div class="footer" @click="viewRepeat">我知道了</div>
|
|
|
|
|
|
|
|
<!-- <div class="footer">
|
|
|
|
<SvgIcon
|
|
|
|
<SvgIcon
|
|
|
|
@click="viewRepeat"
|
|
|
|
@click="viewRepeat"
|
|
|
|
style="cursor: pointer"
|
|
|
|
style="cursor: pointer"
|
|
|
|
name="login_r"
|
|
|
|
name="login_r"
|
|
|
|
width="200"
|
|
|
|
width="167"
|
|
|
|
height="70"
|
|
|
|
height="60"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</n-modal>
|
|
|
|
</n-modal>
|
|
|
@ -91,60 +90,61 @@ defineExpose({
|
|
|
|
background-image: url(../../../../assets/images/approval_modal_bg.png);
|
|
|
|
background-image: url(../../../../assets/images/approval_modal_bg.png);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 100%;
|
|
|
|
background-size: 100%;
|
|
|
|
width: 700px;
|
|
|
|
width: 510px;
|
|
|
|
height: 500px;
|
|
|
|
height: 361px;
|
|
|
|
box-shadow: none !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.wrapper {
|
|
|
|
.wrapper {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
left: calc(50% - 350px);
|
|
|
|
left: calc(50% - 350px);
|
|
|
|
.wrapper-hearder {
|
|
|
|
.wrapper-hearder {
|
|
|
|
margin-top: 110px;
|
|
|
|
margin-top: 80px;
|
|
|
|
.wrapper-title {
|
|
|
|
.wrapper-title {
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 16px;
|
|
|
|
font-size: 16px;
|
|
|
|
font-family: PingFang SC, PingFang SC-Semibold;
|
|
|
|
font-family: PingFang SC, PingFang SC-Semibold;
|
|
|
|
font-weight: Semibold;
|
|
|
|
font-weight: 600;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
color: #333333;
|
|
|
|
color: #333333;
|
|
|
|
line-height: 32px;
|
|
|
|
line-height: 22px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.wrapper-mark {
|
|
|
|
.wrapper-mark {
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
font-size: 13px;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Regular;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Regular;
|
|
|
|
font-weight: Regular;
|
|
|
|
font-weight: 400;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
color: #666666;
|
|
|
|
color: #666666;
|
|
|
|
line-height: 18px;
|
|
|
|
line-height: 18px;
|
|
|
|
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.wrapper-content {
|
|
|
|
.wrapper-content {
|
|
|
|
flex: 1;
|
|
|
|
flex: 1;
|
|
|
|
border-radius: 8px;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin: 100px 60px 35px 120px;
|
|
|
|
margin: 24px 50px 16px 48px;
|
|
|
|
.flex_box {
|
|
|
|
.flex_box {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
margin: 58.5px 0 0 20px;
|
|
|
|
.item {
|
|
|
|
.item {
|
|
|
|
.num_box {
|
|
|
|
.num_box {
|
|
|
|
font-size: 32px;
|
|
|
|
font-size: 20px;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Bold;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Bold;
|
|
|
|
font-weight: Bold;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
color: #202020;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
color: #202020;
|
|
|
|
|
|
|
|
line-height: 23px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.title_box {
|
|
|
|
.title_box {
|
|
|
|
opacity: 0.6;
|
|
|
|
opacity: 0.6;
|
|
|
|
font-size: 16px;
|
|
|
|
font-size: 12px;
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
font-weight: Regular;
|
|
|
|
font-weight: Regular;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
color: #202020;
|
|
|
|
color: #202020;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -193,14 +193,39 @@ defineExpose({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.footer {
|
|
|
|
.footer {
|
|
|
|
display: flex;
|
|
|
|
width: 153px;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
height: 46px;
|
|
|
|
align-items: center;
|
|
|
|
background: linear-gradient(135deg, #3258e8, #786efc);
|
|
|
|
justify-content: center;
|
|
|
|
border: 1px solid;
|
|
|
|
margin: 20px 30px 0 0;
|
|
|
|
border-image: linear-gradient(123deg, #d7dffe 2%, #d7d5ff 88%) 1 1;
|
|
|
|
|
|
|
|
border-radius: 24px;
|
|
|
|
|
|
|
|
box-shadow: 0px 2px 6px 0px rgba(116, 153, 253, 0.3);
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
margin: 20px auto 0;
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
bottom: -80px;
|
|
|
|
bottom: -30px;
|
|
|
|
|
|
|
|
left: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
|
|
|
font-family: YouSheBiaoTiHei, YouSheBiaoTiHei-Regular;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
|
|
line-height: 46px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// .footer {
|
|
|
|
|
|
|
|
// display: flex;
|
|
|
|
|
|
|
|
// flex-flow: row nowrap;
|
|
|
|
|
|
|
|
// align-items: center;
|
|
|
|
|
|
|
|
// justify-content: center;
|
|
|
|
|
|
|
|
// margin: 20px 30px 0 0;
|
|
|
|
|
|
|
|
// position: relative;
|
|
|
|
|
|
|
|
// bottom: -30px;
|
|
|
|
|
|
|
|
// left: 20px;
|
|
|
|
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|