Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fe-app-h5
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
万亚飞
fe-app-h5
Commits
316586ea
Commit
316586ea
authored
May 27, 2019
by
万亚飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
14763990
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
TrainItem.js
src/Components/page/user/TrainItem.js
+2
-2
JobList.js
src/pages/user/JobList.js
+3
-2
TrainList.js
src/pages/user/TrainList.js
+2
-2
tools.js
src/utils/tools.js
+5
-1
No files found.
src/Components/page/user/TrainItem.js
View file @
316586ea
...
...
@@ -42,10 +42,10 @@ class TrainItem extends Component {
console
.
log
(
this
.
props
.
history
);
if
(
data
.
auditStatus
==
1
)
return
;
if
(
iType
===
3
)
{
linkTo
(
`/user/train/
${
data
.
id
}
?modifyId=
${
data
.
modifyId
}
`
);
linkTo
(
`/
new/
user/train/
${
data
.
id
}
?modifyId=
${
data
.
modifyId
}
`
);
// this.props.history.push();
}
else
{
linkTo
(
`/user/job/
${
data
.
id
}
?index=
${
iType
}
&modifyId=
${
data
.
modifyId
}
`
);
linkTo
(
`/
new/
user/job/
${
data
.
id
}
?index=
${
iType
}
&modifyId=
${
data
.
modifyId
}
`
);
// this.props.history.push();
}
}}
...
...
src/pages/user/JobList.js
View file @
316586ea
...
...
@@ -19,7 +19,7 @@ function AddView(props) {
<
a
className
=
"am-button am-button-primary"
onClick
=
{()
=>
{
linkTo
(
`/user/job/add?index=
${
props
.
tabIndex
}
`
);
linkTo
(
`/
new/
user/job/add?index=
${
props
.
tabIndex
}
`
);
}}
>
添加
{
MATERIAL_ARR
[
props
.
tabIndex
]}
...
...
@@ -32,7 +32,7 @@ function NoDataView(props) {
<
a
className
=
"add-train"
onClick
=
{()
=>
{
linkTo
(
`/user/job/add?index=
${
props
.
tabIndex
}
`
);
linkTo
(
`/
new/
user/job/add?index=
${
props
.
tabIndex
}
`
);
}}
>
<
i
className
=
"y-icon-add"
/>
...
...
@@ -73,6 +73,7 @@ class JobList extends Component {
};
}
componentWillMount
()
{
const
_this
=
this
;
document
.
title
=
'职业背景'
;
this
.
setState
({
tabIndex
:
parseInt
(
getParameterByName
(
'index'
,
location
.
href
))
||
0
...
...
src/pages/user/TrainList.js
View file @
316586ea
...
...
@@ -78,7 +78,7 @@ class TrainList extends Component {
<
div
className
=
"bottom-operate"
>
<
a
onClick
=
{()
=>
{
linkTo
(
'/user/train/add'
);
linkTo
(
'/
new/
user/train/add'
);
}}
className
=
"am-button am-button-primary"
>
...
...
@@ -111,7 +111,7 @@ class TrainList extends Component {
)
:
(
<
a
onClick
=
{()
=>
{
linkTo
(
'/user/train/add'
);
linkTo
(
'/
new/
user/train/add'
);
}}
className
=
"add-train"
>
...
...
src/utils/tools.js
View file @
316586ea
...
...
@@ -52,8 +52,12 @@ export function getImgNaturalDimensions(imgSrc, callback) {
// }
return
[
nWidth
,
nHeight
];
}
export
function
linkTo
(
url
)
{
export
function
linkTo
(
url
,
isReplace
)
{
if
(
isReplace
)
{
location
.
replace
(
url
);
}
else
{
location
.
href
=
url
;
}
// alert(`${location.origin}${url}`);
// app().goPage('壹点零', `${location.origin}${url}`);
}
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