no commit message
This commit is contained in:
@@ -17,9 +17,9 @@
|
|||||||
{{ replacePhrases(menuItem.title, replaceRule1) }}
|
{{ replacePhrases(menuItem.title, replaceRule1) }}
|
||||||
</div>
|
</div>
|
||||||
<div v-if="isHuiJiaMenu(menuItem) && unreturnedCount >= 1" class="push-value-badge">{{ unreturnedCount }}</div>
|
<div v-if="isHuiJiaMenu(menuItem) && unreturnedCount >= 1" class="push-value-badge">{{ unreturnedCount }}</div>
|
||||||
<div v-if="isEstimateMenu(menuItem) && estimateCounts.total > 0" class="push-value-badge">{{ estimateCounts.total }}</div>
|
<!-- <div v-if="isEstimateMenu(menuItem) && estimateCounts.total > 0" class="push-value-badge">{{ estimateCounts.total }}</div>-->
|
||||||
<div v-if="isSurveyMenu(menuItem) && surveyFollowCount > 0" class="push-value-badge">{{ surveyFollowCount }}</div>
|
<!-- <div v-if="isSurveyMenu(menuItem) && surveyFollowCount > 0" class="push-value-badge">{{ surveyFollowCount }}</div>-->
|
||||||
<div v-if="isReportMenu(menuItem) && reportProduceCounts.total > 0" class="push-value-badge">{{ reportProduceCounts.total }}</div>
|
<!-- <div v-if="isReportMenu(menuItem) && reportProduceCounts.total > 0" class="push-value-badge">{{ reportProduceCounts.total }}</div>-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
|
|||||||
@@ -5,22 +5,14 @@
|
|||||||
<el-submenu style="height: 100%;" v-if="item.children && item.children.length > 0" :index="item.routerName" >
|
<el-submenu style="height: 100%;" v-if="item.children && item.children.length > 0" :index="item.routerName" >
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
<!-- 一级菜单【回价项目】显示未回价数量 -->
|
|
||||||
<!-- <span v-if="isHuiJiaMenu && unreturnedCount > 0" class="push-value-badge">{{ unreturnedCount }}</span> -->
|
|
||||||
<!-- 二级菜单【未回价】显示未回价数量 -->
|
<!-- 二级菜单【未回价】显示未回价数量 -->
|
||||||
<span v-if="isUnreturnedPriceMenu && unreturnedCount > 0" class="push-value-badge">{{ unreturnedCount }}</span>
|
<span v-if="isUnreturnedPriceMenu && unreturnedCount > 0" class="push-value-badge">{{ unreturnedCount }}</span>
|
||||||
<!-- 一级菜单【预估】显示预估总数 -->
|
|
||||||
<!-- <span v-if="isEstimateMenu && estimateCounts.total > 0" class="push-value-badge">{{ estimateCounts.total }}</span> -->
|
|
||||||
<!-- 二级菜单【预估单】显示预估总数 -->
|
<!-- 二级菜单【预估单】显示预估总数 -->
|
||||||
<span v-if="isEstimatePendingMenu && estimateCounts.total > 0" class="push-value-badge">{{ estimateCounts.total }}</span>
|
<!-- <span v-if="isEstimatePendingMenu && estimateCounts.total > 0" class="push-value-badge">{{ estimateCounts.total }}</span>-->
|
||||||
<!-- 一级菜单【查勘项目】显示查勘跟进中数量 -->
|
|
||||||
<!-- <span v-if="isSurveyMenu && surveyFollowCount > 0" class="push-value-badge">{{ surveyFollowCount }}</span> -->
|
|
||||||
<!-- 二级菜单【查勘列表】显示查勘跟进中数量 -->
|
<!-- 二级菜单【查勘列表】显示查勘跟进中数量 -->
|
||||||
<span v-if="isSurveyListMenu && surveyFollowCount > 0" class="push-value-badge">{{ surveyFollowCount }}</span>
|
<!-- <span v-if="isSurveyListMenu && surveyFollowCount > 0" class="push-value-badge">{{ surveyFollowCount }}</span>-->
|
||||||
<!-- 一级菜单【报告项目】显示报告总数 -->
|
|
||||||
<!-- <span v-if="isReportMenu && reportProduceCounts.total > 0" class="push-value-badge">{{ reportProduceCounts.total }}</span> -->
|
|
||||||
<!-- 二级菜单【报告制作】显示报告总数 -->
|
<!-- 二级菜单【报告制作】显示报告总数 -->
|
||||||
<span v-if="isReportProduceMenu && reportProduceCounts.total > 0" class="push-value-badge">{{ reportProduceCounts.total }}</span>
|
<!-- <span v-if="isReportProduceMenu && reportProduceCounts.total > 0" class="push-value-badge">{{ reportProduceCounts.total }}</span>-->
|
||||||
</template>
|
</template>
|
||||||
<!-- 递归调用MenuItem组件 -->
|
<!-- 递归调用MenuItem组件 -->
|
||||||
<menu-item v-for="(child, index) in item.children" :key="index" :item="child" class="menu-custom"></menu-item>
|
<menu-item v-for="(child, index) in item.children" :key="index" :item="child" class="menu-custom"></menu-item>
|
||||||
@@ -32,21 +24,21 @@
|
|||||||
<!-- 三级菜单【未回价列表】显示未回价数量 -->
|
<!-- 三级菜单【未回价列表】显示未回价数量 -->
|
||||||
<span v-if="isUnreturnedPriceListMenu && unreturnedCount > 0" class="push-value-badge">{{ unreturnedCount }}</span>
|
<span v-if="isUnreturnedPriceListMenu && unreturnedCount > 0" class="push-value-badge">{{ unreturnedCount }}</span>
|
||||||
<!-- 三级菜单【待制作】(预估)显示预估待制作数量 -->
|
<!-- 三级菜单【待制作】(预估)显示预估待制作数量 -->
|
||||||
<span v-if="isEstimatePendingListMenu && estimateCounts.pending > 0" class="push-value-badge">{{ estimateCounts.pending }}</span>
|
<!-- <span v-if="isEstimatePendingListMenu && estimateCounts.pending > 0" class="push-value-badge">{{ estimateCounts.pending }}</span>-->
|
||||||
<!-- 三级菜单【二审待制作】(预估)显示预估二审数量 -->
|
<!-- 三级菜单【二审待制作】(预估)显示预估二审数量 -->
|
||||||
<span v-if="isSecondReviewListMenu && estimateCounts.secondReview > 0" class="push-value-badge">{{ estimateCounts.secondReview }}</span>
|
<!-- <span v-if="isSecondReviewListMenu && estimateCounts.secondReview > 0" class="push-value-badge">{{ estimateCounts.secondReview }}</span>-->
|
||||||
<!-- 三级菜单【三审待制作】(预估)显示预估三审数量 -->
|
<!-- 三级菜单【三审待制作】(预估)显示预估三审数量 -->
|
||||||
<span v-if="isThirdReviewListMenu && estimateCounts.thirdReview > 0" class="push-value-badge">{{ estimateCounts.thirdReview }}</span>
|
<!-- <span v-if="isThirdReviewListMenu && estimateCounts.thirdReview > 0" class="push-value-badge">{{ estimateCounts.thirdReview }}</span>-->
|
||||||
<!-- 三级菜单【待签章】(预估)显示预估待签章数量 -->
|
<!-- 三级菜单【待签章】(预估)显示预估待签章数量 -->
|
||||||
<span v-if="isSignListMenu && estimateCounts.sign > 0" class="push-value-badge">{{ estimateCounts.sign }}</span>
|
<!-- <span v-if="isSignListMenu && estimateCounts.sign > 0" class="push-value-badge">{{ estimateCounts.sign }}</span>-->
|
||||||
<!-- 三级菜单【跟进中】(查勘)显示查勘跟进中数量 -->
|
<!-- 三级菜单【跟进中】(查勘)显示查勘跟进中数量 -->
|
||||||
<span v-if="isSurveyFollowMenu && surveyFollowCount > 0" class="push-value-badge">{{ surveyFollowCount }}</span>
|
<!-- <span v-if="isSurveyFollowMenu && surveyFollowCount > 0" class="push-value-badge">{{ surveyFollowCount }}</span>-->
|
||||||
<!-- 三级菜单【待制作】(报告)显示报告待制作数量 -->
|
<!-- 三级菜单【待制作】(报告)显示报告待制作数量 -->
|
||||||
<span v-if="isReportPendingMenu && reportProduceCounts.pending > 0" class="push-value-badge">{{ reportProduceCounts.pending }}</span>
|
<!-- <span v-if="isReportPendingMenu && reportProduceCounts.pending > 0" class="push-value-badge">{{ reportProduceCounts.pending }}</span>-->
|
||||||
<!-- 三级菜单【二审待制作】(报告)显示报告二审待制作数量 -->
|
<!-- 三级菜单【二审待制作】(报告)显示报告二审待制作数量 -->
|
||||||
<span v-if="isReportSecondReviewMenu && reportProduceCounts.secondReview > 0" class="push-value-badge">{{ reportProduceCounts.secondReview }}</span>
|
<!-- <span v-if="isReportSecondReviewMenu && reportProduceCounts.secondReview > 0" class="push-value-badge">{{ reportProduceCounts.secondReview }}</span>-->
|
||||||
<!-- 三级菜单【三审待制作】(报告)显示报告三审待制作数量 -->
|
<!-- 三级菜单【三审待制作】(报告)显示报告三审待制作数量 -->
|
||||||
<span v-if="isReportThirdReviewMenu && reportProduceCounts.thirdReview > 0" class="push-value-badge">{{ reportProduceCounts.thirdReview }}</span>
|
<!-- <span v-if="isReportThirdReviewMenu && reportProduceCounts.thirdReview > 0" class="push-value-badge">{{ reportProduceCounts.thirdReview }}</span>-->
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -176,32 +168,13 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
// 获取所有数据,确保每个菜单项都能显示正确的数值
|
// 获取所有数据,确保每个菜单项都能显示正确的数值
|
||||||
// 回价相关菜单
|
// 回价相关菜单
|
||||||
// if (this.isHuiJiaMenu || this.isUnreturnedPriceMenu || this.isUnreturnedPriceListMenu) {
|
|
||||||
this.fetchUnreturnedCount()
|
this.fetchUnreturnedCount()
|
||||||
// }
|
|
||||||
// 预估相关菜单 - 包含预估模块下的所有菜单
|
// 预估相关菜单 - 包含预估模块下的所有菜单
|
||||||
// if (this.isEstimateMenu || this.isEstimatePendingMenu || this.isEstimatePendingListMenu || this.isSecondReviewListMenu || this.isThirdReviewListMenu || this.isSignListMenu ||
|
|
||||||
// this.item.title === '预估' || this.item.title === '预估单' ||
|
|
||||||
// (this.item.title === '待制作' && this.item.parentName === '预估单') ||
|
|
||||||
// (this.item.title && this.item.title.includes('二审') && this.item.parentName === '预估单') ||
|
|
||||||
// (this.item.title && this.item.title.includes('三审') && this.item.parentName === '预估单') ||
|
|
||||||
// this.item.title === '待签章') {
|
|
||||||
this.fetchEstimateCount()
|
this.fetchEstimateCount()
|
||||||
// }
|
|
||||||
// 查勘相关菜单 - 包含查勘模块下的所有菜单
|
// 查勘相关菜单 - 包含查勘模块下的所有菜单
|
||||||
// if (this.isSurveyMenu || this.isSurveyListMenu || this.isSurveyFollowMenu ||
|
|
||||||
// this.item.title === '查勘项目' || this.item.title === '查勘' ||
|
|
||||||
// this.item.title === '查勘列表' || this.item.title === '跟进中') {
|
|
||||||
this.fetchSurveyFollowCount()
|
this.fetchSurveyFollowCount()
|
||||||
// }
|
|
||||||
// 报告相关菜单 - 包含报告模块下的所有菜单
|
// 报告相关菜单 - 包含报告模块下的所有菜单
|
||||||
// if (this.isReportMenu || this.isReportProduceMenu || this.isReportPendingMenu || this.isReportSecondReviewMenu || this.isReportThirdReviewMenu ||
|
|
||||||
// this.item.title === '报告项目' || this.item.title === '报告制作' ||
|
|
||||||
// (this.item.title === '待制作' && this.item.parentName === '报告制作') ||
|
|
||||||
// (this.item.title && this.item.title.includes('二审') && this.item.parentName === '报告制作') ||
|
|
||||||
// (this.item.title && this.item.title.includes('三审') && this.item.parentName === '报告制作')) {
|
|
||||||
this.fetchReportCount()
|
this.fetchReportCount()
|
||||||
// }
|
|
||||||
|
|
||||||
// 保存回调引用用于销毁时移除
|
// 保存回调引用用于销毁时移除
|
||||||
this.eventBusCallback = (count) => {
|
this.eventBusCallback = (count) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user