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
b7ec7017
Commit
b7ec7017
authored
Oct 26, 2018
by
Zhang Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调登录部分
parent
44f719cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
client/actions/common.js
+6
-8
client/containers/PageContainer/PageContainer.jsx
+4
-4
No files found.
client/actions/common.js
View file @
b7ec7017
...
...
@@ -2,8 +2,6 @@ import fetch from 'isomorphic-fetch';
import
actionType
from
'../actiontype/common'
import
{
addErrorInfo
}
from
'./uploadError'
let
domain
=
ENV
.
domain
;
let
domain2
=
'http://192.168.10.176:8080/web/'
let
domain1
=
"http://192.168.10.169:7788/web/"
let
myHeaders
=
new
Headers
({
// 'Access-Control-Allow-Origin': '*',
...
...
@@ -16,11 +14,11 @@ let myHeaders = new Headers({
const
getStoreInfo
=
(
storeId
)
=>
{
return
(
dispatch
)
=>
{
let
bodyData
=
{
storeId
};
fetch
(
domain
1
+
'pad_warehouse/getMachineData.action'
,{
//
credentials : 'include',
fetch
(
domain
+
'pad_warehouse/getMachineData.action'
,{
credentials
:
'include'
,
method
:
'POST'
,
mode
:
'cors'
,
headers
:
myHeaders
,
headers
:
myHeaders
,
body
:
JSON
.
stringify
(
bodyData
)
}).
then
((
response
)
=>
response
.
json
())
.
then
(
json
=>
{
...
...
@@ -40,8 +38,8 @@ const getStoreInfo = (storeId)=>{
const
getUserinfo
=
(
employeeId
,
storeId
)
=>
{
let
bodyData
=
Object
.
assign
({},{
employeeId
,
storeId
})
return
(
dispatch
)
=>
{
fetch
(
domain
1
+
'machine_pad/get_alowed_task.action'
,{
//
credentials : 'include',
fetch
(
domain
+
'machine_pad/get_alowed_task.action'
,{
credentials
:
'include'
,
method
:
'POST'
,
mode
:
'cors'
,
headers
:
myHeaders
,
...
...
@@ -79,7 +77,7 @@ const getTaskList = (data={})=>{
dispatch
(
addErrorInfo
(
'没有获取区域信息'
))
}
else
{
fetch
(
url
,{
//
credentials : 'include',
credentials
:
'include'
,
method
:
'GET'
,
mode
:
'cors'
,
headers
:
myHeaders
...
...
client/containers/PageContainer/PageContainer.jsx
View file @
b7ec7017
...
...
@@ -108,8 +108,8 @@ class PageContainer extends React.Component {
this
.
taskTypeOption
=
{
'
ER
'
:
this
.
showTroublePage
,
'
BH
'
:
this
.
showSecondTroubelPage
'
FIRST
'
:
this
.
showTroublePage
,
'
SECOND
'
:
this
.
showSecondTroubelPage
};
}
...
...
@@ -172,9 +172,9 @@ class PageContainer extends React.Component {
){
dispatch
(
getUserinfo
(
userinfo
.
employeeId
,
storeInfo
.
id
))
}
if
(
datas
.
area
){
if
(
info
.
area
){
//区域信息
dispatch
(
saveCommonInfo
(
Object
.
assign
({},{
taskInfo
:{
area
:
datas
.
area
}})))
dispatch
(
saveCommonInfo
(
Object
.
assign
({},{
taskInfo
:{
area
:
info
.
area
}})))
}
this
.
setState
({
...
...
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