Commit e164d7d1 authored by 黄奎's avatar 黄奎

11111

parent 8dfd46c6
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<div class="col row wrap q-col-gutter-md"> <div class="col row wrap q-col-gutter-md">
<div class="col-2 flex"> <div class="col-2 flex">
<el-select v-model="msg.TeacherAccountId" style="width: 100%" placeholder="教师" size="small" <el-select v-model="msg.TeacherAccountId" style="width: 100%" placeholder="教师" size="small"
@change="refreshPage()"> @change="refreshPage()" clearable filterable >
<el-option v-for="item in TeacherList" :key="item.Id" :label="item.EmployeeName" :value="item.Id" clearable> <el-option v-for="item in TeacherList" :key="item.Id" :label="item.EmployeeName" :value="item.Id">
</el-option> </el-option>
<div slot="prefix" class="full-height flex items-center" style="color: #000; padding-right: 10px"> <div slot="prefix" class="full-height flex items-center" style="color: #000; padding-right: 10px">
教师: 教师:
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
<div class="col-2 flex"> <div class="col-2 flex">
<el-select v-model="msg.CourseId" style="width: 100%" placeholder="课程" size="small" @change="refreshPage()" <el-select v-model="msg.CourseId" style="width: 100%" placeholder="课程" size="small" @change="refreshPage()"
clearable> clearable filterable >
<el-option v-for="item in CourseList" :key="item.CourseId" :label="item.CourseName" :value="item.CourseId"> <el-option v-for="item in CourseList" :key="item.CourseId" :label="item.CourseName" :value="item.CourseId">
</el-option> </el-option>
<div slot="prefix" class="full-height flex items-center" style="color: #000; padding-right: 10px"> <div slot="prefix" class="full-height flex items-center" style="color: #000; padding-right: 10px">
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
this.queryCourseRate(); this.queryCourseRate();
}, },
mounted() { mounted() {
this.getPlanList(); // this.getPlanList();
}, },
methods: { methods: {
refreshPage() { refreshPage() {
......
...@@ -29,52 +29,57 @@ ...@@ -29,52 +29,57 @@
</div> </div>
</div> </div>
</div> --> </div> -->
<table> <table v-loading="loading">
<tr> <tr>
<td> <td class="cancelClassList-left">
报名课程 报名课程
</td> </td>
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<td :key="index+400000"> <td :key="index+400000" class=" courseName">
{{item.CourseName}} {{item.CourseName}}
</td> </td>
</template> </template>
</tr> </tr>
<tr> <tr>
<td> <td class="cancelClassList-left">
中教 中教
</td> </td>
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<td :key="index+500000"> <td :key="index+500000" class="teacherName">
{{item.TeacherName}} {{item.TeacherName}}
</td> </td>
</template> </template>
</tr> </tr>
<tr> <tr>
<td> <td class="cancelClassList-left">
学员姓名 姓名
</td> </td>
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<td :key="index+600000"> <td :key="index+600000" class="traineesName">
{{item.StuName}} {{item.StuName}}
</td> </td>
</template> </template>
</tr> </tr>
<template v-for="(rItem,rIndex) in MaxLength "> <template v-for="(rItem,rIndex) in MaxLength ">
<tr :key="rIndex"> <tr :key="rIndex">
<td> <td class="cancelClassList-left">
{{rIndex+1}} {{rIndex+1}}
</td> </td>
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<td :key="index"> <template v-if="item.ChapterList&&item.ChapterList[rIndex]">
<template v-if="item.ChapterList&&item.ChapterList[rIndex]"> <td :key="index" :style="{background:getColor(item.ChapterList[rIndex].State)}">
{{item.ChapterList[rIndex].ChapterName}} {{"第"+item.ChapterList[rIndex].ChapterNo+"次课"}}
</template> <q-tooltip content-class="bg-indigo" :offset="[10, 10]">
</td> {{item.ChapterList[rIndex].ChapterName}}
</q-tooltip>
</td>
</template>
<template v-else>
<td :key="index">
</td>
</template>
</template> </template>
</tr> </tr>
</template> </template>
<!-- <tbody v-for="(item,index) in dataList" :key="index"> <!-- <tbody v-for="(item,index) in dataList" :key="index">
<tr> <tr>
...@@ -152,7 +157,21 @@ ...@@ -152,7 +157,21 @@
}, },
methods: { methods: {
getColor(State) {
var color = "";
if (State == 1) {
color = "green";
} else if (State == 2) {
color = "green";
}
else if (State == 3) {
color = "green";
}
else if (State == 4) {
}
return color;
}
}, },
}; };
</script> </script>
......
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