|
@@ -22,7 +22,7 @@
|
|
|
</div>
|
|
|
<div class="choose">
|
|
|
<div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
|
|
|
- <span>{{ item.name }}:</span>
|
|
|
+ <div><span>{{ item.name }}</span>:</div>
|
|
|
<div class="typeCss">
|
|
|
<div class="cName" @click="getCourse(item.name, '', item.id, 1)"
|
|
|
:class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''" style="min-width: fit-content;width: auto;">
|
|
@@ -483,43 +483,43 @@ export default {
|
|
|
oid: this.oid && this.oid != "" ? this.oid : "",
|
|
|
};
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "selectStudentType", params)
|
|
|
+ .get(this.$store.state.api + "selectAllTypeS", params)
|
|
|
.then((res) => {
|
|
|
- this.CourseTypeJson = {};
|
|
|
+ this.CourseTypeJson = {}
|
|
|
this.CourseType = res.data;
|
|
|
+
|
|
|
for (var i = 0; i < res.data[0].length; i++) {
|
|
|
- if (!this.cid) {
|
|
|
- this.courseTypeId[res.data[0][i].id] = "";
|
|
|
- }
|
|
|
if (!this.CourseTypeJson[res.data[0][i].id]) {
|
|
|
this.CourseTypeJson[res.data[0][i].id] = [];
|
|
|
}
|
|
|
+ if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
|
|
|
+ if (res.data[0][i].name == "赛道") {
|
|
|
+ this.CourseType[0][i].name = "项目类型";
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- // if (res.data[2].length == 0 && res.data[3].length == 0) {
|
|
|
- for (var j = 0; j < res.data[1].length; j++) {
|
|
|
- if (res.data[0][i].id == res.data[1][j].pid) {
|
|
|
- if (!this.CourseTypeJson[res.data[0][i].id]) {
|
|
|
- this.CourseTypeJson[res.data[0][i].id] = [];
|
|
|
+ if (res.data[2].length == 0 && res.data[3].length == 0) {
|
|
|
+ for (var j = 0; j < res.data[1].length; j++) {
|
|
|
+ if (res.data[0][i].id == res.data[1][j].pid) {
|
|
|
+ this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (res.data[2].length > 0) {
|
|
|
+ for (var j = 0; j < res.data[2].length; j++) {
|
|
|
+ if (res.data[0][i].id == res.data[2][j].pid) {
|
|
|
+ this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (res.data[3].length > 0) {
|
|
|
+ for (var j = 0; j < res.data[3].length; j++) {
|
|
|
+ if (res.data[0][i].id == res.data[3][j].pid) {
|
|
|
+ this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
|
|
|
+ }
|
|
|
}
|
|
|
- this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
|
|
|
}
|
|
|
}
|
|
|
- // } else {
|
|
|
- // if (res.data[2].length > 0) {
|
|
|
- // for (var j = 0; j < res.data[2].length; j++) {
|
|
|
- // if (res.data[0][i].id == res.data[2][j].pid) {
|
|
|
- // this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // if (res.data[3].length > 0) {
|
|
|
- // for (var j = 0; j < res.data[3].length; j++) {
|
|
|
- // if (res.data[0][i].id == res.data[3][j].pid) {
|
|
|
- // this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
}
|
|
|
this.$forceUpdate();
|
|
|
})
|
|
@@ -802,14 +802,18 @@ export default {
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
-.all_choose>span {
|
|
|
- min-width: 80px;
|
|
|
+.all_choose>div:nth-child(1) span {
|
|
|
+ text-align-last: justify;
|
|
|
+ width: 100%;
|
|
|
display: block;
|
|
|
- letter-spacing: 14px;
|
|
|
}
|
|
|
|
|
|
-.all_choose>span:nth-child(1) {
|
|
|
+.all_choose>div:nth-child(1) {
|
|
|
+ min-width: 80px;
|
|
|
+ width: 80px;
|
|
|
font-weight: bold;
|
|
|
+ margin-right: 10px;
|
|
|
+ display: flex;
|
|
|
}
|
|
|
|
|
|
.all_choose>>>.el-checkbox-group {
|