Commit d2443e91 authored by 黄奎's avatar 黄奎

页面修改

parent 8bdb6865
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
border: 1px solid #2961FE; border: 1px solid #2961FE;
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
color:#2961FE; color: #2961FE;
} }
.OCourseTable { .OCourseTable {
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
label="班级名称" @clear="getClassList" maxlength="20" /> label="班级名称" @clear="getClassList" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @change="getClassList" clearable standout="bg-primary text-white" v-model="msg.ClassNo" <q-input @change="getClassList" clearable standout="bg-primary text-white" v-model="msg.ClassNo" label="班号"
label="班号" @clear="getClassList" maxlength="20" /> @clear="getClassList" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="getClassList" standout="bg-primary text-white" option-value="Id" option-label="Name" <q-select @input="getClassList" standout="bg-primary text-white" option-value="Id" option-label="Name"
...@@ -78,14 +78,14 @@ ...@@ -78,14 +78,14 @@
<div style="display: flex;align-items: center;"> <div style="display: flex;align-items: center;">
<q-avatar size="md" style="background:#d4dfff;color:#2961FE;font-weight:bold;" v-if="props.row.ClassName"> <q-avatar size="md" style="background:#d4dfff;color:#2961FE;font-weight:bold;" v-if="props.row.ClassName">
{{GetFirst(props.row.ClassName)}}</q-avatar> {{GetFirst(props.row.ClassName)}}</q-avatar>
<div > <div>
<span style="color:#2961FE;margin-left:10px;cursor:pointer;" @click="getClassInfo(props.row)" <span style="color:#2961FE;margin-left:10px;cursor:pointer;" @click="getClassInfo(props.row)"
title="点击查看详情">{{props.row.ClassName}}</span> title="点击查看详情">{{props.row.ClassName}}</span>
<div style="margin-left: 10px;">{{props.row.ClassNo}}</div> <div style="margin-left: 10px;">{{props.row.ClassNo}}</div>
</div> </div>
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-OtherCourseName="props"> <template v-slot:body-cell-OtherCourseName="props">
...@@ -105,7 +105,8 @@ ...@@ -105,7 +105,8 @@
<th>课程名称</th> <th>课程名称</th>
<th>课时数</th> <th>课时数</th>
</tr> </tr>
<tr v-for="(sItem,sIndex) in props.row.OtherCourseList" style="border-bottom:1px dashed #d1d1d1;"> <tr v-for="(sItem,sIndex) in props.row.OtherCourseList"
style="border-bottom:1px dashed #d1d1d1;">
<td>{{sItem.CourseName}}</td> <td>{{sItem.CourseName}}</td>
<td>{{sItem.ClassHours}}</td> <td>{{sItem.ClassHours}}</td>
</tr> </tr>
...@@ -216,7 +217,8 @@ ...@@ -216,7 +217,8 @@
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
<class-form v-if="isShowClassForm" :save-obj="classObjOption" @close="closeClassSaveForm" @getClassFlict="getClassFlict" @success="refreshPage"> <class-form v-if="isShowClassForm" :save-obj="classObjOption" @close="closeClassSaveForm"
@getClassFlict="getClassFlict" @success="refreshPage">
</class-form> </class-form>
<classinfo-form v-if="isShowClassInfo" :seting-obj="classObjOption" @close="closeClassSaveForm" <classinfo-form v-if="isShowClassInfo" :seting-obj="classObjOption" @close="closeClassSaveForm"
@success="refreshPage"> @success="refreshPage">
...@@ -224,7 +226,7 @@ ...@@ -224,7 +226,7 @@
<othercourseForm v-if="IsShowOtherCourse" :seting-obj="classObjOption" @close="closeClassSaveForm" <othercourseForm v-if="IsShowOtherCourse" :seting-obj="classObjOption" @close="closeClassSaveForm"
@success="refreshPage"> @success="refreshPage">
</othercourseForm> </othercourseForm>
<classconflict-form :ClassId="ClassId" v-if="isShowConflict" @close="closeClassSaveForm" <classconflict-form :ClassId="ClassId" v-if="isShowConflict" @close="closeClassConflictForm"
@success="refreshPage"></classconflict-form> @success="refreshPage"></classconflict-form>
</div> </div>
</div> </div>
...@@ -340,7 +342,7 @@ ...@@ -340,7 +342,7 @@
TeacherName: '', //带班老师 TeacherName: '', //带班老师
CourseName: '', //学习课程 CourseName: '', //学习课程
School_Id: -1, //关联校区 School_Id: -1, //关联校区
ClassNo:'',//班号 ClassNo: '', //班号
}, },
//班级状态 //班级状态
classStatusList: [], classStatusList: [],
...@@ -357,13 +359,12 @@ ...@@ -357,13 +359,12 @@
isShowClassInfo: false, //是否显示课程信息 isShowClassInfo: false, //是否显示课程信息
IsShowOtherCourse: false, //是否显示其他课程 IsShowOtherCourse: false, //是否显示其他课程
isShowConflict: false, //是否显示上课计划冲突 isShowConflict: false, //是否显示上课计划冲突
ClassId: 0, //传入到冲突表单参数
ClassId:53
} }
}, },
created() { created() {
if (this.$route.query && this.$route.query.ClassName) { if (this.$route.query && this.$route.query.ClassName) {
this.msg.ClassName = decodeURI(this.$route.query.ClassName) this.msg.ClassName = decodeURI(this.$route.query.ClassName)
} }
this.getClassStatus(); this.getClassStatus();
this.getSchool(); this.getSchool();
...@@ -372,13 +373,14 @@ ...@@ -372,13 +373,14 @@
this.getClassList(); this.getClassList();
}, },
methods: { methods: {
closeClassConflictForm() {
this.isShowConflict = false;
},
//显示冲突切换弹窗 //显示冲突切换弹窗
getClassFlict(ClassId){ getClassFlict(ClassId) {
this.isShowClassForm=false; this.isShowClassForm = false;
this.isShowConflict=true; this.isShowConflict = true;
this.ClassId = ClassId; this.ClassId = ClassId;
console.log('进入');
console.log(ClassId,'ClassId');
}, },
//删除班级 //删除班级
removeClass(item, status) { removeClass(item, status) {
...@@ -533,8 +535,7 @@ ...@@ -533,8 +535,7 @@
this.isShowClassInfo = false; this.isShowClassInfo = false;
//关闭关联其他课程弹窗 //关闭关联其他课程弹窗
this.IsShowOtherCourse = false; this.IsShowOtherCourse = false;
//关闭课程冲突
this.isShowConflict = false;
}, },
GetFirst(val) { GetFirst(val) {
if (val) { if (val) {
...@@ -560,16 +561,16 @@ ...@@ -560,16 +561,16 @@
this.classObjOption = obj; this.classObjOption = obj;
this.isShowClassInfo = true; this.isShowClassInfo = true;
}, },
gomonthLessonCost(row){ gomonthLessonCost(row) {
let ClassName = encodeURI(row.ClassName) let ClassName = encodeURI(row.ClassName)
this.OpenNewUrl('/course/monthLessonCost' , { this.OpenNewUrl('/course/monthLessonCost', {
ClassId: row.ClassId, ClassId: row.ClassId,
ClassName: ClassName, ClassName: ClassName,
}); });
}, },
//跳转到课程大纲 //跳转到课程大纲
goChapter(CouseId){ goChapter(CouseId) {
this.OpenNewUrl('/course/chapter' , { this.OpenNewUrl('/course/chapter', {
CourseId: CouseId CourseId: CouseId
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment