Commit f0207acc authored by zhengke's avatar zhengke

1

parent 4f990b4e
...@@ -3,17 +3,21 @@ ...@@ -3,17 +3,21 @@
width: 500px; width: 500px;
text-align: center; text-align: center;
} }
.classFlictTable tr td { .classFlictTable tr td {
height: 40px; height: 40px;
color:#000; color: #000;
} }
.classFlictTable tr th { .classFlictTable tr th {
height: 40px; height: 40px;
background-color: rgb(238, 238, 239); background-color: rgb(238, 238, 239);
} }
.classConflitDialog{
width:400px; .classConflitDialog {
width: 370px;
} }
</style> </style>
<template> <template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale"> <q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale">
...@@ -24,7 +28,7 @@ ...@@ -24,7 +28,7 @@
<q-card-section class="q-pt-none scroll" style="max-height: 70vh"> <q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<q-table :pagination="pMsg" :loading="loading" no-data-label="暂无相关数据" selection="multiple" flat <q-table :pagination="pMsg" :loading="loading" no-data-label="暂无相关数据" selection="multiple" flat
:selected.sync="selected" class="sticky-column-table sticky-header-column-table" separator="none" :selected.sync="selected" class="sticky-column-table sticky-header-column-table" separator="none"
style="max-height: 500px" :data="dataList" :columns="columns" row-key="ClassPlanId" hide-bottom> style="max-height: 450px" :data="dataList" :columns="columns" row-key="ClassPlanId" hide-bottom>
<template v-slot:top="props"> <template v-slot:top="props">
<div class="text-caption q-my-lg q-px-md text-grey-6 col"> <div class="text-caption q-my-lg q-px-md text-grey-6 col">
变更内容 注意:需要对变更的内容进行打钩 变更内容 注意:需要对变更的内容进行打钩
...@@ -42,6 +46,11 @@ ...@@ -42,6 +46,11 @@
{{getTeacherName(props.row.TeacherId)}} {{getTeacherName(props.row.TeacherId)}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-RoomName="props">
<q-td>
{{getClassRoomName(props.row.ClassRoomId)}}
</q-td>
</template>
<template v-slot:body-cell-PlanTimeList="props"> <template v-slot:body-cell-PlanTimeList="props">
<q-td> <q-td>
...@@ -98,12 +107,12 @@ ...@@ -98,12 +107,12 @@
<div style="margin:10px 0 15px 0;">{{props.row.ClassDate}}课程安排</div> <div style="margin:10px 0 15px 0;">{{props.row.ClassDate}}课程安排</div>
<div class="row wrap"> <div class="row wrap">
<div class="col-6"> <div class="col-6">
<q-select filled stack-label option-value="TId" option-label="TeacherName" <q-select filled stack-label option-value="TId" option-label="TeacherName"
v-model="props.row.TeacherId" ref="Teacher_Id" :options="TeacherList" label="关联教师" v-model="props.row.TeacherId" ref="Teacher_Id" :options="TeacherList" label="关联教师"
:dense="false" class="col-6 q-pb-lg q-pr-lg" emit-value map-options /> :dense="false" class="col-6 q-pb-lg q-pr-lg" emit-value map-options />
</div> </div>
<div class="col-6"> <div class="col-6">
<q-select filled stack-label option-value="RoomId" option-label="RoomName" <q-select filled stack-label option-value="RoomId" option-label="RoomName"
v-model="props.row.ClassRoomId" ref="ClassRoomId" :options="ClassRoomList" label="关联教室" v-model="props.row.ClassRoomId" ref="ClassRoomId" :options="ClassRoomList" label="关联教室"
:dense="false" class="col-6 q-pb-lg" emit-value map-options /> :dense="false" class="col-6 q-pb-lg" emit-value map-options />
</div> </div>
...@@ -388,7 +397,6 @@ ...@@ -388,7 +397,6 @@
methods: { methods: {
//点击新增 //点击新增
addStepOne(item) { addStepOne(item) {
console.log(item,'item');
var obj = { var obj = {
StartTime: "", //开始时间 StartTime: "", //开始时间
EndTime: "", //结束时间 EndTime: "", //结束时间
...@@ -424,6 +432,17 @@ ...@@ -424,6 +432,17 @@
} }
return tName; return tName;
}, },
getClassRoomName(ClassRoomId) {
let obj = {};
obj = this.ClassRoomList.find(item => {
return item.RoomId === ClassRoomId; //筛选出匹配数据
});
var tName = "";
if (obj) {
tName = obj.RoomName;
}
return tName;
},
//关闭弹窗 //关闭弹窗
closeCourseForm() { closeCourseForm() {
this.$emit('close'); this.$emit('close');
......
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