fix: inbound_summary 页面 v-if 从不存在权限码 inbound_summary:view 改为菜单权限 inbound_summary
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div v-if="userStore.hasPermission('inbound_summary:view')" class="app-container">
|
||||
<div v-if="userStore.hasPermission('inbound_summary')" class="app-container">
|
||||
<div class="filter-container">
|
||||
<CompanySelector v-model="listQuery.company" @change="handleFilter" style="margin-right: 10px;" />
|
||||
|
||||
@ -141,14 +141,9 @@ const fetchData = async () => {
|
||||
}
|
||||
|
||||
const res = await getInboundSummaryList(params)
|
||||
console.log('[inbound_summary] res.data:', res.data)
|
||||
if (res.data) {
|
||||
list.value = res.data.items || []
|
||||
total.value = res.data.total || 0
|
||||
console.log('[inbound_summary] list.value 长度:', list.value.length, 'total:', total.value)
|
||||
if (list.value.length > 0) {
|
||||
console.log('[inbound_summary] 第一条:', JSON.stringify(list.value[0]))
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取入库记录失败', error)
|
||||
|
||||
Reference in New Issue
Block a user