|
@@ -194,12 +194,21 @@ export default {
|
|
|
// this.$message.error("你没有该权限");
|
|
|
// return;
|
|
|
// }
|
|
|
+ var a =
|
|
|
+ this.courseDetail.course_student != ""
|
|
|
+ ? JSON.parse(this.courseDetail.course_student)
|
|
|
+ : "";
|
|
|
if (this.courseDetail.userid != suid) {
|
|
|
if (this.userinfo.type == 2) {
|
|
|
- if (
|
|
|
- JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
|
|
|
- ) {
|
|
|
- this.$message.error("你没有该权限");
|
|
|
+ if (a != "") {
|
|
|
+ if (
|
|
|
+ JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
|
|
|
+ ) {
|
|
|
+ this.$message.error("你没有该权限");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error("暂无项目学员,请联系老师添加项目学员!");
|
|
|
return;
|
|
|
}
|
|
|
}
|