Commit 50e6dcae authored by 黄奎's avatar 黄奎
parents 8c65bdba ac9abcaf
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
<template v-slot:body-cell-TimeList="props"> <template v-slot:body-cell-TimeList="props">
<q-td auto-width :props="props"> <q-td auto-width :props="props">
<div v-for="(item, index) in props.row.TimeList" class="lessForm_Class"> <div v-for="(item, index) in props.row.TimeList" class="lessForm_Class">
{{ index + 1 }}节课 {{ item.StartTime }} - {{item.EndTime}} {{ index + 1 }}节课 {{ item.StartTime }}-{{item.EndTime}}
</div> </div>
</q-td> </q-td>
</template> </template>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
<template v-slot:body-cell-TargetTimeList="props"> <template v-slot:body-cell-TargetTimeList="props">
<q-td auto-width :props="props"> <q-td auto-width :props="props">
<div v-for="(item, index) in props.row.NewPlan.TimeList" class="lessForm_Class"> <div v-for="(item, index) in props.row.NewPlan.TimeList" class="lessForm_Class">
{{ index + 1 }}节课 {{ item.StartTime }} - {{item.EndTime}} {{ index + 1 }}节课 {{ item.StartTime }}-{{item.EndTime}}
</div> </div>
<q-popup-edit :validate="proteinRangeValidation" persistent v-model="props.row.NewPlan.TimeList" <q-popup-edit :validate="proteinRangeValidation" persistent v-model="props.row.NewPlan.TimeList"
title="变更时间" buttons label-set="确认" label-cancel="取消"> title="变更时间" buttons label-set="确认" label-cancel="取消">
......
<template> <template>
<div class="page-body MainPlan xg"> <div class="page-body MainPlan xg">
<div class="col row wrap q-col-gutter-md"> <div class="col row wrap q-col-gutter-md">
<div class="col-2 flex"> <div class="col-2">
<el-select <el-select
v-model="msg.TeacherId" v-model="msg.TeacherId"
style="width: 100%" style="width: 100%"
...@@ -188,17 +188,18 @@ export default { ...@@ -188,17 +188,18 @@ export default {
PageCount: 0, PageCount: 0,
picker: { picker: {
disabledDate: (time) => { disabledDate: (time) => {
let endTime = this.msg.EndTime; if (this.msg.EndTime == null) {
if (endTime) { return false;
return time.getTime() >= new Date(endTime).getTime() - 8.64e6;
} else { } else {
return time.getTime() >= Date.now() - 8.64e6; let endTime = new Date(this.msg.EndTime);
return endTime.getTime() < time.getTime();
} }
}, },
}, },
pickerEnd: { pickerEnd: {
disabledDate: (time) => { disabledDate: (time) => {
return time.getTime() >= Date.now() - 8.64e6; let startTime = new Date(this.msg.StartTime);
return startTime.getTime() >= time.getTime();
}, },
}, },
today: "", today: "",
...@@ -216,7 +217,7 @@ export default { ...@@ -216,7 +217,7 @@ export default {
? "0" + (date.getMonth() + 1) ? "0" + (date.getMonth() + 1)
: date.getMonth() + 1) + : date.getMonth() + 1) +
"-" + "-" +
(date.getDate() < 10 ? "0" + date.getDate() < 10 : date.getDate()); (date.getDate() < 10 ? "0" + date.getDate() : date.getDate());
this.today = today; this.today = today;
this.msg.StartTime = today; this.msg.StartTime = today;
this.tabMsg.StartTime = today; this.tabMsg.StartTime = today;
......
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