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
1d14c756
Commit
1d14c756
authored
Sep 03, 2021
by
wufan
Browse files
Options
Browse Files
Download
Plain Diff
fix:合并任务并解决冲突
parents
2a49658e
621343e6
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
61 additions
and
21 deletions
+61
-21
src/domains/basic-domain/constants.ts
+2
-2
src/domains/course-domain/constants.ts
+2
-2
src/index.d.ts
+10
-1
src/index.html
+1
-1
src/modules/college-manage/CollegeInfoPage.jsx
+7
-2
src/modules/college-manage/CollegeInfoPage.less
+8
-0
src/modules/college-manage/EmployeeManage.tsx
+0
-1
src/modules/college-manage/NewUsersManagePage.jsx
+18
-7
src/modules/college-manage/WechatUserAudit/WechatUserAuditList.jsx
+7
-0
src/modules/home/Home.less
+1
-0
src/modules/root/Header.jsx
+2
-2
src/modules/task-center/data-center/components/TestLinkTaskData.jsx
+1
-1
src/routes/config/mainRoutes.tsx
+2
-2
No files found.
src/domains/basic-domain/constants.ts
View file @
1d14c756
/*
* @Author: 陈剑宇
* @Date: 2020-05-07 14:43:01
* @LastEditTime: 2021-0
8-16 16:39:13
* @LastEditors:
yuananting
* @LastEditTime: 2021-0
9-03 13:54:34
* @LastEditors:
wufan
* @Description:
* @FilePath: /wheat-web-demo/src/domains/basic-domain/constants.ts
*/
...
...
src/domains/course-domain/constants.ts
View file @
1d14c756
/*
* @Author: 吴文洁
* @Date: 2020-08-20 09:21:40
* @LastEditors:
yuananting
* @LastEditTime: 2021-0
8-16 16:38:55
* @LastEditors:
wufan
* @LastEditTime: 2021-0
9-03 13:54:38
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
...
...
src/index.d.ts
View file @
1d14c756
/*
* @Author: wufan
* @Date: 2021-09-03 10:23:20
* @LastEditors: wufan
* @LastEditTime: 2021-09-03 13:53:31
* @Description: Description
* @@Copyrigh: © 2021 杭州杰竞科技有限公司 版权所有
*/
declare
module
'jquery'
declare
module
'cropper'
declare
module
'ExamShareModal'
declare
module
'routeHooks'
declare
module
'college'
declare
module
'@/common/lottie/college'
declare
module
'routeHooks'
// declare var this: any
\ No newline at end of file
src/index.html
View file @
1d14c756
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-08-24 12:20:57
* @LastEditors: wufan
* @LastEditTime: 2021-0
8-15 19:12:55
* @LastEditTime: 2021-0
9-03 13:53:56
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
-->
...
...
src/modules/college-manage/CollegeInfoPage.jsx
View file @
1d14c756
import
React
from
'react'
;
import
{
withRouter
}
from
'react-router-dom'
;
import
{
Form
,
Input
,
Button
,
Modal
,
Switch
,
message
}
from
'antd'
;
import
{
Form
,
Input
,
Button
,
Modal
,
Switch
,
message
,
Tooltip
}
from
'antd'
;
import
SelectPrepareFileModal
from
'@/modules/prepare-lesson/modal/SelectPrepareFileModal'
;
import
Upload
from
'@/core/upload'
;
import
StoreService
from
'@/domains/store-domain/storeService'
;
...
...
@@ -167,7 +167,12 @@ class CollegeInfoPage extends React.Component {
/>
</
Form
.
Item
>
<
div
className=
'title mt40'
>
高级设置
</
div
>
<
Form
.
Item
label=
'学员审核'
name=
'storeName'
rules=
{
[{
required
:
true
}]
}
>
<
Form
.
Item
label=
{
<
span
className=
'label-box'
>
学员审核
<
Tooltip
title=
'学院同时支持企微和微信用户加入学院学习。学员审核开启后,微信用户需要先提出申请,学院管理员审核通过后才能成为学院的学员,保证仅可信的微信用户才能加入学院。'
placement=
'top'
arrowPointAtCenter
>
<
span
className=
'icon iconfont icon-tip'
>

</
span
>
</
Tooltip
>
</
span
>
}
name=
'storeName'
>
<
div
className=
'switch-box'
>
<
Switch
checked=
{
auditSwitch
===
'OPEN'
}
onChange=
{
(
e
)
=>
this
.
onChangeFiledValue
(
'auditSwitch'
,
e
?
'OPEN'
:
'CLOSE'
)
}
/>
<
Choose
>
...
...
src/modules/college-manage/CollegeInfoPage.less
View file @
1d14c756
...
...
@@ -84,6 +84,14 @@
margin-left:132px;
margin-top: 20px;
}
.label-box{
// display: flex;
// align-content: center;
.icon{
color:#BFBFBF;
margin: 0 2px;
}
}
}
.college-info-page-view-modal-box{
...
...
src/modules/college-manage/EmployeeManage.tsx
View file @
1d14c756
...
...
@@ -441,7 +441,6 @@ function EmployeeManage() {
);
})
}
</
div
>
</
div
>
{
(
User
.
getUserRole
()
===
'CloudManager'
||
User
.
getUserRole
()
===
'StoreManager'
)
&&
<>
<
Button
...
...
src/modules/college-manage/NewUsersManagePage.jsx
View file @
1d14c756
...
...
@@ -47,28 +47,39 @@ function UserManagePage(props) {
}
handleFetchAuditListCount
();
},[])
useEffect
(()
=>
{
function
getStoreDetail
(){
const
params
=
{
storeId
:
User
.
getStoreId
()
}
StoreService
.
getStoreDetail
(
params
).
then
((
res
)
=>
{
return
StoreService
.
getStoreDetail
(
params
).
then
((
res
)
=>
{
const
{
result
=
{
}
}
=
res
;
const
{
auditSwitch
}
=
result
;
setAuditSwitch
(
auditSwitch
)
return
auditSwitch
})
}
function
jumpWechatAudit
(){
getStoreDetail
().
then
((
res
)
=>
{
if
(
res
===
'OPEN'
){
window
.
RCHistory
.
push
({
pathname
:
`
${
match
.
url
}
/wechat-user-audit`
,
});
}
})
}
useEffect
(()
=>
{
getStoreDetail
()
},[])
return
(
<
div
className=
"page new-user-manage-page"
>
<
div
className=
"content-header"
>
<
div
>
学员管理
</
div
>
<
If
condition=
{
auditSwitch
===
'OPEN'
}
>
<
div
className=
'wechat-audit'
onClick=
{
()
=>
{
window
.
RCHistory
.
push
({
pathname
:
`${match.url}/wechat-user-audit`
,
});
}
}
>
<
div
className=
'wechat-audit'
onClick=
{
jumpWechatAudit
}
>
<
div
>
<
span
className=
'icon iconfont icon-font-weixin'
>

</
span
>
<
span
className=
'content-header-right'
>
学员审核列表
</
span
>
...
...
src/modules/college-manage/WechatUserAudit/WechatUserAuditList.jsx
View file @
1d14c756
...
...
@@ -121,6 +121,13 @@ function WechatUserAuditList(props) {
message
.
success
(
'操作成功'
);
onChange
(
query
)
}
}).
catch
(
res
=>
{
if
(
res
.
code
===
'THIS_OPERATION_INVALID'
){
window
.
RCHistory
.
goBack
();
}
if
(
res
.
code
===
'AUDIT_HAS_OPERATION'
){
onChange
(
query
)
}
});
}
...
...
src/modules/home/Home.less
View file @
1d14c756
...
...
@@ -68,6 +68,7 @@
}
.data-footer {
margin-top: 12px;
margin-left: 22px;
.footer-word {
font-size: 12px;
color: #999;
...
...
src/modules/root/Header.jsx
View file @
1d14c756
/*
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors:
yuananting
* @LastEditTime: 2021-0
8-17 19:19:42
* @LastEditors:
wufan
* @LastEditTime: 2021-0
9-03 13:54:55
* @Description:
*/
import
React
,
{
useRef
,
useContext
,
useEffect
,
useState
}
from
'react'
;
...
...
src/modules/task-center/data-center/components/TestLinkTaskData.jsx
View file @
1d14c756
...
...
@@ -33,7 +33,7 @@ function TestLinkTaskData(props) {
setActiveExam
(
stageExamCustomerVOList
[
0
].
contentVOList
[
0
]);
const
{
contentId
,
paperId
}
=
stageExamCustomerVOList
[
0
].
contentVOList
[
0
];
const
{
match
}
=
props
;
const
path
=
`
${
match
.
url
}
/test-detail/
${
contentId
}
?paperId=
${
paperId
}
1
&userId=
${
storeCustomerId
}
&fromTrainingTask=true`
;
const
path
=
`
${
match
.
url
}
/test-detail/
${
contentId
}
?paperId=
${
paperId
}
&userId=
${
storeCustomerId
}
&fromTrainingTask=true`
;
window
.
RCHistory
.
replace
(
path
);
}
});
...
...
src/routes/config/mainRoutes.tsx
View file @
1d14c756
/*
* @Author: 吴文洁
* @Date: 2020-04-29 10:26:32
* @LastEditors:
yuananting
* @LastEditTime: 2021-0
8-18 12:41:27
* @LastEditors:
wufan
* @LastEditTime: 2021-0
9-03 13:54:59
* @Description: 内容线路由配置
*/
import
Home
from
'@/modules/home/Home'
;
...
...
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