|
@@ -187,7 +187,7 @@ export default {
|
|
|
this.$router.push(path);
|
|
|
},
|
|
|
addUserRate(i) {
|
|
|
- var suid = this.userid;
|
|
|
+ // var suid = this.userid;
|
|
|
// if (
|
|
|
// JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
|
|
|
// JSON.parse(this.courseDetail.userid) != suid
|
|
@@ -195,25 +195,25 @@ 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 (a != "") {
|
|
|
- if (
|
|
|
- JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
|
|
|
- ) {
|
|
|
- this.$message.error("你没有该权限");
|
|
|
- return;
|
|
|
- }
|
|
|
- } else {
|
|
|
- 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 (a != "") {
|
|
|
+ // if (
|
|
|
+ // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
|
|
|
+ // ) {
|
|
|
+ // this.$message.error("你没有该权限");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
let params = {
|
|
|
uid: this.userid,
|
|
|
cid: this.id,
|