Commit bc9609bb authored by 黄奎's avatar 黄奎

页面修改

parent 5f4edd54
...@@ -3,22 +3,24 @@ ...@@ -3,22 +3,24 @@
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input @change="getList" clearable standout="bg-primary text-white" v-model="msg.ClassName" label="班级名称" /> <q-input @change="getList" clearable standout="bg-primary text-white" v-model="msg.ClassName" label="班级名称"
@clear="getList" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="getList" standout="bg-primary text-white" option-value="Id" option-label="Name" <q-select @input="getList" standout="bg-primary text-white" option-value="Id" option-label="Name"
v-model="msg.classStatus" :options="classStatusList" emit-value map-options label="课程状态" /> v-model="msg.ClassStatus" :options="classStatusList" emit-value map-options label="课程状态" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @change="getList" clearable standout="bg-primary text-white" v-model="msg.TeacherName" <q-input @change="getList" clearable standout="bg-primary text-white" v-model="msg.TeacherName" label="带班老师"
label="带班老师" /> @clear="getList" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @change="getList" clearable standout="bg-primary text-white" v-model="msg.CourseName" label="学习课程" /> <q-input @change="getList" clearable standout="bg-primary text-white" v-model="msg.CourseName" label="学习课程"
@clear="getList" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="getList" standout="bg-primary text-white" option-value="Id" option-label="Name" <q-select @input="getList" standout="bg-primary text-white" option-value="SId" option-label="SName"
v-model="msg.guanlianxiaoqu" :options="schoolList" emit-value map-options label="关联校区" /> v-model="msg.School_Id" :options="schoolList" emit-value map-options label="关联校区" />
</div> </div>
</div> </div>
<div class="page-option"> <div class="page-option">
...@@ -33,6 +35,10 @@ ...@@ -33,6 +35,10 @@
预招 {{props.row.ClassPersion}} 当前 {{props.row.OrderStudentCount}} 预招 {{props.row.ClassPersion}} 当前 {{props.row.OrderStudentCount}}
</q-td> </q-td>
</template> </template>
<template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="订单中心"></q-btn> <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="订单中心"></q-btn>
...@@ -51,6 +57,10 @@ ...@@ -51,6 +57,10 @@
queryClassPage, queryClassPage,
queryClassStatusList, queryClassStatusList,
} from '../../api/course/class' } from '../../api/course/class'
//获取校区列表
import {
getSchoolDropdown
} from '../../api/school/index'
import classForm from '../../components/course/class-form' import classForm from '../../components/course/class-form'
export default { export default {
meta: { meta: {
...@@ -122,38 +132,50 @@ ...@@ -122,38 +132,50 @@
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
ClassName: '', //班级名称 ClassName: '', //班级名称
classStatus: '', //班级状态 ClassStatus: 0, //班级状态
TeacherName: '', //带班老师 TeacherName: '', //带班老师
CourseName: '', //学习课程 CourseName: '', //学习课程
guanlianxiaoqu: 0, //关联校区 School_Id: 0, //关联校区
}, },
//班级状态 //班级状态
classStatusList: [{ classStatusList: [],
Id: 1, //关联校区列表
Name: '状态1' schoolList: [],
}],
//关联校区
schoolList: [{
Id: 1,
Name: '清华大学'
}],
pageCount: 0, pageCount: 0,
classObjOption: null, classObjOption: null,
} }
}, },
created() { created() {
this.getClassStatus(); this.getClassStatus();
this.getSchool();
}, },
mounted() { mounted() {
this.getList(); this.getList();
}, },
methods: { methods: {
//获取校区列表
getSchool() {
getSchoolDropdown({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
if (!tempArray) {
tempArray = [];
}
tempArray.unshift({
SId: 0,
SName: "不限"
})
this.schoolList = tempArray;
}
})
},
//获取班级状态列表
getClassStatus() { getClassStatus() {
queryClassStatusList({}).then(res => { queryClassStatusList({}).then(res => {
this.classStatusList = res.Data; if (res.Code == 1) {
}).catch(() => { this.classStatusList = res.Data;
}
}) }).catch(() => {})
}, },
//翻页 //翻页
changePage(val) { changePage(val) {
......
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