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
1166bcec
Commit
1166bcec
authored
May 08, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:初始化
parent
1d3a1e65
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
31 deletions
+17
-31
src/modules/root/CollegeManagePage.jsx
+1
-6
src/modules/root/Header.jsx
+1
-6
src/modules/store-manage/EmployeeAddOrEditModal.less
+2
-1
src/modules/store-manage/EmployeeAddOrEditModal.tsx
+13
-18
No files found.
src/modules/root/CollegeManagePage.jsx
View file @
1166bcec
...
@@ -95,12 +95,7 @@ export default class CollegeManagePage extends React.Component {
...
@@ -95,12 +95,7 @@ export default class CollegeManagePage extends React.Component {
handleLogout
()
{
handleLogout
()
{
BaseService
.
logout
({}).
then
((
res
)
=>
{
BaseService
.
logout
({}).
then
((
res
)
=>
{
User
.
removeUserId
();
window
.
RCHistory
.
push
(
'/login'
);
User
.
removeToken
();
User
.
removeEnterpriseId
();
User
.
clearUserInfo
();
const
htmlUrl
=
`
${
LIVE_SHARE
}
store/index?id=
${
User
.
getCustomerStoreId
()
||
User
.
getStoreId
()}
&userId=
${
User
.
getUserId
()}
&from=work_weixin`
;
window
.
location
.
href
=
htmlUrl
;
});
});
}
}
...
...
src/modules/root/Header.jsx
View file @
1166bcec
...
@@ -184,12 +184,7 @@ function Header(props) {
...
@@ -184,12 +184,7 @@ function Header(props) {
function
handleLogout
()
{
function
handleLogout
()
{
BaseService
.
logout
({}).
then
((
res
)
=>
{
BaseService
.
logout
({}).
then
((
res
)
=>
{
User
.
removeUserId
();
window
.
RCHistory
.
push
(
'/login'
);
User
.
removeToken
();
User
.
removeEnterpriseId
();
User
.
clearUserInfo
();
const
url
=
`
${
LIVE_SHARE
}
store/index?id=
${
User
.
getCustomerStoreId
()
||
User
.
getStoreId
()}
&userId=
${
User
.
getUserId
()}
&from=work_weixin`
;
window
.
location
.
href
=
url
;
});
});
}
}
...
...
src/modules/store-manage/EmployeeAddOrEditModal.less
View file @
1166bcec
...
@@ -12,11 +12,12 @@
...
@@ -12,11 +12,12 @@
margin-top: 5px !important;
margin-top: 5px !important;
}
}
.radio-tip {
.radio-tip {
padding-left: 24px;
font-size: 14px;
font-size: 14px;
font-weight: 400;
font-weight: 400;
color: #999;
color: #999;
line-height: 20px;
line-height: 20px;
white-space: nowrap;
margin-bottom: 12px;
}
}
.avatar-box {
.avatar-box {
text-align: center;
text-align: center;
...
...
src/modules/store-manage/EmployeeAddOrEditModal.tsx
View file @
1166bcec
...
@@ -83,8 +83,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
...
@@ -83,8 +83,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
},
[
props
.
choosedItem
.
nickName
]);
},
[
props
.
choosedItem
.
nickName
]);
const
layout
=
{
const
layout
=
{
labelCol
:
{
span
:
5
},
labelCol
:
{
span
:
6
},
wrapperCol
:
{
span
:
1
2
},
wrapperCol
:
{
span
:
1
8
},
};
};
function
handleChangeRole
(
value
:
string
)
{
function
handleChangeRole
(
value
:
string
)
{
...
@@ -211,7 +211,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
...
@@ -211,7 +211,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
closeIcon=
{
<
span
className=
"icon iconfont modal-close-icon"
>

</
span
>
}
closeIcon=
{
<
span
className=
"icon iconfont modal-close-icon"
>

</
span
>
}
>
>
<
Row
>
<
Row
>
<
Col
span=
{
1
6
}
>
<
Col
span=
{
1
8
}
>
<
Form
<
Form
{
...
layout
}
{
...
layout
}
form=
{
form
}
form=
{
form
}
...
@@ -223,9 +223,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
...
@@ -223,9 +223,8 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
name=
"nickName"
name=
"nickName"
rules=
{
[{
required
:
true
}]
}
rules=
{
[{
required
:
true
}]
}
validateStatus=
{
nameStatus
}
validateStatus=
{
nameStatus
}
help=
{
nameErrorMsg
}
help=
{
nameErrorMsg
||
undefined
}
style=
{
{
marginBottom
:
'-2px !important'
}
}
style=
{
{
marginBottom
:
0
}
}
className=
"mt-4"
>
>
<
Input
<
Input
style=
{
{
width
:
200
}
}
style=
{
{
width
:
200
}
}
...
@@ -239,8 +238,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
...
@@ -239,8 +238,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
<
Form
.
Item
<
Form
.
Item
label=
"企业微信账号"
label=
"企业微信账号"
name=
"weChatAccount"
name=
"weChatAccount"
style=
{
{
marginBottom
:
'-2px !important'
}
}
className=
"mt-10"
>
>
<
Tooltip
title=
{
props
.
choosedItem
.
weChatAccount
}
>
<
Tooltip
title=
{
props
.
choosedItem
.
weChatAccount
}
>
<
div
style=
{
{
<
div
style=
{
{
...
@@ -257,8 +254,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
...
@@ -257,8 +254,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
rules=
{
[{
required
:
true
}]
}
rules=
{
[{
required
:
true
}]
}
validateStatus=
{
phoneStatus
}
validateStatus=
{
phoneStatus
}
help=
{
phoneErrorMessage
}
help=
{
phoneErrorMessage
}
style=
{
{
marginBottom
:
'-2px !important'
}
}
className=
"mt-10"
>
>
<
Input
<
Input
style=
{
{
width
:
200
}
}
style=
{
{
width
:
200
}
}
...
@@ -290,12 +285,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
...
@@ -290,12 +285,6 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
}
}
}
}
className=
"mt5"
className=
"mt5"
>
>
<
Radio
value=
{
"CloudOperator"
}
className=
"mt-4"
>
<
span
style=
{
{
color
:
"#333"
}
}
>
运营师
</
span
>
<
p
className=
"radio-tip"
>
仅可查看/转发培训计划内容,并查看其负责的用户学习进度
</
p
>
</
Radio
>
<
Radio
value=
{
"CloudLecturer"
}
className=
"mt-4"
>
<
Radio
value=
{
"CloudLecturer"
}
className=
"mt-4"
>
<
span
style=
{
{
color
:
"#333"
}
}
>
普通讲师
</
span
>
<
span
style=
{
{
color
:
"#333"
}
}
>
普通讲师
</
span
>
<
p
className=
"radio-tip"
>
<
p
className=
"radio-tip"
>
...
@@ -306,12 +295,18 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
...
@@ -306,12 +295,18 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
<
span
style=
{
{
color
:
"#333"
}
}
>
管理员
</
span
>
<
span
style=
{
{
color
:
"#333"
}
}
>
管理员
</
span
>
<
p
className=
"radio-tip"
>
可执行学院中所有的操作
</
p
>
<
p
className=
"radio-tip"
>
可执行学院中所有的操作
</
p
>
</
Radio
>
</
Radio
>
<
Radio
value=
{
"CloudOperator"
}
className=
"mt-4"
>
<
span
style=
{
{
color
:
"#333"
}
}
>
运营师
</
span
>
<
p
className=
"radio-tip"
>
仅可查看/转发培训计划内容,并查看其负责的用户学习进度
</
p
>
</
Radio
>
</
RadioGroup
>
</
RadioGroup
>
</
Form
.
Item
>
</
Form
.
Item
>
</
Form
>
</
Form
>
</
Col
>
</
Col
>
<
Col
span=
{
8
}
>
<
Col
span=
{
6
}
>
<
div
className=
"avatar-box"
>
<
div
className=
"avatar-box"
>
<
div
className=
"avatar-text"
>
头像
</
div
>
<
div
className=
"avatar-text"
>
头像
</
div
>
<
div
className=
"avatart-img"
>
<
div
className=
"avatart-img"
>
...
@@ -319,7 +314,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
...
@@ -319,7 +314,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
</
div
>
</
div
>
<
div
className=
"upload-avatar"
>
<
div
className=
"upload-avatar"
>
<
Button
id=
"click_upload_btn"
onClick=
{
_onUpload
}
>
<
Button
id=
"click_upload_btn"
onClick=
{
_onUpload
}
>
点击上传
上传头像
</
Button
>
</
Button
>
<
input
<
input
type=
"file"
type=
"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