|
@@ -420,9 +420,11 @@ import shareDialog from './dialog/shareDialog.vue'
|
|
|
import templateDialog from "./aiAddCourse/templateDialog.vue";
|
|
|
import templateDialogE from "./aiEasy/templateDialog.vue";
|
|
|
import { v4 as uuidv4 } from "uuid";
|
|
|
+import { myMixin } from "@/mixins/mixin.js"
|
|
|
|
|
|
export default {
|
|
|
components: { EditorBar, CourseProblem,shareDialog,templateDialog,templateDialogE },
|
|
|
+ mixins: [ myMixin ],
|
|
|
data() {
|
|
|
return {
|
|
|
itemCount: 1,
|
|
@@ -619,6 +621,7 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ this.addOp3('1', "", { courseid: courseId ,type: "course_stageMode_edit" }, "success")
|
|
|
} else {
|
|
|
this.$router.push(
|
|
|
"/newAddCourse?userid=" +
|
|
@@ -630,6 +633,7 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ this.addOp3('1', "", { type: "course_stageMode_createClick" }, "success")
|
|
|
}
|
|
|
// this.$router.push(path);
|
|
|
},
|
|
@@ -653,6 +657,7 @@ export default {
|
|
|
"&templateid=" +
|
|
|
tid
|
|
|
);
|
|
|
+ this.addOp3('1', "", { type: "course_aiStageMode_createClick" }, "success")
|
|
|
},
|
|
|
goToCourseTemplate2(tid){
|
|
|
if(tid){
|
|
@@ -683,6 +688,7 @@ export default {
|
|
|
"&istemplate=1"
|
|
|
);
|
|
|
}
|
|
|
+ this.addOp3('1', "", { type: "course_aiMode_createClick" }, "success")
|
|
|
},
|
|
|
goToCourse5(courseId) {
|
|
|
if (courseId) {
|
|
@@ -698,6 +704,7 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ this.addOp3('1', "", { courseid: courseId ,type: "course_aiMode_edit" }, "success")
|
|
|
} else {
|
|
|
this.$router.push(
|
|
|
"/aiAddCourse?userid=" +
|
|
@@ -755,6 +762,7 @@ export default {
|
|
|
"&istemplate=1"
|
|
|
);
|
|
|
}
|
|
|
+ this.addOp3('1', "", { type: "course_aiEasyMode_createClick" }, "success")
|
|
|
},
|
|
|
goToCourse6(courseId){
|
|
|
if (courseId) {
|
|
@@ -770,6 +778,7 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ this.addOp3('1', "", { courseid: courseId ,type: "course_aiEasyMode_edit" }, "success")
|
|
|
} else {
|
|
|
this.$router.push(
|
|
|
"/addCourseEAi?userid=" +
|
|
@@ -851,6 +860,7 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ this.addOp3('1', "", { courseid: courseId ,type: "course_easyMode_edit" }, "success")
|
|
|
} else {
|
|
|
this.$router.push(
|
|
|
"/course/addCourseE?userid=" +
|
|
@@ -862,6 +872,7 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ this.addOp3('1', "", { type: "course_easyMode_createClick" }, "success")
|
|
|
}
|
|
|
},
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
@@ -881,6 +892,20 @@ export default {
|
|
|
window.topU.postMessage({ cid: cid, screenType: "2" }, "*");
|
|
|
},
|
|
|
get(item) {
|
|
|
+ let _str = ""
|
|
|
+ if(item.state == 1){
|
|
|
+ _str = "course_stageMode_open"
|
|
|
+ }if(item.state == 2){
|
|
|
+ _str = "course_taskMode_open"
|
|
|
+ }if(item.state == 3){
|
|
|
+ _str = "course_easyMode_open"
|
|
|
+ }if(item.state == 5){
|
|
|
+ _str = "course_aiMode_open"
|
|
|
+ }if(item.state == 6){
|
|
|
+ _str = "course_aiEasyMode_open"
|
|
|
+ }
|
|
|
+ this.addOp3('1', "", { courseid: item.courseId, type: _str }, "success")
|
|
|
+
|
|
|
window.topU.postMessage({ cid: item.courseId, screenType: "3" }, "*");
|
|
|
},
|
|
|
getNT(cid) {
|