sidemenu service demand count.

This commit is contained in:
cxc
2022-11-21 16:40:21 +08:00
parent daba128033
commit 136574a8f4
8 changed files with 158 additions and 45 deletions

View File

@ -4,6 +4,7 @@ import defAva from "@/assets/images/profile.jpg";
import md5 from "js-md5";
import { companyList } from "@/api/dataList/enterprise";
import { expertList } from "@/api/expert/expert";
import { listCasDemand } from "../../api/dataApproval/enterpriseServiceDemand";
const useUserStore = defineStore("user", {
state: () => ({
@ -14,6 +15,7 @@ const useUserStore = defineStore("user", {
permissions: [],
unApprovedBusiness: 10,
unApprovedExpert: 20,
serviceDemandTotal: 0,
}),
actions: {
// 登录
@ -75,9 +77,11 @@ const useUserStore = defineStore("user", {
pageSize: 1,
pageNum: 10,
}),
listCasDemand(),
]);
this.unApprovedBusiness = resps[0].total;
this.unApprovedExpert = resps[1].total;
this.serviceDemandTotal = resps[2].total;
},
unApprovedBusinessPlus() {
this.unApprovedBusiness++;