|
@@ -48,11 +48,18 @@
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
<span>{{ item.name }}:</span>
|
|
<span>{{ item.name }}:</span>
|
|
|
|
+ <div
|
|
|
|
+ class="cName"
|
|
|
|
+ @click="getCourse(item.name, '', item.id, 1)"
|
|
|
|
+ :class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''"
|
|
|
|
+ >
|
|
|
|
+ 全部
|
|
|
|
+ </div>
|
|
<div
|
|
<div
|
|
v-for="item1 in CourseTypeJson[item.id]"
|
|
v-for="item1 in CourseTypeJson[item.id]"
|
|
:key="item1.id"
|
|
:key="item1.id"
|
|
:label="item1.id"
|
|
:label="item1.id"
|
|
- @click="getCourse(item.name, item1.id)"
|
|
|
|
|
|
+ @click="getCourse(item.name, item.id, item1.id, 2)"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
class="cName"
|
|
class="cName"
|
|
@@ -105,13 +112,13 @@
|
|
<el-tooltip
|
|
<el-tooltip
|
|
class="typeN"
|
|
class="typeN"
|
|
effect="light"
|
|
effect="light"
|
|
- :content="item.typename ? item.typename : '暂无'"
|
|
|
|
|
|
+ :content="item.typename"
|
|
placement="top"
|
|
placement="top"
|
|
>
|
|
>
|
|
- <div>{{ item.typename ? item.typename : "暂无" }}</div>
|
|
|
|
|
|
+ <div>{{ item.typename }}</div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
|
|
|
- <div style="padding-right: 10px">
|
|
|
|
|
|
+ <div style="padding-right: 10px;min-width: 55px;">
|
|
{{ JSON.parse(item.chapters).length }}阶段
|
|
{{ JSON.parse(item.chapters).length }}阶段
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -151,7 +158,11 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="student_page" style="margin: 15px 0 0" v-if="zoneClass.length > 0">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="student_page"
|
|
|
|
+ style="margin: 15px 0 0"
|
|
|
|
+ v-if="zoneClass.length > 0"
|
|
|
|
+ >
|
|
<el-pagination
|
|
<el-pagination
|
|
background
|
|
background
|
|
layout="prev, pager, next"
|
|
layout="prev, pager, next"
|
|
@@ -199,6 +210,7 @@ export default {
|
|
typea: "",
|
|
typea: "",
|
|
typeb: "",
|
|
typeb: "",
|
|
typed: "",
|
|
typed: "",
|
|
|
|
+ typeE: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -239,24 +251,66 @@ export default {
|
|
console.error(err);
|
|
console.error(err);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- getCourse(typeName, typeid) {
|
|
|
|
|
|
+ getCourse(typeName, ftypeId, typeid, type) {
|
|
if (typeName == "年级") {
|
|
if (typeName == "年级") {
|
|
- if (this.typea == typeid) {
|
|
|
|
- this.typea = "";
|
|
|
|
|
|
+ if (type == 1) {
|
|
|
|
+ if (this.typeE.indexOf(typeid) != -1) {
|
|
|
|
+ this.typeE.splice(this.typeE.indexOf(typeid), 1);
|
|
|
|
+ } else {
|
|
|
|
+ this.typeE.push(typeid);
|
|
|
|
+ if(this.typea != ""){
|
|
|
|
+ this.typea = "";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
- this.typea = typeid;
|
|
|
|
|
|
+ if (this.typea == typeid) {
|
|
|
|
+ this.typea = "";
|
|
|
|
+ } else {
|
|
|
|
+ this.typea = typeid;
|
|
|
|
+ if (this.typeE.indexOf(ftypeId) != -1) {
|
|
|
|
+ this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
} else if (typeName == "专栏") {
|
|
} else if (typeName == "专栏") {
|
|
- if (this.typeb == typeid) {
|
|
|
|
- this.typeb = "";
|
|
|
|
|
|
+ if (type == 1) {
|
|
|
|
+ if (this.typeE.indexOf(typeid) != -1) {
|
|
|
|
+ this.typeE.splice(this.typeE.indexOf(typeid), 1);
|
|
|
|
+ } else {
|
|
|
|
+ this.typeE.push(typeid);
|
|
|
|
+ if(this.typeb != ""){
|
|
|
|
+ this.typeb = "";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
- this.typeb = typeid;
|
|
|
|
|
|
+ if (this.typeb == typeid) {
|
|
|
|
+ this.typeb = "";
|
|
|
|
+ } else {
|
|
|
|
+ this.typeb = typeid;
|
|
|
|
+ if (this.typeE.indexOf(ftypeId) != -1) {
|
|
|
|
+ this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
} else if (typeName == "学科") {
|
|
} else if (typeName == "学科") {
|
|
- if (this.typed == typeid) {
|
|
|
|
- this.typed = "";
|
|
|
|
|
|
+ if (type == 1) {
|
|
|
|
+ if (this.typeE.indexOf(typeid) != -1) {
|
|
|
|
+ this.typeE.splice(this.typeE.indexOf(typeid), 1);
|
|
|
|
+ } else {
|
|
|
|
+ this.typeE.push(typeid);
|
|
|
|
+ if(this.typed != ""){
|
|
|
|
+ this.typed = "";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
- this.typed = typeid;
|
|
|
|
|
|
+ if (this.typed == typeid) {
|
|
|
|
+ this.typed = "";
|
|
|
|
+ } else {
|
|
|
|
+ this.typed = typeid;
|
|
|
|
+ if (this.typeE.indexOf(ftypeId) != -1) {
|
|
|
|
+ this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.selectAll();
|
|
this.selectAll();
|
|
@@ -272,7 +326,7 @@ export default {
|
|
typeb: this.typeb != undefined ? this.typeb : "",
|
|
typeb: this.typeb != undefined ? this.typeb : "",
|
|
typec: "",
|
|
typec: "",
|
|
typed: this.typed != undefined ? this.typed : "",
|
|
typed: this.typed != undefined ? this.typed : "",
|
|
- typeE: "",
|
|
|
|
|
|
+ typeE: this.typeE.join(","),
|
|
cu: "",
|
|
cu: "",
|
|
cn: this.sCourse,
|
|
cn: this.sCourse,
|
|
classid: this.classId,
|
|
classid: this.classId,
|
|
@@ -408,7 +462,7 @@ export default {
|
|
margin: 0px 1% 20px;
|
|
margin: 0px 1% 20px;
|
|
width: 16%;
|
|
width: 16%;
|
|
/*border: 1px solid #cecece; */
|
|
/*border: 1px solid #cecece; */
|
|
- border-radius: 5px;
|
|
|
|
|
|
+ border-radius: 10px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
|
|
box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
|
|
0px 2px 1px -1px rgb(0 0 0 / 12%);
|
|
0px 2px 1px -1px rgb(0 0 0 / 12%);
|
|
@@ -507,8 +561,9 @@ export default {
|
|
margin: 10px 0;
|
|
margin: 10px 0;
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
+
|
|
.all_choose > span {
|
|
.all_choose > span {
|
|
- width: 80px;
|
|
|
|
|
|
+ min-width: 80px;
|
|
display: block;
|
|
display: block;
|
|
letter-spacing: 14px;
|
|
letter-spacing: 14px;
|
|
}
|
|
}
|
|
@@ -546,6 +601,7 @@ export default {
|
|
.cName {
|
|
.cName {
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
margin: 0 10px;
|
|
margin: 0 10px;
|
|
|
|
+ color: #c3c1c3;
|
|
}
|
|
}
|
|
|
|
|
|
.reBox {
|
|
.reBox {
|
|
@@ -557,6 +613,7 @@ export default {
|
|
width: 90%;
|
|
width: 90%;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
padding-left: 20px;
|
|
padding-left: 20px;
|
|
|
|
+ min-width: 1050px;
|
|
}
|
|
}
|
|
.reTop {
|
|
.reTop {
|
|
padding: 20px 0 0 0;
|
|
padding: 20px 0 0 0;
|
|
@@ -572,7 +629,7 @@ export default {
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
width: 40px;
|
|
width: 40px;
|
|
border-bottom: 1px solid #205cc6;
|
|
border-bottom: 1px solid #205cc6;
|
|
- padding-bottom: 10px;
|
|
|
|
|
|
+ padding-bottom: 20px;
|
|
color: #205cc6;
|
|
color: #205cc6;
|
|
font-size: 20px;
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
@@ -584,6 +641,7 @@ export default {
|
|
width: 300px;
|
|
width: 300px;
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
padding: 5px 0;
|
|
padding: 5px 0;
|
|
|
|
+ margin-bottom: 10px;
|
|
}
|
|
}
|
|
.search {
|
|
.search {
|
|
width: 20px;
|
|
width: 20px;
|