Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
cdd6b97b
Commit
cdd6b97b
authored
Dec 08, 2020
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:去掉params里面的storeId
parent
3eb57089
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
15 deletions
+6
-15
src/modules/root/App.tsx
+2
-6
src/modules/store-manege/EmployeeAddOrEditModal.tsx
+2
-3
src/modules/store-manege/EmployeesManagePage.tsx
+1
-3
src/modules/store-manege/UserManagePage.tsx
+1
-3
No files found.
src/modules/root/App.tsx
View file @
cdd6b97b
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2019-07-10 10:30:49
* @LastEditors: wufan
* @LastEditTime: 2020-12-0
7 20:09:55
* @LastEditTime: 2020-12-0
8 13:41:34
* @Description:
*/
import
React
,
{
useContext
,
useEffect
}
from
'react'
;
...
...
@@ -51,11 +51,7 @@ const App: React.FC = (props: any) => {
}
function
getUserPermission
()
{
const
storeId
=
User
.
getStoreId
();
const
storeUserId
=
User
.
getStoreUserId
();
console
.
log
(
"getUserPermission"
,
storeId
,
storeUserId
)
BaseService
.
getUserPermission
({
storeId
,
storeUserId
}).
then
((
res
)
=>
{
BaseService
.
getUserPermission
({
}).
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
const
{
storePermission
,
storePermissionGroup
,
storeUserPermission
,
storeUserPermissionGroup
}
=
res
.
result
;
ctx
.
dispatch
(
setStoreGroupPermission
(
storePermissionGroup
))
...
...
src/modules/store-manege/EmployeeAddOrEditModal.tsx
View file @
cdd6b97b
...
...
@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-11-27 16:21:49
* @LastEditors: wufan
* @LastEditTime: 2020-12-08 1
0:38:21
* @LastEditTime: 2020-12-08 1
3:40:35
* @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -176,8 +176,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
nickName
,
phone
:
String
(
phone
),
roleCodes
:[
role
],
avatar
,
storeId
:
User
.
getStoreId
()
avatar
};
console
.
log
(
"params"
,
params
);
StoreService
.
addEmployee
(
params
).
then
((
res
)
=>
{
...
...
src/modules/store-manege/EmployeesManagePage.tsx
View file @
cdd6b97b
...
...
@@ -46,7 +46,6 @@ interface QueryType {
nickName
?:
string
;
phone
?:
string
;
roleCodes
:
Array
<
string
>
;
storeId
:
string
|
undefined
|
null
;
}
interface
ChoosedItemType
{
...
...
@@ -64,8 +63,7 @@ function EmployeesManagePage() {
size
:
10
,
nickName
:
""
,
phone
:
""
,
roleCodes
:
[],
storeId
:
User
.
getStoreId
(),
roleCodes
:
[]
});
const
[
valueLike
,
setValueLike
]
=
useState
();
...
...
src/modules/store-manege/UserManagePage.tsx
View file @
cdd6b97b
...
...
@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-11-30 10:47:38
* @LastEditors: wufan
* @LastEditTime: 2020-12-08 1
0:42:20
* @LastEditTime: 2020-12-08 1
3:42:55
* @Description: 用户管理页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -13,7 +13,6 @@ import _ from "underscore";
import
{
PageControl
}
from
"@/components"
;
import
{
Table
,
Input
,
DatePicker
}
from
"antd"
;
import
StoreService
from
"@/domains/store-domain/storeService"
;
import
User
from
"@/common/js/user"
;
import
"./UserManagePage.less"
;
import
moment
from
"moment"
;
...
...
@@ -29,7 +28,6 @@ function UserManagePage() {
size
:
10
,
nickName
:
""
,
phone
:
""
,
storeId
:
User
.
getStoreId
(),
registerBegin
:
null
,
registerEnd
:
null
,
});
...
...
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