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
69b8f368
Commit
69b8f368
authored
Nov 26, 2020
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:iconfont-font-class的方式引入
parent
b0299f20
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
18 deletions
+33
-18
src/components/CheckBox.tsx
+0
-7
src/core/global.less
+3
-3
src/modules/store-manege/EmployeesManagePage.tsx
+30
-8
No files found.
src/components/CheckBox.tsx
View file @
69b8f368
/*
* @Author: sunbingqing
* @Date: 2019-07-24 17:21:00
* @Last Modified by: 孙冰清
* @Last Modified time: 2019-07-25 16:50:53
*/
import
React
from
'react'
;
import
{
Checkbox
}
from
'antd'
;
import
'./CheckBox.less'
;
...
...
src/core/global.less
View file @
69b8f368
...
...
@@ -1102,9 +1102,9 @@ table .ant-btn {
height: 24px;
}
.ant-input {
padding: 0 12px !important;
}
//
.ant-input {
//
padding: 0 12px !important;
//
}
.dataBar {
background-color: #FFEEE4;
...
...
src/modules/store-manege/EmployeesManagePage.tsx
View file @
69b8f368
...
...
@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-07-09 14:03:09
* @Last Modified by: mikey.zhaopeng
* @Last Modified time: 2020-11-26 1
4:52:43
* @Last Modified time: 2020-11-26 1
6:22:44
* 店铺管理-员工管理
*/
import
React
,
{
useEffect
,
useState
}
from
"react"
;
...
...
@@ -10,7 +10,7 @@ import { withRouter } from "react-router-dom";
import
_
from
"underscore"
;
import
PageControl
from
"@/components/PageControl"
;
import
SearchBar
from
"@/components/SearchBar"
;
import
{
CheckBox
}
from
"@/components"
;
import
{
CheckBox
}
from
"@/components"
;
import
{
Button
,
Table
,
Tooltip
,
Modal
,
message
,
Row
,
Col
,
Input
}
from
"antd"
;
import
{
storeRoleEnum
}
from
"@/domains/store-domain/constants"
;
import
StoreService
from
"@/domains/store-domain/storeService"
;
...
...
@@ -34,11 +34,13 @@ function EmployeesManagePage() {
size
:
10
,
name
:
""
,
phone
:
""
,
identity
:
""
,
identity
:
"
ALL
"
,
instId
:
"1837447"
||
window
.
currentUserInstInfo
.
instId
,
});
const
[
total
,
setTotal
]
=
useState
(
0
);
const
[
model
,
setModel
]
=
useState
(
null
);
const
[
isManager
,
setIsManager
]
=
useState
(
true
);
const
[
isNormal
,
setIsNormal
]
=
useState
(
true
);
useEffect
(()
=>
{
getEmployeeList
();
...
...
@@ -87,7 +89,7 @@ function EmployeesManagePage() {
title
:
"操作"
,
dataIndex
:
"operation"
,
render
:
(
val
:
string
,
record
:
{
identity
:
string
})
=>
{
return
record
.
identity
===
"
0
"
||
record
.
identity
===
"1"
?
(
return
record
.
identity
===
""
||
record
.
identity
===
"1"
?
(
<
div
className=
"no-operate"
>
-
</
div
>
)
:
(
<
div
className=
"operation"
>
...
...
@@ -167,7 +169,6 @@ function EmployeesManagePage() {
onChange=
{
(
event
)
=>
{
const
val
=
event
.
target
.
value
;
const
_query
=
{
...
query
};
_query
.
name
=
val
;
setQuery
(
_query
);
}
}
...
...
@@ -179,16 +180,37 @@ function EmployeesManagePage() {
身份:
<
CheckBox
text=
"普通讲师"
onChange=
{
(
e
:
any
)
=>
{
onChange=
{
(
e
:
any
)
=>
{
const
{
checked
}
=
e
.
target
;
;
setIsNormal
(
checked
);
const
_query
=
{
...
query
};
_query
.
identity
=
checked
?
isManager
?
"ALL"
:
"NORMAL"
:
isManager
?
"MANAGE"
:
"NONE"
;
setQuery
(
_query
);
}
}
defaultChecked=
{
isNormal
}
/>
<
CheckBox
text=
"管理员"
onChange=
{
(
e
:
any
)
=>
{
onChange=
{
(
e
:
any
)
=>
{
const
{
checked
}
=
e
.
target
;
setIsManager
(
checked
);
const
_query
=
{
...
query
};
_query
.
identity
=
checked
?
isNormal
?
"ALL"
:
"MANAGE"
:
isNormal
?
"NORMAL"
:
"NONE"
;
setQuery
(
_query
);
}
}
defaultChecked=
{
isManager
}
/>
</
div
>
</
div
>
...
...
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