Commit 4f07580f authored by zhengke's avatar zhengke

修改

parent 5691005b
......@@ -187,7 +187,7 @@
<q-item-label>月度课耗</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popip>
<q-item clickable v-close-popup>
<q-item-section>
<q-item-label>
<span>{{props.row.ClassStatusStr}}</span>&nbsp;
......@@ -198,16 +198,16 @@
<div style="margin:10px 0 15px 0;">设置班级状态</div>
<q-select filled option-value="Id" option-label="Name"
v-model="statusMsg.ClassStatus" :options="classStatusList" emit-value map-options label="班级状态" />
<q-select v-if="props.row.Teacher_Id==0" filled option-value="TId" option-label="TeacherName" style="margin-top:20px;"
<q-select v-if="props.row.Teacher_Id==0&&statusMsg.ClassStatus==2" filled option-value="TId" option-label="TeacherName" style="margin-top:20px;"
v-model="statusMsg.Teacher_Id" :options="TeacherList" emit-value map-options label="带班老师" />
<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"
@click="setClassStatus()" />
@click="setClassStatus(props.row.Teacher_Id,statusMsg.ClassStatus)" />
</q-card-actions>
</div>
</q-banner>
</q-banner>
</q-popup-proxy>
</i>
</q-item-label>
......@@ -411,11 +411,22 @@
getClassItem(item) {
this.isShowEdit = true;
var Obj = JSON.parse(JSON.stringify(item));
this.statusMsg.Teacher_Id = 0;
this.statusMsg.ClassStatus = Obj.ClassStatus;
this.statusMsg.ClassId = Obj.ClassId;
},
//更新班级状态
setClassStatus() {
setClassStatus(Teacher_Id,ClassStatus) {
if(Teacher_Id==0&&ClassStatus==2){
if(this.statusMsg.Teacher_Id==0){
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择老师`
})
return
}
}
saveClassStatus(this.statusMsg).then(res => {
this.isShowEdit = false;
if (res.Code == 1) {
......@@ -477,6 +488,7 @@
queryClassStatusList({}).then(res => {
if (res.Code == 1) {
this.classStatusList = res.Data;
console.log(res,'数据');
}
}).catch(() => {})
},
......
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