Commit 77f36d42 authored by Mac's avatar Mac

上课时段页面

parent 37fbe8a2
...@@ -57,3 +57,37 @@ export function delScrollShiftInfo(data) { ...@@ -57,3 +57,37 @@ export function delScrollShiftInfo(data) {
data data
}) })
} }
/**
* 获取上课时段列表
* @param {JSON参数} data
*/
export function getScrollCourseTimeList(data) {
return request({
url: '/Scroll/GetScrollCourseTimeList',
method: 'post',
data
})
}
/**
* 新增修改上课时段
* @param {JSON参数} data
*/
export function setScrollCourseTimeInfo(data) {
return request({
url: '/Scroll/SetScrollCourseTimeInfo',
method: 'post',
data
})
}
/**
* 删除上课时段
* @param {JSON参数} data
*/
export function delScrollCourseTimeInfo(data) {
return request({
url: '/Scroll/DelScrollCourseTimeInfo',
method: 'post',
data
})
}
\ No newline at end of file
This diff is collapsed.
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
.singeRowTable tr th { .singeRowTable tr th {
border: 1px solid #d2d2d2; border: 1px solid #d2d2d2;
background: #FFF; background: #FFF;
background-clip: padding-box;
} }
.workutaTeaching td:first-child{position: sticky;left:0px;background-color: #FFF;} .workutaTeaching td:first-child{position: sticky;left:0px;background-color: #FFF;}
.workutaTeaching th:first-child{position: sticky;left:0px;} .workutaTeaching th:first-child{position: sticky;left:0px;}
...@@ -22,6 +23,16 @@ ...@@ -22,6 +23,16 @@
border-radius: 50%; border-radius: 50%;
margin-right: 10px; margin-right: 10px;
} }
.onetext{
width: 100px;
white-space: nowrap;
overflow: hidden;text-overflow:ellipsis;
}
.onetext2{
width: 64px;
white-space: nowrap;
overflow: hidden;text-overflow:ellipsis;
}
</style> </style>
<template> <template>
<div class="page-body workutaTeaching"> <div class="page-body workutaTeaching">
...@@ -55,7 +66,12 @@ ...@@ -55,7 +66,12 @@
</th> </th>
</tr> </tr>
<tr v-for="(item,index) in dataList.TeacherList" :key="index" v-if="dataList.TeacherList && dataList.TeacherList.length>0"> <tr v-for="(item,index) in dataList.TeacherList" :key="index" v-if="dataList.TeacherList && dataList.TeacherList.length>0">
<td>{{item.TeacherName}}</td> <td >
<div class="onetext">
{{item.TeacherName}}
</div>
</td>
<td v-for="(x,y) in item.RDateList" :key="y" class="finger" @click="choicedate(item,x,index,y)" :style="{background:getcolor(x).background,color:getcolor(x).color}"> <td v-for="(x,y) in item.RDateList" :key="y" class="finger" @click="choicedate(item,x,index,y)" :style="{background:getcolor(x).background,color:getcolor(x).color}">
{{x.ShiftName?x.ShiftName.substring(0,1):''}} {{x.ShiftName?x.ShiftName.substring(0,1):''}}
<q-popup-proxy> <q-popup-proxy>
...@@ -97,8 +113,12 @@ ...@@ -97,8 +113,12 @@
<tr v-for="(item,index) in dataList.ShiftList" :key="index" v-if="dataList.TeacherList && dataList.TeacherList.length>0"> <tr v-for="(item,index) in dataList.ShiftList" :key="index" v-if="dataList.TeacherList && dataList.TeacherList.length>0">
<td width="100" style="min-width: 100px;"> <td width="100" style="min-width: 100px;">
<div style="display: flex;align-items: center;justify-content: center;padding: 0 5px;">
<span class="yuan" :style="{ background: getcolor(item).background }" ></span> <span class="yuan" :style="{ background: getcolor(item).background }" ></span>
{{item.ShiftName}} <div class="onetext2">{{item.ShiftName}}</div>
</div>
</td> </td>
<td width="50" style="min-width: 50px;" v-for="(x,y) in item.RDateList" :key="y" class="finger" > <td width="50" style="min-width: 50px;" v-for="(x,y) in item.RDateList" :key="y" class="finger" >
<!-- <span v-if="x.Number==0">{{x.Number}}</span> --> <!-- <span v-if="x.Number==0">{{x.Number}}</span> -->
...@@ -270,7 +290,7 @@ export default { ...@@ -270,7 +290,7 @@ export default {
index:index, index:index,
y:y, y:y,
row: JSON.parse(JSON.stringify(x)), row: JSON.parse(JSON.stringify(x)),
TeacherId:item.TeacherId AccountId:item.TeacherId
}; };
if(this.InfoMsg.row.ShiftId==-1){ if(this.InfoMsg.row.ShiftId==-1){
this.InfoMsg.row.ShiftId = ''; this.InfoMsg.row.ShiftId = '';
...@@ -296,7 +316,7 @@ export default { ...@@ -296,7 +316,7 @@ export default {
Date:this.InfoMsg.row.Date, Date:this.InfoMsg.row.Date,
ShiftId:this.InfoMsg.row.ShiftId, ShiftId:this.InfoMsg.row.ShiftId,
RoomId:this.InfoMsg.row.RoomId, RoomId:this.InfoMsg.row.RoomId,
TeacherId:this.InfoMsg.TeacherId, AccountId:this.InfoMsg.AccountId,
} }
if(addMsg.ShiftId===''){ if(addMsg.ShiftId===''){
this.$q.notify({ this.$q.notify({
......
...@@ -1150,6 +1150,12 @@ const routes = [{ ...@@ -1150,6 +1150,12 @@ const routes = [{
component: () => component: () =>
import("pages/course/workutaTeaching.vue") import("pages/course/workutaTeaching.vue")
}, },
{
path: "/course/classHours", //教学中心 上课时段列表
component: () =>
import("pages/course/classHours.vue")
},
{ {
path: "/user/backbill", //退课单据 path: "/user/backbill", //退课单据
......
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