各角色工作台支持批量保存常用入口和业务员看板;AI 简报改成单行横幅避免锁死滑动;仓库/提现/对账等列表统一下拉刷新,并补代付码弹窗。 Co-authored-by: Cursor <cursoragent@cursor.com>
42 lines
1.4 KiB
Vue
42 lines
1.4 KiB
Vue
<template>
|
||
<business-page-layout title="功能" :show-tabbar="true" :tab-index="1">
|
||
<workbench-features ref="features" :api="featuresApi"></workbench-features>
|
||
</business-page-layout>
|
||
</template>
|
||
|
||
<script>
|
||
/**
|
||
* 平台管理员端「功能」tab 薄壳页
|
||
* 壳页只负责:套本端 layout(navbar/tabbar 配置)+ 注入本端角色接口,
|
||
* 搜索/分组滑动/长按收藏/使用上报等全部逻辑在主包共享组件 workbench-features(四端复用)
|
||
*/
|
||
import BusinessPageLayout from '@/subPackages/sub_platform_admin/components/business-page-layout.vue'
|
||
import {
|
||
getPlatformAdminWorkbenchEntries,
|
||
getPlatformAdminEntryUserData,
|
||
togglePlatformAdminFavoriteEntry,
|
||
batchSavePlatformAdminFavoriteEntry,
|
||
reportPlatformAdminEntryUsage,
|
||
} from '@/api/platformAdmin.js'
|
||
|
||
export default {
|
||
components: { BusinessPageLayout },
|
||
data() {
|
||
return {
|
||
/** 注入共享组件的本端接口集合(统一返回 { res, data, ok }) */
|
||
featuresApi: {
|
||
getEntries: getPlatformAdminWorkbenchEntries,
|
||
getUserData: getPlatformAdminEntryUserData,
|
||
toggleFavorite: togglePlatformAdminFavoriteEntry,
|
||
batchSaveFavorites: batchSavePlatformAdminFavoriteEntry,
|
||
reportUsage: reportPlatformAdminEntryUsage,
|
||
},
|
||
}
|
||
},
|
||
onShow() {
|
||
// 返回时刷新收藏状态(长按菜单用;常用/最近只在首页展示)
|
||
if (this.$refs.features) this.$refs.features.refreshUserData()
|
||
},
|
||
}
|
||
</script>
|