Commit bc2a690e authored by 黄奎's avatar 黄奎

111

parent bf781a39
...@@ -31,8 +31,29 @@ ...@@ -31,8 +31,29 @@
</div> </div>
</el-select> </el-select>
</div> </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> </div>
<consumptionCourseList v-loading="loading" :dataList="tableData" :MaxLength="MaxLength" :loading="loading"></consumptionCourseList> <consumptionCourseList v-loading="loading" :dataList="tableData" :MaxLength="MaxLength" :loading="loading">
</consumptionCourseList>
</div> </div>
</template> </template>
...@@ -44,11 +65,20 @@ ...@@ -44,11 +65,20 @@
queryEmployee queryEmployee
} from "../../api/users/user"; } from "../../api/users/user";
import {
queryGuestStateList
} from "../../api/sale/sale";
import { import {
queryCourseDropdownList, queryCourseDropdownList,
getCourseRate getCourseRate,
} from "../../api/course/index"; } from "../../api/course/index";
import {
getStudentDorpDownList
} from "../../api/school/index";
import consumptionCourseList from "./components/consumptionCourseList"; import consumptionCourseList from "./components/consumptionCourseList";
export default { export default {
meta: { meta: {
...@@ -64,6 +94,8 @@ ...@@ -64,6 +94,8 @@
TeacherAccountId: "", //老师编号 TeacherAccountId: "", //老师编号
CourseRate: "", //课程等级 CourseRate: "", //课程等级
CourseId: "", //课程编号 CourseId: "", //课程编号
Student_Id: "", //学员编号
GuestState: "", //学员状态
}, },
tableData: [], //表格数据 tableData: [], //表格数据
loading: false, loading: false,
...@@ -71,6 +103,8 @@ ...@@ -71,6 +103,8 @@
CourseList: [], //课程列表 CourseList: [], //课程列表
CourseRateList: [], //课程等级 CourseRateList: [], //课程等级
MaxLength: 0, MaxLength: 0,
GuestStateList: [], //学员状态
StuList: [], //学员列表
}; };
}, },
created() { created() {
...@@ -87,19 +121,36 @@ ...@@ -87,19 +121,36 @@
this.GetTeacherList(); this.GetTeacherList();
this.getCourseList(); this.getCourseList();
this.queryCourseRate(); this.queryCourseRate();
this.getStateList();
this.queryStuList();
}, },
mounted() { mounted() {
// this.getPlanList(); // this.getPlanList();
}, },
methods: { 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() { refreshPage() {
this.getPlanList(); this.getPlanList();
}, },
// 获取校区教室导航列表 // 获取校区教室导航列表
getPlanList() { getPlanList() {
this.loading=true; this.loading = true;
queryStuLearnChapterStatic(this.msg).then((res) => { queryStuLearnChapterStatic(this.msg).then((res) => {
this.loading=false; this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
this.tableData = res.Data.list; this.tableData = res.Data.list;
this.MaxLength = res.Data.MaxLength; 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