Commit c6dc5772 authored by 黄奎's avatar 黄奎

页面修改

parent 8e8046ff
...@@ -269,6 +269,9 @@ ...@@ -269,6 +269,9 @@
<th colspan="2"> <th colspan="2">
时间 时间
</th> </th>
<th>
消耗课时
</th>
<th> <th>
操作 操作
</th> </th>
...@@ -291,6 +294,10 @@ ...@@ -291,6 +294,10 @@
<q-input filled stack-label maxlength="20" v-model="sItem.EndTime" placeholder="09:30" :dense="false" <q-input filled stack-label maxlength="20" v-model="sItem.EndTime" placeholder="09:30" :dense="false"
class="col-6 q-pr-lg" label="结束时间" /> class="col-6 q-pr-lg" label="结束时间" />
</td> </td>
<td>
<q-input filled stack-label maxlength="20" v-model="sItem.TimeHour"
@keyup.native="checkPrice(sItem,'TimeHour')" :dense="false" class="col-6 q-pr-lg" label="消耗课时" />
</td>
<td> <td>
<q-btn size="10px" v-if="sIndex==0" @click="addPlanTime(nItem)" round color="primary" <q-btn size="10px" v-if="sIndex==0" @click="addPlanTime(nItem)" round color="primary"
icon="iconfont icon-img_haha" /> icon="iconfont icon-img_haha" />
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
margin-left: -7px; margin-left: -7px;
align-items: center; align-items: center;
transform: scale(0.9); transform: scale(0.9);
height:24px; height: 24px;
} }
.lesson_Form .calendarInner { .lesson_Form .calendarInner {
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
} }
.calenderDialog { .calenderDialog {
width: 300px; width: 450px;
height: auto; height: auto;
} }
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
<q-btn @click="addStep()" size="10px" round color="primary" icon="iconfont icon-img_haha" /> <q-btn @click="addStep()" size="10px" round color="primary" icon="iconfont icon-img_haha" />
</div> </div>
<div class="row wrap" style="position:relative;" v-for="(subItem,subIndex) in addMsg.PlanTimeList"> <div class="row wrap" style="position:relative;" v-for="(subItem,subIndex) in addMsg.PlanTimeList">
<div class="col-6"> <div class="col-4">
<q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" mask="time"> <q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" mask="time">
<template v-slot:append> <template v-slot:append>
<q-icon name="access_time" class="cursor-pointer"> <q-icon name="access_time" class="cursor-pointer">
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-6"> <div class="col-4">
<q-input filled v-model="subItem.EndTime" class="col-6 q-pr-lg q-pb-lg" mask="time"> <q-input filled v-model="subItem.EndTime" class="col-6 q-pr-lg q-pb-lg" mask="time">
<template v-slot:append> <template v-slot:append>
<q-icon name="access_time" class="cursor-pointer"> <q-icon name="access_time" class="cursor-pointer">
...@@ -256,6 +256,11 @@ ...@@ -256,6 +256,11 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-4">
<q-input filled stack-label maxlength="10" :dense="false" v-model="subItem.TimeHour"
ref="TimeHour" class="col-4 q-pr-lg q-pb-lg" label="消耗课时"
:rules="[val => !!val || '请填写消耗课时']" @keyup.native="checkPrice(subItem,'TimeHour')" />
</div>
<div class="delBtnStyle"> <div class="delBtnStyle">
<i @click="delStep(subIndex)" class="iconfont icon-guanbi"></i> <i @click="delStep(subIndex)" class="iconfont icon-guanbi"></i>
</div> </div>
...@@ -334,7 +339,7 @@ ...@@ -334,7 +339,7 @@
</div> </div>
<div class="row wrap" style="position:relative;" <div class="row wrap" style="position:relative;"
v-for="(subItem,subIndex) in addMsg.PlanTimeList"> v-for="(subItem,subIndex) in addMsg.PlanTimeList">
<div class="col-6"> <div class="col-4">
<q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" mask="time"> <q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" mask="time">
<template v-slot:append> <template v-slot:append>
<q-icon name="access_time" class="cursor-pointer"> <q-icon name="access_time" class="cursor-pointer">
...@@ -349,7 +354,7 @@ ...@@ -349,7 +354,7 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-6"> <div class="col-4">
<q-input filled v-model="subItem.EndTime" class="col-6 q-pr-lg q-pb-lg" mask="time"> <q-input filled v-model="subItem.EndTime" class="col-6 q-pr-lg q-pb-lg" mask="time">
<template v-slot:append> <template v-slot:append>
<q-icon name="access_time" class="cursor-pointer"> <q-icon name="access_time" class="cursor-pointer">
...@@ -364,6 +369,11 @@ ...@@ -364,6 +369,11 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-4">
<q-input filled stack-label maxlength="10" :dense="false" v-model="subItem.TimeHour"
ref="TimeHour" class="col-4 q-pr-lg q-pb-lg" label="消耗课时"
:rules="[val => !!val || '请填写消耗课时']" @keyup.native="checkPrice(subItem,'TimeHour')" />
</div>
<div class="delBtnStyle"> <div class="delBtnStyle">
<i @click="delStep(subIndex)" class="iconfont icon-guanbi"></i> <i @click="delStep(subIndex)" class="iconfont icon-guanbi"></i>
</div> </div>
...@@ -429,7 +439,7 @@ ...@@ -429,7 +439,7 @@
</div> </div>
<div class="row wrap" style="position:relative;" <div class="row wrap" style="position:relative;"
v-for="(subItem,subIndex) in addMsg.PlanTimeList"> v-for="(subItem,subIndex) in addMsg.PlanTimeList">
<div class="col-6"> <div class="col-4">
<q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" mask="time"> <q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" mask="time">
<template v-slot:append> <template v-slot:append>
<q-icon name="access_time" class="cursor-pointer"> <q-icon name="access_time" class="cursor-pointer">
...@@ -444,7 +454,7 @@ ...@@ -444,7 +454,7 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-6"> <div class="col-4">
<q-input filled v-model="subItem.EndTime" class="col-6 q-pr-lg q-pb-lg" mask="time"> <q-input filled v-model="subItem.EndTime" class="col-6 q-pr-lg q-pb-lg" mask="time">
<template v-slot:append> <template v-slot:append>
<q-icon name="access_time" class="cursor-pointer"> <q-icon name="access_time" class="cursor-pointer">
...@@ -459,6 +469,11 @@ ...@@ -459,6 +469,11 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-4">
<q-input filled stack-label maxlength="10" :dense="false" v-model="subItem.TimeHour"
ref="TimeHour" class="col-4 q-pr-lg q-pb-lg" label="消耗课时"
:rules="[val => !!val || '请填写消耗课时']" @keyup.native="checkPrice(subItem,'TimeHour')" />
</div>
<div class="delBtnStyle"> <div class="delBtnStyle">
<i @click="delStep(subIndex)" class="iconfont icon-guanbi"></i> <i @click="delStep(subIndex)" class="iconfont icon-guanbi"></i>
</div> </div>
...@@ -474,7 +489,8 @@ ...@@ -474,7 +489,8 @@
</q-banner> </q-banner>
</q-popup-proxy> </q-popup-proxy>
</i> </i>
<i v-if="!item.IsEndDate" class="iconfont icon-guanbi Less_Close" style="margin-left:5px;" @click.stop="delInfo(item)"></i> <i v-if="!item.IsEndDate" class="iconfont icon-guanbi Less_Close" style="margin-left:5px;"
@click.stop="delInfo(item)"></i>
</div> </div>
</div> </div>
<div class="calendarInner"> <div class="calendarInner">
...@@ -640,6 +656,7 @@ ...@@ -640,6 +656,7 @@
ClassTimeId: 0, ClassTimeId: 0,
StartTime: "", StartTime: "",
EndTime: "", EndTime: "",
TimeHour: 0,
}] }]
}, },
isSetMore: 1, //是否显示更多设置 isSetMore: 1, //是否显示更多设置
...@@ -849,6 +866,7 @@ ...@@ -849,6 +866,7 @@
ClassTimeId: 0, ClassTimeId: 0,
StartTime: "", StartTime: "",
EndTime: "", EndTime: "",
TimeHour: 0,
}] }]
}, },
//删除 //删除
...@@ -866,8 +884,8 @@ ...@@ -866,8 +884,8 @@
}, },
//保存新增修改 //保存新增修改
saveSteps() { saveSteps() {
for(let i=0;i<this.addMsg.PlanTimeList.length;i++){ for (let i = 0; i < this.addMsg.PlanTimeList.length; i++) {
if(this.addMsg.PlanTimeList[i].StartTime==''){ if (this.addMsg.PlanTimeList[i].StartTime == '') {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
...@@ -875,7 +893,7 @@ ...@@ -875,7 +893,7 @@
}) })
return return
} }
if(this.addMsg.PlanTimeList[i].EndTime==''){ if (this.addMsg.PlanTimeList[i].EndTime == '') {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
......
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