addClassForm.wxml 9.3 KB

1
  1. <view class="content data-v-3b65c50c"><u-form vue-id="0f43ed4e-1" model="{{form}}" label-width="140" data-ref="form" class="data-v-3b65c50c vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><u-form-item vue-id="{{('0f43ed4e-2')+','+('0f43ed4e-1')}}" label="班级名称" prop="name" required="{{true}}" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('0f43ed4e-3')+','+('0f43ed4e-2')}}" placeholder="请输入班级名称" value="{{form.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],['form']]]]]}}" class="data-v-3b65c50c" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('0f43ed4e-4')+','+('0f43ed4e-1')}}" label="课程周期开始时间" prop="startDate" right-icon="arrow-right" required="{{true}}" data-event-opts="{{[['tap',[['e0']]]]}}" bindtap="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('0f43ed4e-5')+','+('0f43ed4e-4')}}" placeholder="请选择课程周期开始时间" disabled="{{true}}" value="{{form.startDate}}" data-event-opts="{{[['^click',[['e1']]],['^input',[['__set_model',['$0','startDate','$event',[]],['form']]]]]}}" bind:click="__e" bind:input="__e" class="data-v-3b65c50c" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('0f43ed4e-6')+','+('0f43ed4e-1')}}" label="课程周期结束时间" prop="endDate" right-icon="arrow-right" required="{{true}}" data-event-opts="{{[['tap',[['e2']]]]}}" bindtap="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('0f43ed4e-7')+','+('0f43ed4e-6')}}" placeholder="请选择课程周期结束时间" disabled="{{true}}" value="{{form.endDate}}" data-event-opts="{{[['^click',[['e3']]],['^input',[['__set_model',['$0','endDate','$event',[]],['form']]]]]}}" bind:click="__e" bind:input="__e" class="data-v-3b65c50c" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('0f43ed4e-8')+','+('0f43ed4e-1')}}" label="上课时间" prop="timeReqList" required="{{true}}" label-position="top" class="data-v-3b65c50c" bind:__l="__l"></u-form-item><block wx:for="{{form.timeReqList}}" wx:for-item="item" wx:for-index="index" wx:key="id"><u-swipe-action vue-id="{{('0f43ed4e-9-'+index)+','+('0f43ed4e-1')}}" index="{{index}}" options="{{options}}" data-event-opts="{{[['^click',[['deleteDate']]]]}}" bind:click="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-form-item vue-id="{{('0f43ed4e-10-'+index)+','+('0f43ed4e-9-'+index)}}" label=" " right-icon="arrow-right" label-width="0px" data-event-opts="{{[['tap',[['toSetDate',[index]]]]]}}" bindtap="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><text style="{{'color:'+(item.week?'':'#999999')+';'}}" class="data-v-3b65c50c">{{item.week?item.week+'  '+item.startTime+'  '+item.endTime:'请选择上课时间'}}</text></u-form-item></u-swipe-action></block><u-form-item vue-id="{{('0f43ed4e-11')+','+('0f43ed4e-1')}}" label=" " label-width="0px" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><view style="display:flex;justify-content:space-around;" class="data-v-3b65c50c"><u-button vue-id="{{('0f43ed4e-12')+','+('0f43ed4e-11')}}" type="success" ripple="{{true}}" size="medium" custom-style="{{({backgroundColor:'#ff6e3e'})}}" data-event-opts="{{[['^click',[['addDate']]]]}}" bind:click="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}">新增</u-button></view></u-form-item><u-form-item vue-id="{{('0f43ed4e-13')+','+('0f43ed4e-1')}}" label="归属场馆" prop="venueName" right-icon="arrow-right" required="{{true}}" data-event-opts="{{[['tap',[['e4']]]]}}" bindtap="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('0f43ed4e-14')+','+('0f43ed4e-13')}}" placeholder="请选择归属场馆" disabled="{{true}}" value="{{form.venueName}}" data-event-opts="{{[['^click',[['e5']]],['^input',[['__set_model',['$0','venueName','$event',[]],['form']]]]]}}" bind:click="__e" bind:input="__e" class="data-v-3b65c50c" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('0f43ed4e-15')+','+('0f43ed4e-1')}}" label="地址" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('0f43ed4e-16')+','+('0f43ed4e-15')}}" disabled="{{true}}" placeholder="请输入地址" value="{{form.address}}" data-event-opts="{{[['^input',[['__set_model',['$0','address','$event',[]],['form']]]]]}}" class="data-v-3b65c50c" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('0f43ed4e-17')+','+('0f43ed4e-1')}}" label="学生数量" prop="maxStudentCount" required="{{true}}" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('0f43ed4e-18')+','+('0f43ed4e-17')}}" type="number" placeholder="请输入学生数量" value="{{form.maxStudentCount}}" data-event-opts="{{[['^input',[['__set_model',['$0','maxStudentCount','$event',[]],['form']]]]]}}" class="data-v-3b65c50c" bind:__l="__l"></u-input></u-form-item></u-form><u-popup bind:input="__e" vue-id="0f43ed4e-19" mode="bottom" border-radius="30" value="{{classDate}}" data-event-opts="{{[['^input',[['__set_model',['','classDate','$event',[]]]]]]}}" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><view class="dateForm data-v-3b65c50c"><u-form vue-id="{{('0f43ed4e-20')+','+('0f43ed4e-19')}}" model="{{selectForm}}" label-width="140" data-ref="selectForm" class="data-v-3b65c50c vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><u-form-item vue-id="{{('0f43ed4e-21')+','+('0f43ed4e-20')}}" label="上课时间" prop="week" required="{{true}}" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-radio-group bind:input="__e" vue-id="{{('0f43ed4e-22')+','+('0f43ed4e-21')}}" value="{{selectForm.week}}" data-event-opts="{{[['^input',[['__set_model',['$0','week','$event',[]],['selectForm']]]]]}}" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{weekList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><u-radio vue-id="{{('0f43ed4e-23-'+index)+','+('0f43ed4e-22')}}" name="{{item.name}}" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}">{{''+item.name+''}}</u-radio></block></u-radio-group></u-form-item><u-form-item vue-id="{{('0f43ed4e-24')+','+('0f43ed4e-20')}}" label="上课时间" prop="startTime" right-icon="arrow-right" required="{{true}}" data-event-opts="{{[['tap',[['e6']]]]}}" bindtap="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('0f43ed4e-25')+','+('0f43ed4e-24')}}" placeholder="请选择上课时间" disabled="{{true}}" value="{{selectForm.startTime}}" data-event-opts="{{[['^click',[['e7']]],['^input',[['__set_model',['$0','startTime','$event',[]],['selectForm']]]]]}}" bind:click="__e" bind:input="__e" class="data-v-3b65c50c" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('0f43ed4e-26')+','+('0f43ed4e-20')}}" label="下课时间" prop="endTime" right-icon="arrow-right" required="{{true}}" data-event-opts="{{[['tap',[['e8']]]]}}" bindtap="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}"><u-input vue-id="{{('0f43ed4e-27')+','+('0f43ed4e-26')}}" placeholder="请选择下课时间" disabled="{{true}}" value="{{selectForm.endTime}}" data-event-opts="{{[['^click',[['e9']]],['^input',[['__set_model',['$0','endTime','$event',[]],['selectForm']]]]]}}" bind:click="__e" bind:input="__e" class="data-v-3b65c50c" bind:__l="__l"></u-input></u-form-item></u-form><u-button vue-id="{{('0f43ed4e-28')+','+('0f43ed4e-19')}}" type="warning" ripple="{{true}}" custom-style="{{$root.a0}}" data-event-opts="{{[['^click',[['setDate']]]]}}" bind:click="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}">确定</u-button></view></u-popup><u-picker vue-id="0f43ed4e-29" mode="time" params="{{cycleParams}}" value="{{startDateShow}}" data-event-opts="{{[['^confirm',[['setStartDate']]],['^input',[['__set_model',['','startDateShow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" class="data-v-3b65c50c" bind:__l="__l"></u-picker><u-picker vue-id="0f43ed4e-30" mode="time" params="{{cycleParams}}" value="{{endDateShow}}" data-event-opts="{{[['^confirm',[['setEndDate']]],['^input',[['__set_model',['','endDateShow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" class="data-v-3b65c50c" bind:__l="__l"></u-picker><u-picker vue-id="0f43ed4e-31" mode="time" params="{{startTimeParams}}" value="{{startTimeShow}}" data-event-opts="{{[['^confirm',[['setStartTime']]],['^input',[['__set_model',['','startTimeShow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" class="data-v-3b65c50c" bind:__l="__l"></u-picker><u-picker vue-id="0f43ed4e-32" mode="selector" range="{{venueList}}" range-key="name" value="{{venueShow}}" data-event-opts="{{[['^confirm',[['setVenue']]],['^input',[['__set_model',['','venueShow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" class="data-v-3b65c50c" bind:__l="__l"></u-picker><view class="handle-fix-box data-v-3b65c50c"><u-button vue-id="0f43ed4e-33" type="warning" shape="circle" ripple="{{true}}" custom-style="{{customStyle}}" data-event-opts="{{[['^click',[['submitForm']]]]}}" bind:click="__e" class="data-v-3b65c50c" bind:__l="__l" vue-slots="{{['default']}}">保存</u-button></view><u-top-tips vue-id="0f43ed4e-34" data-ref="uTips" class="data-v-3b65c50c vue-ref" bind:__l="__l"></u-top-tips></view>