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
8e50a3fb
Commit
8e50a3fb
authored
Aug 14, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Plain Diff
fix:解决合并dev冲突
parents
4f7b835a
0631b93b
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
37 additions
and
22 deletions
+37
-22
src/modules/college-manage/EmployeeManage.tsx
+6
-3
src/modules/college-manage/UserManagePage.tsx
+2
-2
src/modules/college-manage/WechatUserAudit/WechatUserAuditFilter.jsx
+7
-7
src/modules/college-manage/components/DepartMentTabCon.jsx
+15
-7
src/modules/college-manage/components/LeftStructureTree.jsx
+1
-1
src/modules/college-manage/components/LeftStructureTree.less
+3
-0
src/modules/college-manage/components/SearchUser.less
+1
-0
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+2
-2
No files found.
src/modules/college-manage/EmployeeManage.tsx
View file @
8e50a3fb
...
@@ -146,6 +146,7 @@ function EmployeeManage() {
...
@@ -146,6 +146,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"
>
...
@@ -204,6 +205,7 @@ function EmployeeManage() {
...
@@ -204,6 +205,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
()
?
(
...
@@ -474,23 +476,24 @@ function EmployeeManage() {
...
@@ -474,23 +476,24 @@ function EmployeeManage() {
添加员工
添加员工
</
Button
>
</
Button
>
<
Button
className=
"update-user-btn"
onClick=
{
()
=>
{
updateListData
()}
}
>
更新列表数据
</
Button
>
<
Button
className=
"update-user-btn"
onClick=
{
()
=>
{
updateListData
()}
}
>
更新列表数据
</
Button
>
<
span
className=
"origin-text"
>
数据来源企业微信通讯录
</
span
>
<
span
className=
"origin-text"
>
系统实时同步企业微信可见范围的员工信息,如需修改请前往企微管理后台通讯录中操作
</
span
>
<
a
<
a
href=
"https://www.yuque.com/docs/share/8c66333f-ed62-469d-909e-b36389a115ea?#"
href=
"https://www.yuque.com/docs/share/8c66333f-ed62-469d-909e-b36389a115ea?#"
target=
"_blank"
target=
"_blank"
>
>
<
span
className=
"view-text"
>
查看
数据更新
说明
</
span
>
<
span
className=
"view-text"
>
查看说明
</
span
>
</
a
>
</
a
>
</>
</>
}
}
</
div
>
</
div
>
<
LimitTip
type=
"员工"
total=
{
realTotal
}
tip=
{
()
=>
{
return
(<
div
>
数据为当前学院的员工数,若员工存在多个学院,企业人数只统计为1人
</
div
>)
}
}
/>
<
LimitTip
type=
"员工"
total=
{
realTotal
}
tip=
{
()
=>
{
return
(<
div
>
数据为当前学院的员工数,若员工存在多个学院,企业人数只统计为1人
</
div
>)}
}
/>
<
div
className=
"box-body"
>
<
div
className=
"box-body"
>
<
XMTable
<
XMTable
renderEmpty=
{
{
renderEmpty=
{
{
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 @
8e50a3fb
/*
/*
* @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/WechatUserAudit/WechatUserAuditFilter.jsx
View file @
8e50a3fb
...
@@ -15,8 +15,8 @@ const { Search } = Input;
...
@@ -15,8 +15,8 @@ const { Search } = Input;
const
defaultQuery
=
{
const
defaultQuery
=
{
realName
:
null
,
realName
:
null
,
start
Tim
e
:
null
,
start
Dat
e
:
null
,
end
Tim
e
:
null
,
end
Dat
e
:
null
,
};
};
const
WechatUserAuditFilter
=
function
(
props
)
{
const
WechatUserAuditFilter
=
function
(
props
)
{
...
@@ -42,11 +42,11 @@ const WechatUserAuditFilter = function (props) {
...
@@ -42,11 +42,11 @@ const WechatUserAuditFilter = function (props) {
};
};
if
(
_
.
isEmpty
(
dates
))
{
if
(
_
.
isEmpty
(
dates
))
{
delete
_query
.
start
Tim
e
;
delete
_query
.
start
Dat
e
;
delete
_query
.
end
Tim
e
;
delete
_query
.
end
Dat
e
;
}
else
{
}
else
{
_query
.
start
Tim
e
=
dates
[
0
]?.
startOf
(
'day'
).
valueOf
();
_query
.
start
Dat
e
=
dates
[
0
]?.
startOf
(
'day'
).
valueOf
();
_query
.
end
Tim
e
=
dates
[
1
]?.
endOf
(
'day'
).
valueOf
();
_query
.
end
Dat
e
=
dates
[
1
]?.
endOf
(
'day'
).
valueOf
();
}
}
setQuery
(
_query
);
setQuery
(
_query
);
onChange
(
_query
);
onChange
(
_query
);
...
@@ -87,7 +87,7 @@ const WechatUserAuditFilter = function (props) {
...
@@ -87,7 +87,7 @@ const WechatUserAuditFilter = function (props) {
<
RangePicker
<
RangePicker
id=
'course_date_picker'
id=
'course_date_picker'
allowClear=
{
false
}
allowClear=
{
false
}
value=
{
query
.
start
Time
?
[
moment
(
query
.
startTime
),
moment
(
query
.
endTim
e
)]
:
null
}
value=
{
query
.
start
Date
?
[
moment
(
query
.
startDate
),
moment
(
query
.
endDat
e
)]
:
null
}
format=
{
'YYYY-MM-DD'
}
format=
{
'YYYY-MM-DD'
}
onChange=
{
(
dates
)
=>
{
onChange=
{
(
dates
)
=>
{
handleChangeDates
(
dates
);
handleChangeDates
(
dates
);
...
...
src/modules/college-manage/components/DepartMentTabCon.jsx
View file @
8e50a3fb
...
@@ -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
>
},
},
...
@@ -123,7 +125,7 @@ function DepartMentTabCon(props) {
...
@@ -123,7 +125,7 @@ function DepartMentTabCon(props) {
return
(
return
(
<
div
className=
"operate"
>
<
div
className=
"operate"
>
{
props
.
currentTab
===
'departMentTab'
?
{
props
.
currentTab
===
'departMentTab'
?
<
span
>
-
</
span
>
<
div
className=
"operate__item"
onClick=
{
()
=>
delUser
(
'single'
,
item
.
userId
)
}
>
删除
</
div
>
:
:
(
selectDep
.
depLevel
>
0
?
(
selectDep
.
depLevel
>
0
?
<
div
className=
"operate__item"
onClick=
{
()
=>
delUser
(
'single'
,
item
.
userId
)
}
>
移出
</
div
>
<
div
className=
"operate__item"
onClick=
{
()
=>
delUser
(
'single'
,
item
.
userId
)
}
>
移出
</
div
>
...
@@ -350,20 +352,24 @@ function DepartMentTabCon(props) {
...
@@ -350,20 +352,24 @@ function DepartMentTabCon(props) {
添加学员
添加学员
</
Button
>
</
Button
>
}
}
{
(
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'
}
}
>
<
span
className=
"origin-text"
>
系统实时同步企业微信可见范围的学员信息,如需修改请前往企微管理后台通讯录中操作
</
span
>
<
a
<
a
href=
"https://www.yuque.com/docs/share/8c66333f-ed62-469d-909e-b36389a115ea?#"
href=
"https://www.yuque.com/docs/share/8c66333f-ed62-469d-909e-b36389a115ea?#"
target=
"_blank"
target=
"_blank"
>
>
<
span
className=
"view-text"
>
查看数据更新
说明
</
span
>
<
span
className=
"view-text"
>
查看
说明
</
span
>
</
a
>
</
a
>
</
div
>
</>
</>
:
<
span
className=
"origin-text"
>
微信学员通过授权或扫码登录后,数据自动同步到系统。
</
span
>
}
}
</
div
>
</
div
>
)
}
)
}
...
@@ -423,6 +429,7 @@ function DepartMentTabCon(props) {
...
@@ -423,6 +429,7 @@ function DepartMentTabCon(props) {
},
},
}
}
}
}
/>
/>
{
total
>
0
&&
<
div
className=
"box-footer"
>
<
div
className=
"box-footer"
>
<
PageControl
<
PageControl
current=
{
query
.
current
-
1
}
current=
{
query
.
current
-
1
}
...
@@ -436,6 +443,7 @@ function DepartMentTabCon(props) {
...
@@ -436,6 +443,7 @@ function DepartMentTabCon(props) {
}
}
}
}
/>
/>
</
div
>
</
div
>
}
</
div
>
</
div
>
</
div
>
</
div
>
{
chooseMembersModalVisible
&&
(
{
chooseMembersModalVisible
&&
(
...
...
src/modules/college-manage/components/LeftStructureTree.jsx
View file @
8e50a3fb
...
@@ -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 @
8e50a3fb
...
@@ -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/college-manage/components/SearchUser.less
View file @
8e50a3fb
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
}
}
.departmentName{
.departmentName{
display: inline-block;
display: inline-block;
vertical-align: middle;
max-width:190px;
max-width:190px;
overflow: hidden;
overflow: hidden;
white-space: nowrap;
white-space: nowrap;
...
...
src/modules/teach-tool/question-manage/components/QuestionList.jsx
View file @
8e50a3fb
/*
/*
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @Date: 2021-02-25 11:23:47
* @LastEditors:
fusanqiasng
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2021-0
6-15 14:41:18
* @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