Commit 1cd6f870 authored by 黄奎's avatar 黄奎

页面修改

parent 6bcf399d
...@@ -94,6 +94,12 @@ ...@@ -94,6 +94,12 @@
</div> </div>
</template> </template>
<template v-slot:body-cell-TeacherName="props">
<q-td>
{{getTeacherName(props.row.TeacherId)}}
</q-td>
</template>
<template v-slot:body-cell-PlanTimeList="props"> <template v-slot:body-cell-PlanTimeList="props">
<q-td> <q-td>
<div v-for="(item,index) in props.row.PlanTimeList" :key="index"> <div v-for="(item,index) in props.row.PlanTimeList" :key="index">
...@@ -148,8 +154,8 @@ ...@@ -148,8 +154,8 @@
<div class="classConDialog"> <div class="classConDialog">
<div style="margin:10px 0 15px 0;">{{props.row.ClassDate}}课程安排</div> <div style="margin:10px 0 15px 0;">{{props.row.ClassDate}}课程安排</div>
<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="关联教师" :dense="false" v-model="props.row.TeacherId" ref="Teacher_Id" :options="TeacherList" label="关联教师"
class="col-6 q-pb-lg" emit-value map-options /> :dense="false" class="col-6 q-pb-lg" emit-value map-options />
<q-input filled v-model="props.row.ClassDate" class="col-6 q-pb-lg" mask="date" label="上课时间"> <q-input filled v-model="props.row.ClassDate" class="col-6 q-pb-lg" mask="date" label="上课时间">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
...@@ -165,8 +171,8 @@ ...@@ -165,8 +171,8 @@
<div style="display:flex;justify-content:flex-end;margin-bottom:20px;"> <div style="display:flex;justify-content:flex-end;margin-bottom:20px;">
<q-btn @click="addStep()" size="10px" round color="primary" icon="iconfont icon-img_haha" /> <q-btn @click="addStep()" size="10px" round color="primary" icon="iconfont icon-img_haha" />
</div> </div>
<div class="row wrap" style="position:relative;" v-for="(subItem,subIndex) in props.row.PlanTimeList" <div class="row wrap" style="position:relative;"
:key="subIndex"> v-for="(subItem,subIndex) in props.row.PlanTimeList" :key="subIndex">
<div class="col-4"> <div class="col-4">
<q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" mask="time"> <q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" mask="time">
<template v-slot:append> <template v-slot:append>
...@@ -207,10 +213,9 @@ ...@@ -207,10 +213,9 @@
</div> </div>
</div> </div>
<q-card-actions align="right" class="bg-white"> <q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" @click="isShowEdit=false"
style="font-weight:400 !important" /> <q-btn label="确认调整" color="accent q-px-md" style="font-weight:400 !important"
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="isShowEdit=false" />
:loading="saveLoading" @click="saveSteps" />
</q-card-actions> </q-card-actions>
</div> </div>
</q-banner> </q-banner>
...@@ -310,7 +315,7 @@ ...@@ -310,7 +315,7 @@
ClassId: 53, ClassId: 53,
ClassName: "", ClassName: "",
ClassNo: "", ClassNo: "",
ChangeType:1, ChangeType: 1,
}, },
isShowEdit: false, isShowEdit: false,
//单行修改参数 //单行修改参数
...@@ -347,6 +352,10 @@ ...@@ -347,6 +352,10 @@
} }
}, },
created() { created() {
this.GetTeacherList();
this.getClassRoomList();
},
computed: {
}, },
mounted() { mounted() {
...@@ -354,12 +363,20 @@ ...@@ -354,12 +363,20 @@
this.msg.ClassId = this.ClassId; this.msg.ClassId = this.ClassId;
this.selectObj.ClassId = this.ClassId; this.selectObj.ClassId = this.ClassId;
} }
this.GetTeacherList();
this.getClassRoomList();
this.getList(); this.getList();
}, },
methods: { methods: {
getTeacherName(teacherId) {
let obj = {};
obj = this.TeacherList.find(item => {
return item.TId === teacherId; //筛选出匹配数据
});
var tName = "";
if (obj) {
tName = obj.TeacherName;
}
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