Commit bc2a690e authored by 黄奎's avatar 黄奎

111

parent bf781a39
......@@ -31,8 +31,29 @@
</div>
</el-select>
</div>
<div class="col-2 flex">
<el-select v-model="msg.GuestState" style="width: 100%" placeholder="学员状态" size="small" @change="refreshPage()"
clearable>
<el-option v-for="item in GuestStateList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
<div slot="prefix" class="full-height flex items-center" style="color: #000; padding-right: 10px">
状态:
</div>
</el-select>
</div>
<div class="col-2 flex">
<el-select v-model="msg.Student_Id" style="width: 100%" placeholder="学员" size="small" @change="refreshPage()"
clearable filterable>
<el-option v-for="item in StuList" :key="item.StuId" :label="item.StuName" :value="item.StuId">
</el-option>
<div slot="prefix" class="full-height flex items-center" style="color: #000; padding-right: 10px">
学员:
</div>
</el-select>
</div>
</div>
<consumptionCourseList v-loading="loading" :dataList="tableData" :MaxLength="MaxLength" :loading="loading"></consumptionCourseList>
<consumptionCourseList v-loading="loading" :dataList="tableData" :MaxLength="MaxLength" :loading="loading">
</consumptionCourseList>
</div>
</template>
......@@ -44,11 +65,20 @@
queryEmployee
} from "../../api/users/user";
import {
queryGuestStateList
} from "../../api/sale/sale";
import {
queryCourseDropdownList,
getCourseRate
getCourseRate,
} from "../../api/course/index";
import {
getStudentDorpDownList
} from "../../api/school/index";
import consumptionCourseList from "./components/consumptionCourseList";
export default {
meta: {
......@@ -64,6 +94,8 @@
TeacherAccountId: "", //老师编号
CourseRate: "", //课程等级
CourseId: "", //课程编号
Student_Id: "", //学员编号
GuestState: "", //学员状态
},
tableData: [], //表格数据
loading: false,
......@@ -71,6 +103,8 @@
CourseList: [], //课程列表
CourseRateList: [], //课程等级
MaxLength: 0,
GuestStateList: [], //学员状态
StuList: [], //学员列表
};
},
created() {
......@@ -87,19 +121,36 @@
this.GetTeacherList();
this.getCourseList();
this.queryCourseRate();
this.getStateList();
this.queryStuList();
},
mounted() {
// this.getPlanList();
},
methods: {
queryStuList() {
getStudentDorpDownList({}).then(res => {
if (res.Code == 1) {
this.StuList = res.Data;
}
});
},
//获取学员状态
getStateList() {
queryGuestStateList({}).then(res => {
if (res.Code == 1) {
this.GuestStateList = res.Data;
}
});
},
refreshPage() {
this.getPlanList();
},
// 获取校区教室导航列表
getPlanList() {
this.loading=true;
this.loading = true;
queryStuLearnChapterStatic(this.msg).then((res) => {
this.loading=false;
this.loading = false;
if (res.Code == 1) {
this.tableData = res.Data.list;
this.MaxLength = res.Data.MaxLength;
......
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