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
7d37c2d3
Commit
7d37c2d3
authored
Oct 22, 2021
by
zhangzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test build
parent
ba79a3fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
client/actions/common.js
+5
-3
client/containers/PageContainer/PageContainer.jsx
+2
-0
No files found.
client/actions/common.js
View file @
7d37c2d3
...
...
@@ -56,7 +56,7 @@ const fetchStoreInfo = (storeId)=>{
UTILPATH
.
myLogger
.
info
(
"getMachineData response "
,
json
);
let
storeInfo
=
Object
.
assign
({},{
id
:
storeId
});
let
taskInfo
=
{}
let
user
i
nfo
=
{}
let
user
I
nfo
=
{}
if
(
json
.
meta
.
success
){
if
(
!
json
.
data
.
employeeInfo
){
dispatch
(
addErrorInfo
(
'这个门店没有开门用户'
))
...
...
@@ -73,11 +73,13 @@ const fetchStoreInfo = (storeId)=>{
taskInfo
=
Object
.
assign
({},
taskInfo
,
json
.
data
.
taskInfo
)
}
if
(
json
.
data
.
employeeInfo
){
user
info
=
Object
.
assign
({},
useri
nfo
,
json
.
data
.
employeeInfo
)
user
Info
=
Object
.
assign
({},
userI
nfo
,
json
.
data
.
employeeInfo
)
}
userInfo
.
employeeId
=
userInfo
.
id
;
dispatch
(
saveCommonInfo
(
Object
.
assign
({},{
storeInfo
})));
dispatch
(
saveCommonInfo
(
Object
.
assign
({},{
taskInfo
})));
dispatch
(
saveCommonInfo
(
Object
.
assign
({},{
userinfo
})));
dispatch
(
saveCommonInfo
(
Object
.
assign
({},{
userInfo
})));
console
.
log
(
'herehere'
)
emit
(
CONFIG
.
customEvent
.
STOREINFOREADY
,{});
}
...
...
client/containers/PageContainer/PageContainer.jsx
View file @
7d37c2d3
...
...
@@ -777,6 +777,7 @@ class PageContainer extends React.Component {
storeId
=
state
.
storeInfo
.
storeList
[
0
].
id
}
dispatch
(
fetchStoreInfo
(
storeId
));
this
.
hidePopup
();
}
changeStore
(
e
){
console
.
log
(
"change storeid to:"
,
e
.
target
.
value
);
...
...
@@ -905,6 +906,7 @@ class PageContainer extends React.Component {
startWork
(){
const
{
dispatch
,
state
}
=
this
.
props
;
let
{
commonInfo
=
{}}
=
state
;
console
.
log
(
state
)
this
.
setState
({
startWork
:
true
},()
=>
{
...
...
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