Commit 85e36ee4 authored by youjie's avatar youjie

no message

parent 959f11fb
......@@ -115,6 +115,8 @@
queryEmployee(qMsg).then((res) => {
if (res.Code == 1) {
this.TeacherList = res.Data;
this.msg.TeacherAccountId = this.TeacherList[0].Id
this.getPlanList();
}
});
},
......
......@@ -29,59 +29,65 @@
</div>
</div>
</div> -->
<table v-loading="loading" style="width:100%;border-collapse: collapse;">
<tr>
<td class="cancelClassList-left">
报名课程
</td>
<template v-for="(item,index) in dataList">
<td :key="index+400000" class=" courseName">
{{item.CourseName}}
</td>
</template>
</tr>
<tr>
<td class="cancelClassList-left">
中教
</td>
<template v-for="(item,index) in dataList">
<td :key="index+500000" class="teacherName">
{{item.TeacherName}}
<div v-if="dataList.length>0" style="width: 100%;height:700px;overflow: auto;">
<table
v-loading="loading" style="width:1900px;border-collapse: collapse;"
class="tableBox" border="1px">
<tr>
<td class="cancelClassList-left">
报名课程
</td>
</template>
</tr>
<tr>
<td class="cancelClassList-left">
姓名
</td>
<template v-for="(item,index) in dataList">
<td :key="index+600000" class="traineesName">
{{item.StuName}}
<template v-for="(item,index) in dataList">
<td :key="index+400000" class=" courseName">
{{item.CourseName}}
</td>
</template>
</tr>
<tr>
<td class="cancelClassList-left">
中教
</td>
</template>
</tr>
<template v-for="(rItem,rIndex) in MaxLength ">
<tr :key="rIndex">
<template v-for="(item,index) in dataList">
<td :key="index+500000" class="teacherName">
{{item.TeacherName}}
</td>
</template>
</tr>
<tr>
<td class="cancelClassList-left">
{{rIndex+1}}
姓名
</td>
<template v-for="(item,index) in dataList">
<template v-if="item.ChapterList&&item.ChapterList[rIndex]">
<td :key="index" :style="{background:getColor(item.ChapterList[rIndex].State)}">
{{"第"+item.ChapterList[rIndex].ChapterNo+"次课"}}
<q-tooltip content-class="bg-indigo" :offset="[10, 10]">
{{item.ChapterList[rIndex].ChapterName}}
</q-tooltip>
</td>
</template>
<template v-else>
<td :key="index">
</td>
</template>
<td :key="index+600000" class="traineesName">
{{item.StuName}}
</td>
</template>
</tr>
</template>
</table>
<template v-for="(rItem,rIndex) in MaxLength ">
<tr :key="rIndex">
<td class="cancelClassList-left">
{{rIndex+1}}
</td>
<template v-for="(item,index) in dataList">
<template v-if="item.ChapterList&&item.ChapterList[rIndex]">
<td :key="index" :style="{background:getColor(item.ChapterList[rIndex].State)}">
{{"第"+item.ChapterList[rIndex].ChapterNo+"次课"}}
<q-tooltip content-class="bg-indigo" :offset="[10, 10]">
{{item.ChapterList[rIndex].ChapterName}}
</q-tooltip>
</td>
</template>
<template v-else>
<td :key="index">
</td>
</template>
</template>
</tr>
</template>
</table>
</div>
<div v-if="dataList.length==0" style="padding: 100px;text-align: center;">暂无数据</div>
</div>
</template>
......@@ -141,11 +147,11 @@
getColor(State) {
var color = "";
if (State == 1) {
color = "green";
color = "#6FE053";
} else if (State == 2) {
color = "green";
color = "#FA716A";
} else if (State == 3) {
color = "green";
color = "#BDD7EE";
} else if (State == 4) {
}
......@@ -155,8 +161,11 @@
};
</script>
<style lang="scss" scoped>
.tableBox tr,.tableBox tr td{
height: 40px !important;
text-align: center;
}
.page-cancelClassList-body {
margin-top: 20px;
}
......
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