|
@@ -150,7 +150,7 @@
|
|
|
</ul>
|
|
|
<div class="fr">
|
|
|
<div style="float:right;height: 50px;padding-right:20px">
|
|
|
- <el-badge :value="12" style="cursor: pointer;margin-top:15px;" @click="handleOpenDrawer">
|
|
|
+ <el-badge :value="jobData.sumCount" :max="99" style="cursor: pointer;margin-top:15px;" @click="handleOpenDrawer">
|
|
|
<el-icon :size="20" color="#fff">
|
|
|
<Opportunity />
|
|
|
</el-icon>
|
|
@@ -190,17 +190,17 @@
|
|
|
<h4>set title by slot</h4>
|
|
|
</template> -->
|
|
|
<template #default>
|
|
|
- <div style="color:#fff;margin-bottom:20px">
|
|
|
- 通知提醒
|
|
|
+ <div style="margin-bottom:20px">
|
|
|
+ <TitleInfo :content="'通知提醒'"></TitleInfo>
|
|
|
</div>
|
|
|
- <div style="color:#fff;margin-bottom:20px">开发中</div>
|
|
|
+ <div style="color:#fff;margin-bottom:20px;font-size:12px">开发中</div>
|
|
|
<div class="job-box">
|
|
|
- <div style="color:#fff;margin-bottom:20px">
|
|
|
- 工作事项
|
|
|
+ <div style="margin-bottom:20px">
|
|
|
+ <TitleInfo :content="'工作事项'"></TitleInfo>
|
|
|
</div>
|
|
|
<div class="job-list">
|
|
|
<div class="job-item" style="margin-right:5px">
|
|
|
- <el-badge :value="10" style="margin-right:20px;margin-top:10px">
|
|
|
+ <el-badge :value="jobData.unreadMailCount" :max="99" style="margin-right:20px;margin-top:10px">
|
|
|
<div style="margin-top:-10px">
|
|
|
<el-icon size="20" color="#fff">
|
|
|
<Reading />
|
|
@@ -210,7 +210,7 @@
|
|
|
<div>未读邮件</div>
|
|
|
</div>
|
|
|
<div class="job-item" style="margin-right:5px">
|
|
|
- <el-badge :value="10" style="margin-right:20px;margin-top:10px">
|
|
|
+ <el-badge :value="jobData.waitFlowCount" :max="99" style="margin-right:20px;margin-top:10px">
|
|
|
<div style="margin-top:-10px">
|
|
|
<el-icon size="20" color="#fff">
|
|
|
<CopyDocument />
|
|
@@ -220,7 +220,7 @@
|
|
|
<div>待审批</div>
|
|
|
</div>
|
|
|
<div class="job-item">
|
|
|
- <el-badge :value="10" style="margin-right:20px;margin-top:10px">
|
|
|
+ <el-badge :value="jobData.claimCount" :max="99" style="margin-right:20px;margin-top:10px">
|
|
|
<div style="margin-top:-10px">
|
|
|
<el-icon size="20" color="#fff">
|
|
|
<Notebook />
|
|
@@ -230,7 +230,7 @@
|
|
|
<div>待认领</div>
|
|
|
</div>
|
|
|
<div class="job-item" style="margin-right:5px">
|
|
|
- <el-badge :value="10" style="margin-right:20px;margin-top:10px">
|
|
|
+ <el-badge :value="jobData.waitPurchaseCount" :max="99" style="margin-right:20px;margin-top:10px">
|
|
|
<div style="margin-top:-10px">
|
|
|
<el-icon size="20" color="#fff">
|
|
|
<ShoppingCart />
|
|
@@ -240,7 +240,7 @@
|
|
|
<div>待采购</div>
|
|
|
</div>
|
|
|
<div class="job-item" style="margin-right:5px">
|
|
|
- <el-badge :value="10" style="margin-right:20px;margin-top:10px">
|
|
|
+ <el-badge :value="jobData.sampleHandoverCount" :max="99" style="margin-right:20px;margin-top:10px">
|
|
|
<div style="margin-top:-10px">
|
|
|
<el-icon size="20" color="#fff">
|
|
|
<Tickets />
|
|
@@ -250,7 +250,7 @@
|
|
|
<div>样品交接单</div>
|
|
|
</div>
|
|
|
<div class="job-item">
|
|
|
- <el-badge :value="10" style="margin-right:20px;margin-top:10px">
|
|
|
+ <el-badge :value="jobData.contractHandoverCount" :max="99" style="margin-right:20px;margin-top:10px">
|
|
|
<div style="margin-top:-10px">
|
|
|
<el-icon size="20" color="#fff">
|
|
|
<Memo />
|
|
@@ -260,7 +260,7 @@
|
|
|
<div>合同交接单</div>
|
|
|
</div>
|
|
|
<div class="job-item" style="margin-right:5px">
|
|
|
- <el-badge :value="10" style="margin-right:20px;margin-top:10px">
|
|
|
+ <el-badge :value="jobData.waitAccountPayCount" :max="99" style="margin-right:20px;margin-top:10px">
|
|
|
<div style="margin-top:-10px">
|
|
|
<el-icon size="20" color="#fff">
|
|
|
<Money />
|
|
@@ -284,6 +284,8 @@ import { ElMessageBox, ElNotification, ElMessage } from "element-plus";
|
|
|
import useUserStore from "@/store/modules/user";
|
|
|
import "@/components/headerBar/header.scss";
|
|
|
import notice from "@/components/notice/index";
|
|
|
+import TitleInfo from "@/components/TitleInfo/indexOne.vue";
|
|
|
+
|
|
|
const router = useRouter();
|
|
|
const userStore = useUserStore();
|
|
|
const { proxy } = getCurrentInstance();
|
|
@@ -460,7 +462,7 @@ function calcAutoListChidren() {
|
|
|
}
|
|
|
|
|
|
//一维数组转tree
|
|
|
-
|
|
|
+const jobData = ref({});
|
|
|
onMounted(() => {
|
|
|
calcAutoListChidren();
|
|
|
window.addEventListener("resize", calcAutoListChidren);
|
|
@@ -493,6 +495,12 @@ onMounted(() => {
|
|
|
proxy.post("/sysUserMenu/list", { type: 1 }).then((res) => {
|
|
|
commonsRouterList.value = res;
|
|
|
});
|
|
|
+ proxy.get("/statistics/workStatistics").then((res) => {
|
|
|
+ for (const key in res.data) {
|
|
|
+ res.data[key] = Number(res.data[key]);
|
|
|
+ }
|
|
|
+ jobData.value = res.data;
|
|
|
+ });
|
|
|
});
|
|
|
const openDrawer = ref(false);
|
|
|
const handleOpenDrawer = () => {
|
|
@@ -505,6 +513,9 @@ const handleOpenDrawer = () => {
|
|
|
width: 350px !important;
|
|
|
background: rgba(62, 62, 62, 0.99);
|
|
|
// position: relative !important;
|
|
|
+ .el-drawer__header {
|
|
|
+ display: none !important;
|
|
|
+ }
|
|
|
}
|
|
|
.modelClass {
|
|
|
background: none !important;
|