Commit 617b42f2 authored by zhengke's avatar zhengke

修改

parent 22010092
......@@ -310,7 +310,7 @@
<div class="text-caption q-mb-lg q-px-md text-grey-6 col">目标教室</div>
<div class="row">
<q-select filled option-value="RoomId" option-label="RoomName" v-model="msg.ClassRoomId"
:options="roomList" emit-value map-options label="教室" class="col-6">
:options="roomList" emit-value map-options label="教室" class="col-6 q-pr-lg">
<template v-slot:option="{ itemProps, itemEvents, opt, selected, toggleOption }">
<q-item v-bind="itemProps" v-on="itemEvents">
<q-item-section>
......@@ -322,18 +322,47 @@
</q-item>
</template>
</q-select>
<q-input v-if="msg.MoveType=='2'" filled v-model="msg.TakeEffectTime" class="col-6" mask="date" label="生效时间">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale">
<q-date v-model="msg.TakeEffectTime" :options="optionsFn" @input="() => $refs.qDateProxy1.hide()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</div>
</div>
<div v-if="msg.ChangeType==2">
<div class="text-caption q-mb-lg q-px-md text-grey-6 col">目标老师</div>
<div class="row">
<q-select filled option-value="TId" option-label="TeacherName" v-model="msg.TeacherId"
:options="TeacherList" emit-value map-options label="老师" class="col-6">
:options="TeacherList" emit-value map-options label="老师" class="col-6 q-pr-lg">
</q-select>
<q-input filled v-if="msg.MoveType=='2'" v-model="msg.TakeEffectTime" class="col-6" mask="date" label="生效时间">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale">
<q-date v-model="msg.TakeEffectTime" :options="optionsFn" @input="() => $refs.qDateProxy1.hide()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</div>
</div>
<div v-if="msg.ChangeType==4&&msg.MoveType=='2'" class="row">
<q-input filled v-model="msg.TakeEffectTime" class="col-6" mask="date" label="生效时间">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale">
<q-date v-model="msg.TakeEffectTime" :options="optionsFn" @input="() => $refs.qDateProxy1.hide()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</div>
<q-input filled type="textarea" :rows="3" style="margin-top:20px;" stack-label maxlength="2000" v-model="msg.Remarks" :dense="false"
class="col-12 q-pr-lg q-pb-lg" label="备注" />
class="col-12 q-pb-lg" label="备注" />
</q-scroll-area>
</q-card-section>
......@@ -409,6 +438,7 @@
ClassRoomId: 0,
DefaultTimeList: []
},
TakeEffectTime:'', //生效日期
Remarks:'' //备注
},
selected: [],
......@@ -614,6 +644,15 @@
this.$emit('close')
this.persistent = false
},
optionsFn (date) {
 var myDate = new Date();
let month = myDate.getMonth() + 1;
if(month<10){
month = '0'+month
}
var toDay = myDate.getFullYear()+'/'+ month +'/' + myDate.getDate()
return date >= toDay
},
//保存修改
save() {
//变更类型课程时间 变更范围单个或多个
......
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