|
@@ -33,7 +33,7 @@
|
|
|
<span>分组管理</span>
|
|
|
<!-- <span>备注:教师可以根据课程、班级条件筛选学生并查看该学生信息</span> -->
|
|
|
</div>
|
|
|
- <div class="student_head">
|
|
|
+ <!-- <div class="student_head">
|
|
|
<div class="student_search">
|
|
|
<el-button
|
|
|
size="small"
|
|
@@ -41,64 +41,42 @@
|
|
|
@click="dialogVisible = true"
|
|
|
v-if="step == 0"
|
|
|
>添加学校</el-button
|
|
|
+ >-->
|
|
|
+ <div v-if="step == 1" class="student_search1">
|
|
|
+ <div></div>
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click="dialogVisible6 = true"
|
|
|
+ >添加图片</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click="dialogVisible2 = true"
|
|
|
+ >添加分类</el-button
|
|
|
>
|
|
|
- <div v-if="step == 1" class="student_search1">
|
|
|
- <el-breadcrumb
|
|
|
- separator-class="el-icon-arrow-right"
|
|
|
- style="margin-top: 15px"
|
|
|
- >
|
|
|
- <el-breadcrumb-item>
|
|
|
- <span @click="step = 0" style="cursor: pointer"
|
|
|
- >学校列表</span
|
|
|
- ></el-breadcrumb-item
|
|
|
- >
|
|
|
- <el-breadcrumb-item>
|
|
|
- <span style="color: rgb(15, 126, 255)">分类列表</span>
|
|
|
- </el-breadcrumb-item>
|
|
|
- </el-breadcrumb>
|
|
|
- <div>
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- @click="dialogVisible6 = true"
|
|
|
- >添加图片</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- @click="dialogVisible2 = true"
|
|
|
- >添加分类</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div v-if="step == 2" class="student_search1">
|
|
|
- <el-breadcrumb
|
|
|
- separator-class="el-icon-arrow-right"
|
|
|
- style="margin-top: 15px"
|
|
|
- >
|
|
|
- <el-breadcrumb-item>
|
|
|
- <span @click="step = 0" style="cursor: pointer"
|
|
|
- >学校列表</span
|
|
|
- ></el-breadcrumb-item
|
|
|
- >
|
|
|
- <el-breadcrumb-item>
|
|
|
- <span @click="step = 1" style="cursor: pointer"
|
|
|
- >分类列表</span
|
|
|
- >
|
|
|
- </el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item>
|
|
|
- <span style="color: rgb(15, 126, 255)">子分类列表</span>
|
|
|
- </el-breadcrumb-item>
|
|
|
- </el-breadcrumb>
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- @click="dialogVisible4 = true"
|
|
|
- >添加子分类</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div v-if="step == 2" class="student_search1">
|
|
|
+ <el-breadcrumb
|
|
|
+ separator-class="el-icon-arrow-right"
|
|
|
+ style="margin-top: 15px"
|
|
|
+ >
|
|
|
+ <el-breadcrumb-item>
|
|
|
+ <span @click="step = 1" style="cursor: pointer">分类列表</span>
|
|
|
+ </el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item>
|
|
|
+ <span style="color: rgb(15, 126, 255)">子分类列表</span>
|
|
|
+ </el-breadcrumb-item>
|
|
|
+ </el-breadcrumb>
|
|
|
+ <el-button size="small" type="primary" @click="dialogVisible4 = true"
|
|
|
+ >添加子分类</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <!-- </div>
|
|
|
+ </div>
|
|
|
<el-table
|
|
|
ref="table"
|
|
|
:data="tableData"
|
|
@@ -138,7 +116,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
+ </el-table> -->
|
|
|
<el-table
|
|
|
ref="table"
|
|
|
:data="tableData1"
|
|
@@ -404,13 +382,13 @@
|
|
|
<div class="dialogBox" style="color: #bebebe; margin: 10px 0 0 0">
|
|
|
注:适宜上传banner尺寸为1218×300
|
|
|
</div>
|
|
|
- <div class="dialogBox" style="margin: 10px 0 0 0">
|
|
|
+ <!-- <div class="dialogBox" style="margin: 10px 0 0 0">
|
|
|
<span>Banner课程链接</span>
|
|
|
<span style="max-width: 160px">{{ bannerCourse.title }}</span>
|
|
|
<el-button type="primary" size="medium" @click="addBannerUrlPop"
|
|
|
>选择课程</el-button
|
|
|
>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisible6 = false">取 消</el-button>
|
|
@@ -504,7 +482,7 @@ export default {
|
|
|
dialogVisible5: false,
|
|
|
dialogVisible6: false,
|
|
|
dialogVisible7: false,
|
|
|
- step: 0,
|
|
|
+ step: 1,
|
|
|
pid: "",
|
|
|
imgVisible: false,
|
|
|
dialogImageUrl: "",
|
|
@@ -828,16 +806,13 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- selectType(id) {
|
|
|
- this.tableData1 = [];
|
|
|
- this.tableData2 = [];
|
|
|
- this.step = 1;
|
|
|
- this.updateOid = id;
|
|
|
+ selectType() {
|
|
|
let params = {
|
|
|
+ oid: this.oid,
|
|
|
page: this.page1,
|
|
|
};
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "selectPtype", params)
|
|
|
+ .get(this.$store.state.api + "selectPtype1", params)
|
|
|
.then((res) => {
|
|
|
this.total1 = res.data[0].length > 0 ? res.data[0][0].num : 0;
|
|
|
this.tableData1 = res.data[0];
|
|
@@ -871,7 +846,7 @@ export default {
|
|
|
}
|
|
|
let params = {
|
|
|
pid: pid != undefined ? pid : this.pid,
|
|
|
- oid: this.updateOid,
|
|
|
+ oid: this.oid,
|
|
|
page: this.page2,
|
|
|
};
|
|
|
this.ajax
|
|
@@ -1045,7 +1020,8 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.page = 1;
|
|
|
- this.selectSchool();
|
|
|
+ // this.selectSchool();
|
|
|
+ this.selectType();
|
|
|
},
|
|
|
};
|
|
|
</script>
|