sidemenu service demand count.
This commit is contained in:
@ -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++;
|
||||
|
Reference in New Issue
Block a user