|
@@ -2619,16 +2619,16 @@ export default {
|
|
|
},
|
|
|
navSteps(s) {
|
|
|
let typeT = 1
|
|
|
- if(this.courseTypeId.length){
|
|
|
+ if (this.courseTypeId.length) {
|
|
|
let array = Object.keys(this.CourseTypeJson)
|
|
|
- for(var t = 0;t<array.length;t++){
|
|
|
+ for (var t = 0; t < array.length; t++) {
|
|
|
var tp = array[t]
|
|
|
var tAarray = []
|
|
|
- for(var tt = 0;tt < this.CourseTypeJson[tp].length;tt++){
|
|
|
+ for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
|
|
|
tAarray.push(this.CourseTypeJson[tp][tt].id)
|
|
|
}
|
|
|
- for(var tt = 0;tt < this.courseTypeId.length;tt++){
|
|
|
- if(tAarray.indexOf(this.courseTypeId[tt]) != -1){
|
|
|
+ for (var tt = 0; tt < this.courseTypeId.length; tt++) {
|
|
|
+ if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
|
|
|
typeT++
|
|
|
}
|
|
|
}
|
|
@@ -2800,16 +2800,16 @@ export default {
|
|
|
},
|
|
|
nextSteps() {
|
|
|
let typeT = 1
|
|
|
- if(this.courseTypeId.length){
|
|
|
+ if (this.courseTypeId.length) {
|
|
|
let array = Object.keys(this.CourseTypeJson)
|
|
|
- for(var t = 0;t<array.length;t++){
|
|
|
+ for (var t = 0; t < array.length; t++) {
|
|
|
var tp = array[t]
|
|
|
var tAarray = []
|
|
|
- for(var tt = 0;tt < this.CourseTypeJson[tp].length;tt++){
|
|
|
+ for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
|
|
|
tAarray.push(this.CourseTypeJson[tp][tt].id)
|
|
|
}
|
|
|
- for(var tt = 0;tt < this.courseTypeId.length;tt++){
|
|
|
- if(tAarray.indexOf(this.courseTypeId[tt]) != -1){
|
|
|
+ for (var tt = 0; tt < this.courseTypeId.length; tt++) {
|
|
|
+ if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
|
|
|
typeT++
|
|
|
}
|
|
|
}
|
|
@@ -4597,8 +4597,11 @@ export default {
|
|
|
this.dialogVisibleTcMember = true;
|
|
|
},
|
|
|
getTemplate() {
|
|
|
+ let params = {
|
|
|
+ oid: this.oid
|
|
|
+ }
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "getCourseTemplateT", "")
|
|
|
+ .get(this.$store.state.api + "getCourseTemplateTs", params)
|
|
|
.then((res) => {
|
|
|
this.templateArray = res.data[0];
|
|
|
})
|