This commit is contained in:
cxc
2022-12-05 15:58:30 +08:00
parent a7a8f21d11
commit 51c464985a
32 changed files with 289 additions and 1112 deletions

View File

@ -2,7 +2,14 @@
<el-badge
v-if="!item.hidden"
:hidden="
![`/approval/list`, `/approval/dataList/approval`].includes(basePath)
![
`/approval/list`,
`/approval/dataList/approval`,
`/auditing/achievement`,
`/auditing/demand`,
`/auditing/serviceDemand`,
`/auditing/Enterpriseproducts`,
].includes(basePath)
"
:value="getCount(basePath)"
class="count-badge"
@ -37,7 +44,7 @@
:title="hasTitle(onlyOneChild.meta.title)"
>{{
["/auditing/serviceDemand"].includes(basePath)
? `${onlyOneChild.meta.title} (${getCount(basePath)})`
? `${onlyOneChild.meta.title} (${userStore.serviceDemandTotal})`
: onlyOneChild.meta.title
}}</span
></template
@ -103,8 +110,14 @@ const getCount = (basePath) => {
return userStore.unApprovedBusiness;
} else if (props.basePath == "/approval/dataList/approval") {
return userStore.unApprovedExpert;
} else if (props.basePath == "/auditing/achievement") {
return userStore.unApprovedAchivement;
} else if (props.basePath == "/auditing/demand") {
return userStore.unApprovedTechnology;
} else if (props.basePath == "/auditing/Enterpriseproducts") {
return userStore.unApprovedProduct;
} else if (props.basePath == "/auditing/serviceDemand") {
return userStore.serviceDemandTotal;
return userStore.unApprovedService;
} else {
return 0;
}