Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
24bb9444
提交
24bb9444
authored
8月 20, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'release' into dev
上级
8a735229
d557086d
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
43 行增加
和
4 行删除
+43
-4
index.js
src/router/index.js
+22
-2
index.vue
src/views/jimureport/design/index.vue
+1
-2
entry.vue
src/views/jimureport/entry.vue
+20
-0
没有找到文件。
src/router/index.js
浏览文件 @
24bb9444
import
{
createWebHashHistory
,
createRouter
}
from
'vue-router'
import
{
createWebHashHistory
,
createRouter
,
createWebHistory
}
from
'vue-router'
/* Layout */
import
Layout
from
'@/layout'
import
{
isMobile
}
from
'@/utils'
...
...
@@ -26,8 +26,26 @@ import { isMobile } from '@/utils'
*/
// 使用的路由
export
let
constantRoutes
=
[]
export
const
publicRoutes
=
[
{
path
:
'/report/jmreport/view/:id'
,
component
:
()
=>
import
(
'@/views/jimureport/entry.vue'
),
hidden
:
true
},
{
path
:
'/report/jmreport/index/:id'
,
component
:
()
=>
import
(
'@/views/jimureport/entry.vue'
),
hidden
:
true
},
{
path
:
'/report/jmreport/shareView/:id'
,
component
:
()
=>
import
(
'@/views/jimureport/entry.vue'
),
hidden
:
true
}
]
// PC端 公共路由
export
const
constantPCRoutes
=
[
...
publicRoutes
,
{
path
:
'/redirect'
,
component
:
Layout
,
...
...
@@ -90,6 +108,7 @@ export const constantPCRoutes = [
]
// 移动端 公共路由
export
const
constantMobileRoutes
=
[
...
publicRoutes
,
{
path
:
'/login'
,
component
:
()
=>
import
(
'@/views/login'
),
...
...
@@ -218,7 +237,8 @@ export const dynamicRoutes = [
]
const
router
=
createRouter
({
history
:
createWebHashHistory
(),
// 路由模式:createWebHashHistory,createWebHistory
history
:
createWebHistory
(),
routes
:
isMobile
()
?
[...
constantMobileRoutes
]
:
[...
constantPCRoutes
],
// 移动端单独静态公共路由表
scrollBehavior
(
to
,
from
,
savedPosition
)
{
if
(
savedPosition
)
{
...
...
src/views/jimureport/design/index.vue
浏览文件 @
24bb9444
...
...
@@ -263,7 +263,7 @@ const getReportEditUrl = (row) => {
// 新建报表
const
handleAdd
=
async
()
=>
{
const
res
=
await
addReportAPI
()
window
.
open
(
`
${
reportBaseDomain
}${
reportEditURL
}
/
${
res
.
result
.
id
}
?menuType=
${
queryParams
.
reportType
}
`
)
window
.
open
(
`
${
reportBaseDomain
}${
reportEditURL
}
/
${
res
.
result
.
id
}
?
&token=
${
getToken
()}
&tenantId=
${
userStore
.
$state
.
userInfo
.
deptId
}
&
menuType=
${
queryParams
.
reportType
}
`
)
}
// 导入报表
const
handleImport
=
()
=>
{
...
...
@@ -280,7 +280,6 @@ const handleImport = () => {
}).
catch
(
err
=>
{
proxy
.
$modal
.
msgError
(
err
)
})
}
// 浏览报表
const
handleView
=
(
row
)
=>
{
...
...
src/views/jimureport/entry.vue
0 → 100644
浏览文件 @
24bb9444
<
template
>
<iframe
:src=
"openUrl"
frameborder=
"0"
></iframe>
</
template
>
<
script
setup
>
const
reportBaseDomain
=
import
.
meta
.
env
.
VITE_APP_REPORT_URL
// 基础域名
const
route
=
useRoute
()
const
openUrl
=
reportBaseDomain
+
route
.
fullPath
</
script
>
<
style
scoped
lang=
"scss"
>
iframe
{
width
:
100%
;
height
:
100%
;
}
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论