Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
maintain_service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘帅
maintain_service
Commits
56d4a6d0
Commit
56d4a6d0
authored
Jul 31, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.报表
parent
c011c15c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
9 deletions
+37
-9
JimuReportTokenService.java
...va/com/maintain/common/helper/JimuReportTokenService.java
+6
-5
info.vue
maintain-ui/src/views/business/repairForm/info.vue
+5
-4
orderInfo.vue
maintain-ui/src/views/business/report/orderInfo.vue
+26
-0
No files found.
maintain-common/src/main/java/com/maintain/common/helper/JimuReportTokenService.java
View file @
56d4a6d0
package
com
.
maintain
.
common
.
helper
;
package
com
.
maintain
.
common
.
helper
;
import
com.maintain.common.
core.domain.model.LoginUser
;
import
com.maintain.common.
utils.StringUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.jeecg.modules.jmreport.api.JmReportTokenServiceI
;
import
org.jeecg.modules.jmreport.api.JmReportTokenServiceI
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
...
@@ -33,8 +33,7 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
...
@@ -33,8 +33,7 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
*/
*/
@Override
@Override
public
String
getToken
(
HttpServletRequest
request
)
{
public
String
getToken
(
HttpServletRequest
request
)
{
System
.
out
.
println
(
"---------call---------getToken-----------------------"
);
return
request
.
getHeader
(
"token"
)
==
null
?
request
.
getParameter
(
"token"
)
:
request
.
getHeader
(
"token"
);
return
request
.
getHeader
(
"token"
);
}
}
/**
/**
* Token校验
* Token校验
...
@@ -43,8 +42,10 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
...
@@ -43,8 +42,10 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
*/
*/
@Override
@Override
public
Boolean
verifyToken
(
String
token
)
{
public
Boolean
verifyToken
(
String
token
)
{
System
.
out
.
println
(
"---------verify-----Token---------------"
);
if
(
StringUtils
.
isEmpty
(
token
))
{
System
.
out
.
println
(
token
);
log
.
error
(
"token is null"
);
return
false
;
}
return
true
;
return
true
;
}
}
...
...
maintain-ui/src/views/business/repairForm/info.vue
View file @
56d4a6d0
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
size=
"small"
label-width=
"110px"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
size=
"small"
label-width=
"110px"
>
<div
style=
"display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"
>
<div
style=
"display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"
>
<span
style=
"font-weight: bold; font-size: 18px;"
>
客户车辆信息
</span>
<span
style=
"font-weight: bold; font-size: 18px;"
>
客户车辆信息
</span>
<el-dropdown
trigger=
"click"
@
command=
"menuClick"
>
<el-dropdown
trigger=
"click"
@
command=
"menuClick"
v-if=
"form.id"
>
<el-button
type=
"primary"
>
单据预览
<i
class=
"el-icon-arrow-down el-icon--right"
></i></el-button>
<el-button
type=
"primary"
>
单据预览
<i
class=
"el-icon-arrow-down el-icon--right"
></i></el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"1"
v-hasPermi=
"['business:repairForm:receiptOrder']"
>
接车单
</el-dropdown-item>
<el-dropdown-item
command=
"1"
v-hasPermi=
"['business:repairForm:receiptOrder']"
>
接车单
</el-dropdown-item>
...
@@ -486,6 +486,7 @@ import {listUser} from '@/api/business/user'
...
@@ -486,6 +486,7 @@ import {listUser} from '@/api/business/user'
import
RepairFormClaim
from
'
@/views/business/repairFormClaim/index.vue
'
import
RepairFormClaim
from
'
@/views/business/repairFormClaim/index.vue
'
import
{
authCarNumber
}
from
'
@/utils/ruoyi
'
import
{
authCarNumber
}
from
'
@/utils/ruoyi
'
import
{
formatDate
}
from
'
@/utils
'
import
{
formatDate
}
from
'
@/utils
'
import
{
getToken
}
from
"
@/utils/auth
"
;
export
default
{
export
default
{
name
:
"
Detail
"
,
name
:
"
Detail
"
,
...
@@ -730,13 +731,13 @@ export default {
...
@@ -730,13 +731,13 @@ export default {
menuClick
(
command
)
{
menuClick
(
command
)
{
switch
(
command
)
{
switch
(
command
)
{
case
'
1
'
:
case
'
1
'
:
window
.
open
(
`http://
${
window
.
location
.
hostname
}
:8099/jmreport/view/1110353404338548736?id=
${
this
.
form
.
id
}
`
,
'
_blank
'
);
window
.
open
(
`http://
${
window
.
location
.
hostname
}
:8099/jmreport/view/1110353404338548736?id=
${
this
.
form
.
id
}
&token=Bearer `
+
getToken
()
,
'
_blank
'
);
break
;
break
;
case
'
2
'
:
case
'
2
'
:
window
.
open
(
`http://
${
window
.
location
.
hostname
}
:8099/jmreport/view/1110
433225777262592?id=
${
this
.
form
.
id
}
`
,
'
_blank
'
);
window
.
open
(
`http://
${
window
.
location
.
hostname
}
:8099/jmreport/view/1110
796360669376512?id=
${
this
.
form
.
id
}
&token=Bearer `
+
getToken
()
,
'
_blank
'
);
break
;
break
;
case
'
3
'
:
case
'
3
'
:
window
.
open
(
`http://
${
window
.
location
.
hostname
}
:8099/jmreport/view/1110458589836652544?id=
${
this
.
form
.
id
}
`
,
'
_blank
'
);
window
.
open
(
`http://
${
window
.
location
.
hostname
}
:8099/jmreport/view/1110458589836652544?id=
${
this
.
form
.
id
}
&token=Bearer `
+
getToken
()
,
'
_blank
'
);
break
;
break
;
case
'
4
'
:
case
'
4
'
:
...
...
maintain-ui/src/views/business/report/orderInfo.vue
0 → 100644
View file @
56d4a6d0
<
template
>
<i-frame
:src=
"url"
/>
</
template
>
<
script
>
import
{
getToken
}
from
'
@/utils/auth
'
import
{
getBiUrl
}
from
'
@/api/tool/jimu
'
import
iFrame
from
'
@/components/iFrame/index.vue
'
export
default
{
name
:
"
orderInfo
"
,
components
:
{
iFrame
},
data
()
{
return
{
url
:
`http://
${
window
.
location
.
hostname
}
:8099/jmreport/view/1110806499539464192?token=Bearer `
+
getToken
()
}
},
created
()
{
this
.
init
()
},
methods
:
{
}
}
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment