badge
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user