badge
This commit is contained in:
@ -23,6 +23,9 @@ const useUserStore = defineStore("user", {
|
||||
unApprovedService: 0,
|
||||
unApprovedProduct: 0,
|
||||
serviceDemandTotal: 0,
|
||||
achievementTotal: 0,
|
||||
technologyTotal: 0,
|
||||
productTotal: 0,
|
||||
}),
|
||||
actions: {
|
||||
// 登录
|
||||
@ -80,6 +83,9 @@ const useUserStore = defineStore("user", {
|
||||
this.getUnApprovedService();
|
||||
this.getUnApprovedProduct();
|
||||
this.getServiceDemandTotal();
|
||||
this.getAchievementTotal();
|
||||
this.getProductTotal();
|
||||
this.getTechnologyTotal();
|
||||
},
|
||||
|
||||
async getUnApprovedBusiness() {
|
||||
@ -131,6 +137,18 @@ const useUserStore = defineStore("user", {
|
||||
const resp = await listCasDemand();
|
||||
this.serviceDemandTotal = resp.total;
|
||||
},
|
||||
async getAchievementTotal() {
|
||||
const resp = await expertAchievementList();
|
||||
this.achievementTotal = resp.total;
|
||||
},
|
||||
async getTechnologyTotal() {
|
||||
const resp = await businessList();
|
||||
this.technologyTotal = resp.total;
|
||||
},
|
||||
async getProductTotal() {
|
||||
const resp = await enterpriseProductApprovalList();
|
||||
this.productTotal = resp.total;
|
||||
},
|
||||
// 退出系统
|
||||
logOut() {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user