123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <view class="curriculum" style="height: {{vh}}px;">
- <van-search value="{{workName}}" placeholder="请输入作业名称" bind:change="goSearch" input-align="center" shape="round" left-icon="" use-action-slot use-right-icon-slot>
- <van-icon name="search" slot="right-icon" />
- <view slot="action" class="filter">
- <van-icon name="filter-o" size="18" bindtap="showFilter" />
- </view>
- </van-search>
- <view class="curr-content">
- <view class="curr-item">
- <view>
- 期号-作业名称
- </view>
- <view>
- 任务班级
- </view>
- </view>
- <scroll-view wx:if="{{workList.length>0}}" scroll-y="true" bindscrolltolower="scrolltolower">
- <view class="work-cell" wx:for="{{workList}}" catchtap="toWorkPushDetail" data-index="{{item.id}}">
- <view class="work-name">
- <text>{{item.homeworkNumber}}-{{item.homeworkName}}</text>
- </view>
- <view class="work-class">
- <text>{{item.classesNames}}</text>
- </view>
- </view>
- </scroll-view>
- <van-empty wx:else description="暂无已发布作业" />
- <view class="curr-btn">
- <van-button type="info" bindtap="onShowDialog" custom-style="width:600rpx;border-radius: 10px;">发布作业</van-button>
- </view>
- </view>
- </view>
- <van-dialog use-slot title="发布作业" show="{{ showDialog }}" showConfirmButton="{{false}}" bind:close="onCloseDialog">
- <view class="form-create">
- <van-field label="作业名称:" model:value="{{ formWorkName }}" placeholder="请输入作业名称" border="{{ true }}" />
- <zh-select placeholder="请选择" label="任务班级:" bind:change="selectChange" dataType="{{optionType}}" value="{{classIds}}" option="{{classList}}"></zh-select>
- <van-field label="作业要求:" type="" model:value="{{ formWorkDetail }}" placeholder="请输入作业要求" border="{{ true }}" />
- <van-cell bindtap="chooseUpload">
- <view slot='title' class="upload">
- <text>作业文件:</text>
- <view class="choose-upload" bindtap="chooseUpload">
- <van-icon name="back-top" wx:if="{{workPathName==''}}" />
- <text>{{workPathName==""? '点击上传':workPathName}}</text>
- </view>
- </view>
- </van-cell>
- <view class="btn-attr">
- <van-button type="warning" block custom-style="border-radius: 10px;height:30px;" bindtap="closeSubmit">取消</van-button>
- <van-button type="info" block custom-style="border-radius: 10px;height:30px;" bindtap="submitWork">确认</van-button>
- </view>
- </view>
- </van-dialog>
- <van-action-sheet show="{{ filterShow }}" title="全部搜索" bind:close="showFilter">
- <view class="filter-sheet">
- <van-cell-group>
- <van-cell title-width="100%">
- <view slot="title" class="time-content">
- <text class="title">发布时间:</text>
- <van-button size="mini" bindtap="onShowTimeAttr" data-active="{{true}}">{{startTime==""?'开始时间':module.getTime(startTime)}}</van-button>
- <text>——</text>
- <van-button size="mini" bindtap="onShowTimeAttr" data-active="{{false}}">{{endTime==""?'结束时间':module.getTime(endTime)}}</van-button>
- </view>
- </van-cell>
- <van-field label="作业名称:" model:value="{{ workName }}" placeholder="请输入作业名" border="{{ false }}" bind:change="onChange" border="{{true}}" />
- <van-cell title="期号:{{issue==''?'请选择期号':issue}}" is-link bindtap="onCloseIssus">
- <view slot="title" class="issus-content">
- <text class="title">发布时间:</text>
- <text class="title">发布时间:</text>
- </view>
- </van-cell>
- <van-cell title="学员班级" use-label-slot sticky="false">
- <scroll-view class="class-item-cell" slot="label" scroll-x>
- <view class="content">
- <view bindtap="onClassID" data-id="{{item.id}}" class="cell {{item.id == filterClassId?'active':'' }}" wx:for="{{classList}}">{{item.className}}</view>
- </view>
- </scroll-view>
- </van-cell>
- </van-cell-group>
- <view class="btn-attr">
- <van-button type="warning" block custom-style="border-radius: 10px;height:40px;" bindtap="reSetData">重置</van-button>
- <van-button type="info" block custom-style="border-radius: 10px;height:40px;" bindtap="onSearchFilter">确认</van-button>
- </view>
- </view>
- </van-action-sheet>
- <van-popup show="{{ showTimeAttr }}" position="bottom" bind:close="onCloseTimeAttr">
- <van-datetime-picker title="开始时间" wx:if="{{timeType}}" type="date" value="{{ timeArrStart }}" min-date="{{ minDate }}" bind:input="startTimeChange" bind:cancel="onCloseTimeAttr" bind:confirm="onTimeAttr" />
- <van-datetime-picker title="结束时间" type="date" wx:else value="{{ timeArrEnd }}" min-date="{{ minDate }}" bind:input="endTimeChange" bind:cancel="onCloseTimeAttr" bind:confirm="onTimeAttr" />
- </van-popup>
- <van-popup show="{{showIssus}}" position="bottom">
- <van-picker columns="{{ AllWorkList }}" default-index="{{0}}" value-key="homeworkNumber" bind:change="onIssusChange" bind:cancel="onCloseIssus" bind:confirm="onIssus" show-toolbar />
- </van-popup>
- <wxs src="../../utils/getTime.wxs" module="module" />
|