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

页面修改

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