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
1f2942d7
Commit
1f2942d7
authored
Jan 16, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理讲师id显示为数字
parent
be506377
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
13 deletions
+22
-13
src/domains/basic-domain/constants.ts
+2
-2
src/domains/course-domain/constants.ts
+2
-2
src/modules/course-manage/AddLive.jsx
+6
-2
src/modules/course-manage/components/AddLiveClass.jsx
+11
-6
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+1
-1
No files found.
src/domains/basic-domain/constants.ts
View file @
1f2942d7
/*
* @Author: 陈剑宇
* @Date: 2020-05-07 14:43:01
* @LastEditTime: 2021-01-1
4 19:31:3
0
* @LastEditTime: 2021-01-1
6 18:00:1
0
* @LastEditors: zhangleyuan
* @Description:
* @FilePath: /wheat-web-demo/src/domains/basic-domain/constants.ts
...
...
@@ -9,7 +9,7 @@
import
{
MapInterface
}
from
'@/domains/basic-domain/interface'
// 默认是 dev 环境
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'
rc
'
;
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'
dev
'
;
console
.
log
(
"process.env.DEPLOY_ENV"
,
process
)
const
BASIC_HOST_MAP
:
MapInterface
=
{
dev
:
'https://dev-heimdall.xiaomai5.com/'
,
...
...
src/domains/course-domain/constants.ts
View file @
1f2942d7
...
...
@@ -2,12 +2,12 @@
* @Author: 吴文洁
* @Date: 2020-08-20 09:21:40
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-01-1
1 15:35:49
* @LastEditTime: 2021-01-1
6 18:00:18
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
import
{
MapInterface
}
from
'@/domains/basic-domain/interface'
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'
rc
'
;
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'
dev
'
;
const
appIdMap
:
MapInterface
=
{
dev
:
'wx3ea60e78ddfa277e'
,
...
...
src/modules/course-manage/AddLive.jsx
View file @
1f2942d7
...
...
@@ -82,6 +82,7 @@ class AddLive extends React.Component {
teacherId
:
null
,
teacherName
:
null
,
assistant
:[],
assistantStoreUserId
:[],
assistantNames
:[],
liveDate
:
null
,
timeHorizonStart
:
null
,
...
...
@@ -170,6 +171,7 @@ class AddLive extends React.Component {
const
timeHorizonStart
=
startTime
;
const
timeHorizonEnd
=
endTime
;
const
assistant
=
_
.
pluck
(
admins
,
"adminId"
);
const
assistantStoreUserId
=
_
.
pluck
(
admins
,
"adminStoreUserId"
);
//编辑时的选中的助教的查询用storeUserId查询
const
assistantNames
=
_
.
pluck
(
admins
,
"adminName"
);
const
addLiveClassInfo
=
{
assistant
,
...
...
@@ -181,7 +183,8 @@ class AddLive extends React.Component {
timeHorizonEnd
,
startTime
,
endTime
,
assistantNames
assistantNames
,
assistantStoreUserId
}
// liveCourseMediaRequests = liveCourseMediaRequests.length
...
...
@@ -223,7 +226,7 @@ handleChangeBasicInfo = (field, value) => {
}
// 修改上课信息
handleChangeClassInfo
=
(
field
,
value
,
_teacherN
ame
)
=>
{
handleChangeClassInfo
=
(
field
,
value
,
type
,
n
ame
)
=>
{
const
_value
=
value
?
value
.
valueOf
()
:
null
;
const
{
teacherName
}
=
this
.
state
.
addLiveClassInfo
;
this
.
setState
({
...
...
@@ -233,6 +236,7 @@ handleChangeBasicInfo = (field, value) => {
teacherName
:
_teacherName
?
_teacherName
:
teacherName
}
});
// 批量开始时间改变,结束时间自动同步一致
if
(
field
===
'startTime'
)
{
this
.
setState
({
...
...
src/modules/course-manage/components/AddLiveClass.jsx
View file @
1f2942d7
...
...
@@ -48,7 +48,12 @@ class AddLiveClass extends React.Component {
this
.
getTeacherList
();
this
.
getAssistantList
();
}
componentWillReceiveProps
(
nextProps
)
{
if
(
nextProps
.
data
.
assistantStoreUserId
.
length
>
0
)
{
// 获取助教老师列表
// this.getAssistantList(1, nextProps.data.assistant);
}
}
getTeacherList
(
current
=
1
,
selectList
){
const
{
teacherQuery
,
teacherList
}
=
this
.
state
;
const
_query
=
{
...
...
@@ -69,7 +74,8 @@ class AddLiveClass extends React.Component {
// 获取助教老师列表
getAssistantList
=
(
current
=
1
,
selectList
)
=>
{
const
{
assistantQuery
,
assistantList
}
=
this
.
state
;
const
{
teacherId
,
assistant
}
=
this
.
props
.
data
;
const
idList
=
selectList
;
const
_query
=
{
...
assistantQuery
,
current
,
...
...
@@ -259,7 +265,7 @@ class AddLiveClass extends React.Component {
onPopupScroll=
{
this
.
handleScrollTeacherList
}
onChange=
{
(
value
,
option
)
=>
{
console
.
log
(
"value"
,
value
);
this
.
props
.
onChange
(
'teacherId'
,
value
,
option
.
children
)
this
.
props
.
onChange
(
'teacherId'
,
value
,
'teacherType'
,
option
.
children
)
}
}
onSearch=
{
(
value
)
=>
{
teacherQuery
.
nickName
=
value
...
...
@@ -287,7 +293,7 @@ class AddLiveClass extends React.Component {
placeholder=
"请选择助教老师"
// key={assistantNames}
// defaultValue={assistantNames}
value=
{
assistant
}
value=
{
assistant
Names
}
disabled=
{
!
isEdit
?
true
:
false
}
mode=
{
'multiple'
}
showSearch
...
...
@@ -296,8 +302,7 @@ class AddLiveClass extends React.Component {
filterOption=
{
(
input
,
option
)
=>
option
}
onPopupScroll=
{
this
.
handleScrollAssistantList
}
onChange=
{
(
value
,
option
)
=>
{
console
.
log
(
'option'
,
option
);
this
.
props
.
onChange
(
'assistant'
,
value
)
this
.
props
.
onChange
(
'assistant'
,
value
,
'assistantType'
,
option
.
children
)
}
}
onSearch=
{
(
value
)
=>
{
assistantQuery
.
nickName
=
value
...
...
src/modules/course-manage/video-course/components/VideoCourseList.jsx
View file @
1f2942d7
...
...
@@ -23,7 +23,7 @@ import User from '@/common/js/user'
import
'./VideoCourseList.less'
;
const
ENV
=
process
.
env
.
DEPLOY_ENV
||
'
rc
'
;
const
ENV
=
process
.
env
.
DEPLOY_ENV
||
'
dev
'
;
class
VideoCourseList
extends
React
.
Component
{
...
...
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