badge
This commit is contained in:
@ -45,6 +45,12 @@
|
|||||||
>{{
|
>{{
|
||||||
["/auditing/serviceDemand"].includes(basePath)
|
["/auditing/serviceDemand"].includes(basePath)
|
||||||
? `${onlyOneChild.meta.title} (${userStore.serviceDemandTotal})`
|
? `${onlyOneChild.meta.title} (${userStore.serviceDemandTotal})`
|
||||||
|
: ["/auditing/achievement"].includes(basePath)
|
||||||
|
? `${onlyOneChild.meta.title} (${userStore.achievementTotal})`
|
||||||
|
: ["/auditing/demand"].includes(basePath)
|
||||||
|
? `${onlyOneChild.meta.title} (${userStore.technologyTotal})`
|
||||||
|
: ["/auditing/Enterpriseproducts"].includes(basePath)
|
||||||
|
? `${onlyOneChild.meta.title} (${userStore.productTotal})`
|
||||||
: onlyOneChild.meta.title
|
: onlyOneChild.meta.title
|
||||||
}}</span
|
}}</span
|
||||||
></template
|
></template
|
||||||
|
@ -23,6 +23,9 @@ const useUserStore = defineStore("user", {
|
|||||||
unApprovedService: 0,
|
unApprovedService: 0,
|
||||||
unApprovedProduct: 0,
|
unApprovedProduct: 0,
|
||||||
serviceDemandTotal: 0,
|
serviceDemandTotal: 0,
|
||||||
|
achievementTotal: 0,
|
||||||
|
technologyTotal: 0,
|
||||||
|
productTotal: 0,
|
||||||
}),
|
}),
|
||||||
actions: {
|
actions: {
|
||||||
// 登录
|
// 登录
|
||||||
@ -80,6 +83,9 @@ const useUserStore = defineStore("user", {
|
|||||||
this.getUnApprovedService();
|
this.getUnApprovedService();
|
||||||
this.getUnApprovedProduct();
|
this.getUnApprovedProduct();
|
||||||
this.getServiceDemandTotal();
|
this.getServiceDemandTotal();
|
||||||
|
this.getAchievementTotal();
|
||||||
|
this.getProductTotal();
|
||||||
|
this.getTechnologyTotal();
|
||||||
},
|
},
|
||||||
|
|
||||||
async getUnApprovedBusiness() {
|
async getUnApprovedBusiness() {
|
||||||
@ -131,6 +137,18 @@ const useUserStore = defineStore("user", {
|
|||||||
const resp = await listCasDemand();
|
const resp = await listCasDemand();
|
||||||
this.serviceDemandTotal = resp.total;
|
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() {
|
logOut() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
@ -214,5 +214,6 @@ const handleBatchApproval = async () => {
|
|||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
};
|
};
|
||||||
userStore.getUnApprovedProduct();
|
userStore.getUnApprovedProduct();
|
||||||
|
userStore.getProductTotal();
|
||||||
</script>
|
</script>
|
||||||
<style></style>
|
<style></style>
|
||||||
|
@ -207,5 +207,6 @@ const handleBatchApproval = async () => {
|
|||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
};
|
};
|
||||||
userStore.getUnApprovedAchivement();
|
userStore.getUnApprovedAchivement();
|
||||||
|
userStore.getAchievementTotal();
|
||||||
</script>
|
</script>
|
||||||
<style></style>
|
<style></style>
|
||||||
|
@ -247,5 +247,6 @@ const complete = (id) => {
|
|||||||
getSiteList();
|
getSiteList();
|
||||||
getList();
|
getList();
|
||||||
userStore.getUnApprovedTechnology();
|
userStore.getUnApprovedTechnology();
|
||||||
|
userStore.getTechnologyTotal();
|
||||||
</script>
|
</script>
|
||||||
<style></style>
|
<style></style>
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
class="m-2"
|
class="m-2"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
>
|
>
|
||||||
|
<el-option label="待审核" :value="0" />
|
||||||
<el-option label="已审核" :value="1" />
|
<el-option label="已审核" :value="1" />
|
||||||
<el-option label="已拒绝" :value="2" />
|
<el-option label="已拒绝" :value="2" />
|
||||||
</el-select>
|
</el-select>
|
||||||
|
Reference in New Issue
Block a user