Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
b7f8ed91
Commit
b7f8ed91
authored
Nov 01, 2016
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改视频时若视频需要重新审核,则提交后跳转到审核提示页
parent
285e8826
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
MyCourseController.php
src/frontend/controllers/MyCourseController.php
+2
-4
edit.js
src/frontend/web/js/my-course/edit.js
+2
-1
No files found.
src/frontend/controllers/MyCourseController.php
View file @
b7f8ed91
...
@@ -263,9 +263,7 @@ class MyCourseController extends \yii\web\Controller
...
@@ -263,9 +263,7 @@ class MyCourseController extends \yii\web\Controller
}
}
//保存课程数据
//保存课程数据
if
(
!
$course
->
update
())
{
$course
->
update
();
Utils
::
ajaxResponse
(
false
,
'课程保存失败'
);
}
//保存讲师与课程关联数据
//保存讲师与课程关联数据
CourseTeacher
::
autoSaveRelations
(
$course
->
id
,
$form
->
teacher
);
CourseTeacher
::
autoSaveRelations
(
$course
->
id
,
$form
->
teacher
);
...
@@ -304,7 +302,7 @@ class MyCourseController extends \yii\web\Controller
...
@@ -304,7 +302,7 @@ class MyCourseController extends \yii\web\Controller
AttachUpload
::
claimTmpAttachs
(
$form
->
tmp
,
'course:'
.
$course
->
id
);
AttachUpload
::
claimTmpAttachs
(
$form
->
tmp
,
'course:'
.
$course
->
id
);
Utils
::
ajaxResponse
(
true
,
null
,
[
'course_id'
=>
$course
->
id
]);
Utils
::
ajaxResponse
(
true
,
null
,
[
'course_id'
=>
$course
->
id
,
'recheck'
=>
$recheck
]);
}
}
/**
/**
...
...
src/frontend/web/js/my-course/edit.js
View file @
b7f8ed91
...
@@ -66,7 +66,8 @@ var vm = new Vue({
...
@@ -66,7 +66,8 @@ var vm = new Vue({
time
:
2000
,
time
:
2000
,
icon
:
1
,
icon
:
1
,
end
:
function
()
{
end
:
function
()
{
location
.
href
=
"/my-course/"
;
location
.
href
=
t
.
data
.
recheck
?
"/my-course/result?id="
+
t
.
data
.
course_id
+
"&action=edit"
:
"/my-course/"
;
},
},
shade
:[
0.2
,
'#000'
]
shade
:[
0.2
,
'#000'
]
});
});
...
...
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