Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
337dcd0c
提交
337dcd0c
authored
7月 24, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(bi): 修改:报表查询自己被分配的数据接口调整
上级
ddd1d165
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
9 行删除
+12
-9
report.js
src/api/bi/report.js
+1
-1
index.js
src/api/index.js
+1
-0
index.vue
src/views/bi/report/index.vue
+10
-8
没有找到文件。
src/api/bi/report.js
浏览文件 @
337dcd0c
import
request
from
'@/utils/request'
// 获取被分配的报表列表
export
function
getReportListAPI
(
params
)
{
export
function
get
User
ReportListAPI
(
params
)
{
return
request
({
url
:
'/report/jimuReport/query/list'
,
params
...
...
src/api/index.js
浏览文件 @
337dcd0c
...
...
@@ -8,6 +8,7 @@ export * from './bi/competitor'
export
*
from
'./bi/finance'
export
*
from
'./bi/livecate'
export
*
from
'./bi/product'
export
*
from
'./bi/report'
export
*
from
'./bi/sale'
export
*
from
'./bi/store'
export
*
from
'./bi/supply'
...
...
src/views/bi/report/index.vue
浏览文件 @
337dcd0c
...
...
@@ -37,8 +37,8 @@
<el-table
v-loading=
"loading"
:data=
"reportList"
>
<el-table-column
label=
"报表名称"
key=
"
reportN
ame"
prop=
"
reportN
ame"
key=
"
n
ame"
prop=
"
n
ame"
align=
"left"
sortable
>
<template
#
default=
"scope"
>
...
...
@@ -46,7 +46,7 @@
<el-icon>
<List
color=
"green"
/>
</el-icon>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
reportN
ame
}}
</span>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
n
ame
}}
</span>
</div>
</
template
>
</el-table-column>
...
...
@@ -79,18 +79,18 @@
</el-table-column>
</el-table>
<
!-- <
pagination v-show="total > 0"
<pagination
v-show=
"total > 0"
:total=
"total"
v-model:page=
"queryParams.pageNum"
v-model:limit=
"queryParams.pageSize"
@pagination="getReportList" />
-->
@
pagination=
"getReportList"
/>
</div>
</div>
</template>
<
script
setup
name=
"Role"
>
import
{
getReportListAPI
,
selReportCategoryAPI
}
from
"@/api"
import
{
get
User
ReportListAPI
,
selReportCategoryAPI
}
from
"@/api"
import
{
getToken
}
from
'@/utils/auth'
import
useUserStore
from
'@/store/modules/user'
...
...
@@ -125,11 +125,13 @@
// 获取报表列表
const
loading
=
ref
(
true
)
const
reportList
=
ref
([])
const
total
=
ref
(
0
)
// 查询报表列表
function
getReportList
()
{
loading
.
value
=
true
getReportListAPI
(
queryParams
).
then
(
response
=>
{
reportList
.
value
=
response
.
data
getUserReportListAPI
(
queryParams
).
then
(
response
=>
{
reportList
.
value
=
response
.
data
.
rows
total
.
value
=
response
.
data
.
total
loading
.
value
=
false
})
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论