接待客户统计页面的改造
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<text class="function-name">录音时长</text>
|
||||
<text class="function-desc">统计录音总时长</text>
|
||||
</view>
|
||||
<view class="function-item" @click="showCustomerCountPopup">
|
||||
<view class="function-item" @click="navigateToPage('customer_count')">
|
||||
<view class="function-icon">👥</view>
|
||||
<text class="function-name">接待客户数</text>
|
||||
<text class="function-desc">统计接待客户数量</text>
|
||||
@@ -105,12 +105,6 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<!-- 接待客户数弹出框 -->
|
||||
<CustomerCountPopup
|
||||
v-if="showCustomerCount"
|
||||
:open-trigger="openCustomerCountTrigger"
|
||||
@close="onCustomerCountPopupClose" />
|
||||
|
||||
<!-- 质检覆盖率弹出框 -->
|
||||
<QualityCoveragePopup
|
||||
v-if="showQualityCoverage"
|
||||
@@ -189,11 +183,9 @@ export default {
|
||||
return {
|
||||
contentTop: totalNavbarHeight + 'rpx', // 内容区域距离顶部的距离
|
||||
contentBottom: '96rpx', // 内容区域距离底部的距离(默认值,会在 onReady 中更新)
|
||||
showCustomerCount: false, // 是否显示接待客户数弹出框
|
||||
showQualityCoverage: false, // 是否显示质检覆盖率弹出框
|
||||
subpackageLoaded: false, // 子包是否已加载
|
||||
popupsInitialized: false, // 弹出框组件是否已初始化
|
||||
openCustomerCountTrigger: 0, // 打开接待客户数弹出框的触发器
|
||||
openQualityCoverageTrigger: 0, // 打开质检覆盖率弹出框的触发器
|
||||
}
|
||||
},
|
||||
@@ -340,20 +332,6 @@ export default {
|
||||
}
|
||||
},
|
||||
// #endif
|
||||
// 显示接待客户数弹出框
|
||||
showCustomerCountPopup() {
|
||||
// 显示组件(使用 v-show,组件已存在,只是显示)
|
||||
this.showCustomerCount = true;
|
||||
// 使用触发器来通知子组件打开弹窗,避免直接访问 refs
|
||||
this.$nextTick(() => {
|
||||
this.openCustomerCountTrigger++;
|
||||
});
|
||||
},
|
||||
// 接待客户数弹出框关闭事件
|
||||
onCustomerCountPopupClose() {
|
||||
// 弹出框关闭时隐藏组件
|
||||
this.showCustomerCount = false;
|
||||
},
|
||||
// 显示质检覆盖率弹出框
|
||||
showQualityCoveragePopup() {
|
||||
// 显示组件(使用 v-show,组件已存在,只是显示)
|
||||
|
||||
Reference in New Issue
Block a user