Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
baiguangyao
mr-julyedu
Commits
91ab28d9
Commit
91ab28d9
authored
Nov 06, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull
parent
0d89d717
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
src/components/blessingPreheat/index.js
+4
-1
src/components/blessingPreheat/recordPopup/index.js
+12
-2
No files found.
src/components/blessingPreheat/index.js
View file @
91ab28d9
...
...
@@ -488,7 +488,10 @@ class BlessingPreheat extends Component {
}
{
showRecordList
&&
<
RecordPopup
handleToHide
=
{()
=>
this
.
handleToHide
(
'showRecordList'
)}
/
>
<
RecordPopup
history
=
{
this
.
props
.
history
}
handleToHide
=
{()
=>
this
.
handleToHide
(
'showRecordList'
)}
/
>
}
{
shareMark
&&
...
...
src/components/blessingPreheat/recordPopup/index.js
View file @
91ab28d9
import
React
,
{
Component
}
from
'react'
import
'./index.scss'
import
{
http
}
from
'@/utils'
;
import
{
http
,
getParam
}
from
'@/utils'
;
export
default
class
RecordPopup
extends
Component
{
constructor
(
props
)
{
...
...
@@ -21,6 +21,16 @@ export default class RecordPopup extends Component {
});
}
handleToTestRecord
=
(
e
,
id
)
=>
{
e
.
preventDefault
();
const
{
history
}
=
this
.
props
;
if
(
getParam
(
'version'
))
{
location
.
href
=
`
${
API
.
m
}
/levelTest/report?id=
${
id
}
&version=
${
getParam
(
'version'
)}
`
;
}
else
{
location
.
href
=
`
${
API
.
m
}
/levelTest/report?id=
${
id
}
&version=
${
getParam
(
'version'
)}
`
;
}
}
render
()
{
let
{
recordList
}
=
this
.
state
;
...
...
@@ -49,7 +59,7 @@ export default class RecordPopup extends Component {
<
span
className
=
"tr"
>
{
index
===
0
?
(
<
a
href
=
{
`/levelTest/report?id=
${
item
.
id
}
`
}
>
测试记录
<
/a
>
<
a
onClick
=
{(
e
)
=>
this
.
handleToTestRecord
(
e
,
item
.
id
)
}
>
测试记录
<
/a
>
)
:
(
null
)
}
<
/span
>
...
...
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