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
f3e43d6a
Commit
f3e43d6a
authored
Mar 12, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理创建培训计划必须关联课程
parent
cf519c45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
src/modules/plan-manage/AddPlan.jsx
+12
-2
src/modules/plan-manage/modal/UnbundEmployeeModal.jsx
+5
-1
src/modules/store-manage/StoreInfo.jsx
+1
-1
No files found.
src/modules/plan-manage/AddPlan.jsx
View file @
f3e43d6a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Author: zhangleyuan
* @Date: 2021-02-20 16:13:39
* @Date: 2021-02-20 16:13:39
* @LastEditors: zhangleyuan
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-1
1 19:42:02
* @LastEditTime: 2021-03-1
2 11:29:48
* @Description: 描述一下
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -142,7 +142,17 @@ function AddPlan() {
...
@@ -142,7 +142,17 @@ function AddPlan() {
for
(
let
i
=
0
;
i
<
taskList
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
taskList
.
length
;
i
++
){
if
(
input
.
test
(
taskList
[
i
].
taskName
)){
if
(
input
.
test
(
taskList
[
i
].
taskName
)){
message
.
warning
(
'培训任务名称不能为空'
);
message
.
warning
(
'培训任务名称不能为空'
);
return
;
return
false
;
}
if
(
taskList
[
i
].
courseList
.
length
===
0
){
Modal
.
confirm
({
title
:
'保存失败'
,
content
:
'每个任务下至少关联一个课程'
,
okText
:
'确定'
,
cancelText
:
'取消'
,
icon
:
<
span
className=
"icon iconfont default-confirm-icon"
>

</
span
>,
})
return
false
;
}
}
}
}
let
scheduleMediaRequests
=
[];
let
scheduleMediaRequests
=
[];
...
...
src/modules/plan-manage/modal/UnbundEmployeeModal.jsx
View file @
f3e43d6a
...
@@ -84,6 +84,10 @@ class UnbundEmployeeModal extends React.Component {
...
@@ -84,6 +84,10 @@ class UnbundEmployeeModal extends React.Component {
}
}
confirmUnbund
=
()
=>
{
confirmUnbund
=
()
=>
{
const
{
selectOperatorList
}
=
this
.
state
;
const
{
selectOperatorList
}
=
this
.
state
;
if
(
selectOperatorList
.
length
===
0
){
message
.
success
(
'请选择员工'
);
return
false
;
}
const
params
=
{
const
params
=
{
planId
:
getParameterByName
(
"id"
),
planId
:
getParameterByName
(
"id"
),
removeUserIds
:
_
.
pluck
(
selectOperatorList
,
'storeUserId'
),
removeUserIds
:
_
.
pluck
(
selectOperatorList
,
'storeUserId'
),
...
@@ -129,7 +133,7 @@ class UnbundEmployeeModal extends React.Component {
...
@@ -129,7 +133,7 @@ class UnbundEmployeeModal extends React.Component {
if
(
selected
)
{
if
(
selected
)
{
_list
=
_
.
uniq
(
selectOperatorList
.
concat
(
changeRows
),
false
,
(
item
)
=>
item
.
storeUserId
);
_list
=
_
.
uniq
(
selectOperatorList
.
concat
(
changeRows
),
false
,
(
item
)
=>
item
.
storeUserId
);
}
else
{
}
else
{
_list
=
_
.
reject
(
selectOperatorList
,
(
item
)
=>
_
.
find
(
changeRows
,
(
data
)
=>
data
.
i
d
===
item
.
storeUserId
));
_list
=
_
.
reject
(
selectOperatorList
,
(
item
)
=>
_
.
find
(
changeRows
,
(
data
)
=>
data
.
storeUserI
d
===
item
.
storeUserId
));
}
}
this
.
setState
({
selectOperatorList
:
_list
});
this
.
setState
({
selectOperatorList
:
_list
});
}
}
...
...
src/modules/store-manage/StoreInfo.jsx
View file @
f3e43d6a
...
@@ -26,7 +26,7 @@ class StoreInfo extends React.Component {
...
@@ -26,7 +26,7 @@ class StoreInfo extends React.Component {
}
}
}
}
componentWillMount
(){
componentWillMount
(){
//
this.getStoreDetail()
this
.
getStoreDetail
()
}
}
getStoreDetail
=
()
=>
{
getStoreDetail
=
()
=>
{
const
params
=
{
const
params
=
{
...
...
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