Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
6c86858a
提交
6c86858a
authored
8月 22, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(jimu): 修改:积木新建编辑预览的跳转地址
上级
6846f3fe
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
19 行增加
和
12 行删除
+19
-12
.env.development
.env.development
+1
-1
.env.production
.env.production
+1
-1
.env.staging
.env.staging
+1
-1
permission.js
src/permission.js
+0
-1
index.vue
src/views/jimureport/design/index.vue
+3
-4
entry.vue
src/views/jimureport/entry.vue
+13
-3
login.vue
src/views/login.vue
+0
-1
没有找到文件。
.env.development
浏览文件 @
6c86858a
...
...
@@ -17,7 +17,7 @@ VITE_APP_REDIRECT_URL = 'http://localhost:8085'
VITE_APP_REPORT_URL = 'https://sfa-qa.wxl66.cn'
# 积木报表预览地址
VITE_APP_REPORT_PREVIEW_URL = '#/report/jmreport/view'
# 积木报表分享预览地址
# 积木报表分享预览地址
(后台给的地址会包含后续的/jmreport/shareview)
VITE_APP_REPORT_SHARE_PREVIEW_URL = '#/report'
# 积木报表编辑地址
VITE_APP_REPORT_EDIT_URL = '#/report/jmreport/index'
...
...
.env.production
浏览文件 @
6c86858a
...
...
@@ -16,7 +16,7 @@ VITE_APP_REDIRECT_URL = 'https://sfa.wxl66.cn/link/'
VITE_APP_REPORT_URL = 'https://sfa.wxl66.cn'
# 积木报表预览地址
VITE_APP_REPORT_PREVIEW_URL = '#/report/jmreport/view'
# 积木报表分享预览地址
# 积木报表分享预览地址
(后台给的地址会包含后续的/jmreport/shareview)
VITE_APP_REPORT_SHARE_PREVIEW_URL = '#/report'
# 积木报表编辑地址
VITE_APP_REPORT_EDIT_URL = '#/report/jmreport/index'
...
...
.env.staging
浏览文件 @
6c86858a
...
...
@@ -15,7 +15,7 @@ VITE_APP_REDIRECT_URL = 'https://sfa-qa.wxl66.cn/'
VITE_APP_REPORT_URL = 'https://sfa-qa.wxl66.cn'
# 积木报表预览地址
VITE_APP_REPORT_PREVIEW_URL = '#/report/jmreport/view'
# 积木报表分享预览地址
# 积木报表分享预览地址
(后台给的地址会包含后续的/jmreport/shareview)
VITE_APP_REPORT_SHARE_PREVIEW_URL = '#/report'
# 积木报表编辑地址
VITE_APP_REPORT_EDIT_URL = '#/report/jmreport/index'
...
...
src/permission.js
浏览文件 @
6c86858a
...
...
@@ -61,7 +61,6 @@ router.beforeEach((to, from, next) => {
if
(
isWhiteList
(
to
.
path
))
{
next
()
}
else
{
console
.
log
(
'登录未遂地址'
,
to
.
fullPath
)
next
(
`/login?redirect=
${
to
.
fullPath
}
`
)
NProgress
.
done
()
}
...
...
src/views/jimureport/design/index.vue
浏览文件 @
6c86858a
...
...
@@ -263,7 +263,7 @@ const getReportEditUrl = (row) => {
// 新建报表
const
handleAdd
=
async
()
=>
{
const
res
=
await
addReportAPI
()
window
.
open
(
`
${
reportBaseDomain
}${
reportEditURL
}
/
${
res
.
result
.
id
}
?&t
oken=
${
getToken
()}
&t
enantId=
${
userStore
.
$state
.
userInfo
.
deptId
}
&menuType=
${
queryParams
.
reportType
}
`
)
window
.
open
(
`
${
reportBaseDomain
}${
reportEditURL
}
/
${
res
.
result
.
id
}
?&tenantId=
${
userStore
.
$state
.
userInfo
.
deptId
}
&menuType=
${
queryParams
.
reportType
}
`
)
}
// 导入报表
const
handleImport
=
()
=>
{
...
...
@@ -283,7 +283,7 @@ const handleImport = () => {
}
// 浏览报表
const
handleView
=
(
row
)
=>
{
window
.
open
(
`
${
reportBaseDomain
}${
reportViewURL
}
/
${
row
.
id
}
?t
oken=
${
getToken
()}
&t
enantId=
${
userStore
.
$state
.
userInfo
.
deptId
}
`
)
window
.
open
(
`
${
reportBaseDomain
}${
reportViewURL
}
/
${
row
.
id
}
?tenantId=
${
userStore
.
$state
.
userInfo
.
deptId
}
`
)
}
// 分享报表
...
...
@@ -338,10 +338,9 @@ function copyTextSuccess() {
proxy
.
$modal
.
msgSuccess
(
'链接已复制到剪切板'
)
}
// 修改报表
const
handleEdit
=
(
row
)
=>
{
window
.
open
(
`
${
reportBaseDomain
}${
reportEditURL
}
/
${
row
.
id
}
?t
oken=
${
getToken
()}
&t
enantId=
${
userStore
.
$state
.
userInfo
.
deptId
}
`
)
window
.
open
(
`
${
reportBaseDomain
}${
reportEditURL
}
/
${
row
.
id
}
?tenantId=
${
userStore
.
$state
.
userInfo
.
deptId
}
`
)
}
// 删除报表
const
handleDelete
=
(
row
)
=>
{
...
...
src/views/jimureport/entry.vue
浏览文件 @
6c86858a
<
template
>
<iframe
:src=
"openUrl"
<iframe
:src=
"openUrl"
frameborder=
"0"
></iframe>
</
template
>
<
script
setup
>
const
reportBaseDomain
=
import
.
meta
.
env
.
VITE_APP_REPORT_URL
// 基础域名
const
reportViewURL
=
import
.
meta
.
env
.
VITE_APP_REPORT_PREVIEW_URL
// 预览
const
reportEditURL
=
import
.
meta
.
env
.
VITE_APP_REPORT_EDIT_URL
// 新增/编辑
const
route
=
useRoute
()
console
.
log
(
route
,
route
.
fullPath
)
const
openUrl
=
reportBaseDomain
+
route
.
fullPath
console
.
log
(
route
.
fullPath
,
'rop'
)
// 判断路由上是否包含新建/编辑/预览积木的地址,需要携带 token
if
(
route
.
fullPath
.
includes
(
reportViewURL
.
substring
(
1
))
||
route
.
fullPath
.
includes
(
reportEditURL
.
substring
(
1
)))
{
// 包含预览/编辑地址,需要携带 token
// 包含 token
const
token
=
getToken
()
if
(
token
)
{
openUrl
+=
`&token=
${
token
}
`
}
}
</
script
>
<
style
scoped
...
...
src/views/login.vue
浏览文件 @
6c86858a
...
...
@@ -160,7 +160,6 @@ async function loginByType(type, data) {
type
,
data
}).
then
(()
=>
{
console
.
log
(
'未遂地址跳转'
,
redirect
.
value
)
// 把 redirect.value 上的查询参数拿下来,单独跳转发送如果有的话
const
redirectQuery
=
redirect
.
value
.
split
(
'?'
)[
1
]
// 字符串转对象结构
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论