Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xin
max_android_panel
Commits
0db76cbc
Commit
0db76cbc
authored
Nov 19, 2018
by
wujiabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开发平板四期
parent
c305a0a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
9 deletions
+23
-9
client/components/BreakageComponent/defaultComponent/DefaultComponnet.jsx
+18
-6
client/containers/BreakageContainer/BreakageConatiner.jsx
+1
-0
client/containers/PageContainer/PageContainer.jsx
+2
-2
client/index.js
+2
-1
No files found.
client/components/BreakageComponent/defaultComponent/DefaultComponnet.jsx
View file @
0db76cbc
import
React
from
'react'
;
import
React
from
'react'
;
import
Button
from
'../../CommonComponent/ButtonComponent/ButtonComponent'
import
Button
from
'../../CommonComponent/ButtonComponent/ButtonComponent'
import
PropTypes
from
"prop-types"
;
class
DefaultComponent
extends
React
.
Component
{
class
DefaultComponent
extends
React
.
Component
{
constructor
(
props
){
constructor
(
props
){
super
(
props
)
super
(
props
)
...
@@ -14,12 +15,19 @@ class DefaultComponent extends React.Component{
...
@@ -14,12 +15,19 @@ class DefaultComponent extends React.Component{
style=
{
{
marginTop
:
UTILPATH
.
getRemByPx
(
150
),
marginLeft
:
'50%'
,
transform
:
'translate(-50%)'
}
}
style=
{
{
marginTop
:
UTILPATH
.
getRemByPx
(
150
),
marginLeft
:
'50%'
,
transform
:
'translate(-50%)'
}
}
option=
{
this
.
skipInputCode
.
bind
(
this
)
}
option=
{
this
.
skipInputCode
.
bind
(
this
)
}
/>
/>
<
Button
{
text=
{
'没有'
}
this
.
props
.
menuType
===
''
?<
Button
btnContainer=
{
'col333 font30 bordere5e5e5'
}
text=
{
'没有'
}
style=
{
{
marginTop
:
UTILPATH
.
getRemByPx
(
30
),
marginLeft
:
'50%'
,
transform
:
'translate(-50%)'
}
}
btnContainer=
{
'col333 font30 bordere5e5e5'
}
option=
{
this
.
props
.
pullTaskList
}
style=
{
{
marginTop
:
UTILPATH
.
getRemByPx
(
30
),
marginLeft
:
'50%'
,
transform
:
'translate(-50%)'
}
}
/>
option=
{
this
.
props
.
pullTaskList
}
/>:<
Button
text=
{
'没有'
}
btnContainer=
{
'col333 font30 bordere5e5e5'
}
style=
{
{
marginTop
:
UTILPATH
.
getRemByPx
(
30
),
marginLeft
:
'50%'
,
transform
:
'translate(-50%)'
}
}
option=
{
this
.
context
.
goBackTask
}
/>
}
</
div
>
</
div
>
)
)
}
}
...
@@ -30,4 +38,7 @@ class DefaultComponent extends React.Component{
...
@@ -30,4 +38,7 @@ class DefaultComponent extends React.Component{
this
.
props
.
changeSanCodePage
(
'SanCode'
)
this
.
props
.
changeSanCodePage
(
'SanCode'
)
}
}
}
}
DefaultComponent
.
contextTypes
=
{
goBackTask
:
PropTypes
.
func
};
export
default
DefaultComponent
;
export
default
DefaultComponent
;
\ No newline at end of file
client/containers/BreakageContainer/BreakageConatiner.jsx
View file @
0db76cbc
...
@@ -115,6 +115,7 @@ class BreakageContainer extends React.Component {
...
@@ -115,6 +115,7 @@ class BreakageContainer extends React.Component {
switch
(
showPage
){
switch
(
showPage
){
case
1
:
case
1
:
pages
=
<
DefaultComponent
pullTaskList=
{
props
.
pullTaskList
}
pages
=
<
DefaultComponent
pullTaskList=
{
props
.
pullTaskList
}
menuType=
{
props
.
menuType
}
changeCodePage=
{
this
.
changeCodePage
.
bind
(
this
)
}
changeCodePage=
{
this
.
changeCodePage
.
bind
(
this
)
}
changeSanCodePage=
{
this
.
changeSanCodePage
.
bind
(
this
)
}
changeSanCodePage=
{
this
.
changeSanCodePage
.
bind
(
this
)
}
/>
/>
...
...
client/containers/PageContainer/PageContainer.jsx
View file @
0db76cbc
...
@@ -248,8 +248,6 @@ class PageContainer extends React.Component {
...
@@ -248,8 +248,6 @@ class PageContainer extends React.Component {
this
.
changePages
(
CONFIG
.
showPage
[
9
]);
this
.
changePages
(
CONFIG
.
showPage
[
9
]);
break
;
break
;
}
}
}
else
{
this
.
changePages
(
CONFIG
.
showPage
[
13
]);
}
}
}
}
...
@@ -566,6 +564,8 @@ class PageContainer extends React.Component {
...
@@ -566,6 +564,8 @@ class PageContainer extends React.Component {
this
.
changePages
(
CONFIG
.
showPage
[
9
]);
this
.
changePages
(
CONFIG
.
showPage
[
9
]);
break
;
break
;
}
}
}
else
{
this
.
changePages
(
CONFIG
.
showPage
[
13
]);
}
}
}
}
...
...
client/index.js
View file @
0db76cbc
...
@@ -29,7 +29,7 @@ function renderPage(store) {
...
@@ -29,7 +29,7 @@ function renderPage(store) {
let
store
=
activateVendor
();
let
store
=
activateVendor
();
// UTILPATH.socket.init(129,17);
// UTILPATH.socket.init(129,17);
UTILPATH
.
socket
.
testIp
(
202
);
UTILPATH
.
socket
.
testIp
(
14
);
// UTILPATH.socket.getIp();
// UTILPATH.socket.getIp();
renderPage
(
store
);
renderPage
(
store
);
\ No newline at end of file
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