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
ce07b166
Commit
ce07b166
authored
Aug 13, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/zhangleyuan/20210812/opzi-organize' into rc
parents
5dec598d
6436cf14
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
14 deletions
+26
-14
src/modules/college-manage/EmployeeManage.tsx
+3
-0
src/modules/college-manage/UserManagePage.tsx
+2
-2
src/modules/college-manage/components/DepartMentTabCon.jsx
+15
-9
src/modules/college-manage/components/LeftStructureTree.jsx
+1
-1
src/modules/college-manage/components/LeftStructureTree.less
+3
-0
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+2
-2
No files found.
src/modules/college-manage/EmployeeManage.tsx
View file @
ce07b166
...
@@ -142,6 +142,7 @@ function EmployeeManage() {
...
@@ -142,6 +142,7 @@ function EmployeeManage() {
{
{
title
:
"员工"
,
title
:
"员工"
,
dataIndex
:
"weChatAccount"
,
dataIndex
:
"weChatAccount"
,
fixed
:
'left'
,
render
:
(
val
:
string
,
record
:
RecordTypes
)
=>
{
render
:
(
val
:
string
,
record
:
RecordTypes
)
=>
{
return
(
return
(
<
div
className=
"employee-info"
>
<
div
className=
"employee-info"
>
...
@@ -200,6 +201,7 @@ function EmployeeManage() {
...
@@ -200,6 +201,7 @@ function EmployeeManage() {
{
{
title
:
"操作"
,
title
:
"操作"
,
dataIndex
:
"operation"
,
dataIndex
:
"operation"
,
fixed
:
'right'
,
render
:
(
val
:
string
,
record
:
RecordTypes
)
=>
{
render
:
(
val
:
string
,
record
:
RecordTypes
)
=>
{
return
record
.
role
===
"学院管理员"
||
return
record
.
role
===
"学院管理员"
||
record
.
userId
===
User
.
getUserId
()
?
(
record
.
userId
===
User
.
getUserId
()
?
(
...
@@ -487,6 +489,7 @@ function EmployeeManage() {
...
@@ -487,6 +489,7 @@ function EmployeeManage() {
image
:
college
,
image
:
college
,
description
:
'暂无数据'
description
:
'暂无数据'
}
}
}
}
scroll=
{
{
x
:
1200
}
}
size=
{
"middle"
}
size=
{
"middle"
}
pagination=
{
false
}
pagination=
{
false
}
dataSource=
{
employeeList
}
dataSource=
{
employeeList
}
...
...
src/modules/college-manage/UserManagePage.tsx
View file @
ce07b166
/*
/*
* @Author: wufan
* @Author: wufan
* @Date: 2020-11-30 10:47:38
* @Date: 2020-11-30 10:47:38
* @LastEditors:
wufan
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2021-0
6-21 11:13:15
* @LastEditTime: 2021-0
8-13 16:52:16
* @Description: 学员管理页面
* @Description: 学员管理页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
...
src/modules/college-manage/components/DepartMentTabCon.jsx
View file @
ce07b166
...
@@ -8,6 +8,7 @@ import college from "@/common/lottie/college.json";
...
@@ -8,6 +8,7 @@ import college from "@/common/lottie/college.json";
import
WWOpenDataCom
from
'@/components/WWOpenDataCom'
;
import
WWOpenDataCom
from
'@/components/WWOpenDataCom'
;
import
StoreService
from
"@/domains/store-domain/storeService"
;
import
StoreService
from
"@/domains/store-domain/storeService"
;
import
{
DepType
}
from
"@/domains/store-domain/constants"
;
import
{
DepType
}
from
"@/domains/store-domain/constants"
;
import
Platform
from
'@/common/js/platform'
;
import
User
from
"@/common/js/user"
;
import
User
from
"@/common/js/user"
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
"./DepartMentTabCon.less"
;
import
"./DepartMentTabCon.less"
;
...
@@ -31,11 +32,13 @@ function DepartMentTabCon(props) {
...
@@ -31,11 +32,13 @@ function DepartMentTabCon(props) {
useEffect
(()
=>
{
useEffect
(()
=>
{
setSelectUser
([]);
setSelectUser
([]);
},[
selectDep
]);
},[
selectDep
]);
const
columns
=
[
const
columns
=
[
{
{
title
:
"学员"
,
title
:
"学员"
,
dataIndex
:
"nickName"
,
dataIndex
:
"nickName"
,
width
:
220
,
width
:
220
,
fixed
:
!
Platform
.
isWorkWx
(),
render
:
(
val
,
item
)
=>
{
render
:
(
val
,
item
)
=>
{
return
(
return
(
<
div
>
<
div
>
...
@@ -59,7 +62,6 @@ function DepartMentTabCon(props) {
...
@@ -59,7 +62,6 @@ function DepartMentTabCon(props) {
{
{
title
:
"真实姓名"
,
title
:
"真实姓名"
,
dataIndex
:
"realName"
,
dataIndex
:
"realName"
,
width
:
180
,
render
:
(
val
,
record
)
=>
{
render
:
(
val
,
record
)
=>
{
return
<
span
>
{
val
}
</
span
>
return
<
span
>
{
val
}
</
span
>
},
},
...
@@ -352,17 +354,21 @@ function DepartMentTabCon(props) {
...
@@ -352,17 +354,21 @@ function DepartMentTabCon(props) {
{
(
props
.
currentTab
===
"postGrouptab"
||
props
.
currentTab
===
"customGroupTab"
)
&&
{
(
props
.
currentTab
===
"postGrouptab"
||
props
.
currentTab
===
"customGroupTab"
)
&&
<
Button
className=
"del-user-btn"
onClick=
{
()
=>
delUser
(
'multiple'
)
}
>
删除学员
</
Button
>
<
Button
className=
"del-user-btn"
onClick=
{
()
=>
delUser
(
'multiple'
)
}
>
删除学员
</
Button
>
}
}
{
selectDep
.
depId
!==
'10000'
&&
{
selectDep
.
depId
!==
'10000'
?
<>
<>
<
Button
className=
"update-user-btn"
onClick=
{
()
=>
{
updateListData
()}
}
>
更新列表数据
</
Button
>
<
Button
className=
"update-user-btn"
onClick=
{
()
=>
{
updateListData
()}
}
>
更新列表数据
</
Button
>
<
span
className=
"origin-text"
>
数据来源企业微信通讯录
</
span
>
<
div
style=
{
{
marginTop
:
'12px'
}
}
>
<
a
<
span
className=
"origin-text"
>
系统实时同步企业微信可见范围的学员信息,如需修改请前往企微管理后台通讯录中操作
</
span
>
href=
"https://www.yuque.com/docs/share/8c66333f-ed62-469d-909e-b36389a115ea?#"
<
a
target=
"_blank"
href=
"https://www.yuque.com/docs/share/8c66333f-ed62-469d-909e-b36389a115ea?#"
>
target=
"_blank"
<
span
className=
"view-text"
>
查看数据更新说明
</
span
>
>
</
a
>
<
span
className=
"view-text"
>
【查看说明】
</
span
>
</
a
>
</
div
>
</>
</>
:
<
span
className=
"origin-text"
>
微信学员通过授权或扫码登录后,数据自动同步到系统。
</
span
>
}
}
</
div
>
</
div
>
)
}
)
}
...
...
src/modules/college-manage/components/LeftStructureTree.jsx
View file @
ce07b166
...
@@ -503,7 +503,7 @@ function LeftStructureTree(props) {
...
@@ -503,7 +503,7 @@ function LeftStructureTree(props) {
function
selectUserList
(
record
,
e
)
{
function
selectUserList
(
record
,
e
)
{
const
_selectKeys
=
[];
const
_selectKeys
=
[];
if
(
e
.
selectedNodes
){
if
(
e
.
selectedNodes
&&
e
.
selectedNodes
.
length
>
0
){
_selectKeys
.
push
(
e
.
selectedNodes
[
0
].
id
)
_selectKeys
.
push
(
e
.
selectedNodes
[
0
].
id
)
}
}
setSelectedKeys
(
_selectKeys
);
setSelectedKeys
(
_selectKeys
);
...
...
src/modules/college-manage/components/LeftStructureTree.less
View file @
ce07b166
...
@@ -100,6 +100,9 @@
...
@@ -100,6 +100,9 @@
text-align:right;
text-align:right;
}
}
}
}
.ant-select-item-option-grouped{
padding-left:12px;
}
.empty-con{
.empty-con{
text-align:center;
text-align:center;
.empty-img{
.empty-img{
...
...
src/modules/teach-tool/question-manage/components/QuestionList.jsx
View file @
ce07b166
/*
/*
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @Date: 2021-02-25 11:23:47
* @LastEditors:
yuananting
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2021-0
6-03 17:12:01
* @LastEditTime: 2021-0
8-13 17:05:37
* @Description: 助学工具-题库-题目列表数据
* @Description: 助学工具-题库-题目列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
...
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