Commit c03acaa7 authored by zhengke's avatar zhengke

修改

parent d86276c8
...@@ -276,6 +276,7 @@ ...@@ -276,6 +276,7 @@
let val = item.ClassList.find(x => x.ClassId == item.ClassId); let val = item.ClassList.find(x => x.ClassId == item.ClassId);
if (val) { if (val) {
item.ClassName = val.ClassName; item.ClassName = val.ClassName;
item.Teacher_Id = val.Teacher_Id;
} }
} else { } else {
item.ClassName = "" item.ClassName = ""
...@@ -337,6 +338,16 @@ ...@@ -337,6 +338,16 @@
OfferType: this.obj.OfferType, OfferType: this.obj.OfferType,
OfferDetails: this.model.OfferDetails OfferDetails: this.model.OfferDetails
}; };
for(var i=0;i<sMsg.OfferDetails.length;i++){
if(sMsg.OfferDetails[i].Teacher_Id==0){
this.$q.notify({
type: 'negative',
position: "top",
message: `请联系班级管理员,关联${sMsg.OfferDetails[i].ClassName}班级老师后转单`
})
return
}
}
saveOfferToOrder(sMsg).then(res => { saveOfferToOrder(sMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
......
...@@ -44,6 +44,16 @@ ...@@ -44,6 +44,16 @@
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="添加试听" @click="editVisitor(null)" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="添加试听" @click="editVisitor(null)" />
</div> </div>
</template> </template>
<template v-slot:body-cell-TeacherName="props">
<q-td>
<template v-if="props.row.TeacherId==0">
<span style="color:red">未指定</span>
</template>
<template>
{{props.row.TeacherName}}
</template>
</q-td>
</template>
<template v-slot:body-cell-ClassContent="props"> <template v-slot:body-cell-ClassContent="props">
<q-td :props="props"> <q-td :props="props">
<div style="min-width: 150px;word-break: break-word;white-space: normal;"> <div style="min-width: 150px;word-break: break-word;white-space: normal;">
......
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