首页报错

This commit is contained in:
2025-12-10 16:31:22 +08:00
parent 8d43a61451
commit bc590497bd
2 changed files with 11 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ export const EmployeeHostsApi = {
getEmployeeHostsPageDsec: async (params: any) => { getEmployeeHostsPageDsec: async (params: any) => {
return await request.get({ url: `/server/employee-big-brother/self_complete` }) return await request.get({ url: `/server/employee-big-brother/self_complete` })
}, },
// 查询爬大哥建联 // 查询爬主播建联
employeeCompleteBarChart: async (params: number[], days: number) => { employeeCompleteBarChart: async (params: number[], days: number) => {
return await request.post({ return await request.post({
url: `/server/employee-hosts/employeeCompleteBarChart`, url: `/server/employee-hosts/employeeCompleteBarChart`,

View File

@@ -251,17 +251,17 @@ onMounted(async () => {
await getAllApi() await getAllApi()
await getAllocationList() await getAllocationList()
//判断菜单有没有主播管理中的管理员权限 //判断菜单有没有爬大哥管理中的管理员权限
if (wsCache.get('roleRouters').find(item => item.id === 5041)?.children.find(item => item.id === 5042)) { if (wsCache.get('roleRouters').find(item => item.id === 5041)?.children.find(item => item.id === 5042)) {
await fetchAllHostsCount(1)
await fetchAllHostsCountDesc(1) await fetchAllHostsCountDesc(1)
await fetchDailyHostsCountDesc()
} }
//判断菜单有没有爬大哥管理中的管理员权限 //判断菜单有没有主播管理中的管理员权限
if (wsCache.get('roleRouters').find(item => item.id === 5019)?.children.find(item => item.id === 5020)) { if (wsCache.get('roleRouters').find(item => item.id === 5019)?.children.find(item => item.id === 5020)) {
await fetchAllHostsCount(1)
await fetchDailyHostsCount() await fetchDailyHostsCount()
await fetchDailyHostsCountDesc()
} }
}) })
@@ -280,17 +280,17 @@ onActivated(async () => {
} }
//判断菜单有没有主播管理中的管理员权限 //判断菜单有没有爬大哥管理中的管理员权限
if (wsCache.get('roleRouters').find(item => item.id === 5041)?.children.find(item => item.id === 5042)) { if (wsCache.get('roleRouters').find(item => item.id === 5041)?.children.find(item => item.id === 5042)) {
await fetchAllHostsCount(1)
await fetchAllHostsCountDesc(1) await fetchAllHostsCountDesc(1)
await fetchDailyHostsCountDesc()
} }
//判断菜单有没有爬大哥管理中的管理员权限 //判断菜单有没有主播管理中的管理员权限
if (wsCache.get('roleRouters').find(item => item.id === 5019)?.children.find(item => item.id === 5020)) { if (wsCache.get('roleRouters').find(item => item.id === 5019)?.children.find(item => item.id === 5020)) {
await fetchAllHostsCount(1)
await fetchDailyHostsCount() await fetchDailyHostsCount()
await fetchDailyHostsCountDesc()
} }
}) })
@@ -759,7 +759,7 @@ async function fetchDailyHostsCountDesc() {
// 如果柱状图依赖这个值,顺便刷新一次图表数据 // 如果柱状图依赖这个值,顺便刷新一次图表数据
} }
// ✅ 爬大哥建联率 // ✅ 爬主播建联率
async function fetchAllHostsCount(val) { async function fetchAllHostsCount(val) {
// 以“传入的用户 id”为准展示顺序也按这里来 // 以“传入的用户 id”为准展示顺序也按这里来
const ids = allocationUserList.value.map(item => item.value) const ids = allocationUserList.value.map(item => item.value)
@@ -774,7 +774,7 @@ async function fetchAllHostsCount(val) {
// 渲染 // 渲染
updateEmployeeBarChart(list) updateEmployeeBarChart(list)
} }
// ✅ 爬大哥建联率
async function fetchAllHostsCountDesc(val) { async function fetchAllHostsCountDesc(val) {
// 以“传入的用户 id”为准展示顺序也按这里来 // 以“传入的用户 id”为准展示顺序也按这里来
const idss = allocationUserList.value.map(item => item.value) const idss = allocationUserList.value.map(item => item.value)