Commit 85e36ee4 authored by youjie's avatar youjie

no message

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