Commit b7f8ed91 authored by 杨培's avatar 杨培

修改视频时若视频需要重新审核,则提交后跳转到审核提示页

parent 285e8826
...@@ -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]);
} }
/** /**
......
...@@ -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']
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment