| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <block wx:if = "{{!addstaffShow }}">
- <view class="form-item">
- <view class="form-lable">培训标题 :</view>
- <input data-name="form.trainTitle" bindinput="model" value="{{form.trainTitle}}" placeholder="输入培训标题"></input>
- </view>
- <view class="form-item">
- <view class="form-lable" data-name="form.startTime">培训开始时间 :</view>
- <picker mode='date' bindchange="model" data-name="form.date1" style="{{form.date1 && 'color:#000'}}">{{form.date1 || '选择日期'}}</picker>
- <picker mode='time' value="12:00" bindchange="model" data-name="form.time1" style="{{form.time1 && 'color:#000'}}">{{form.time1 || '选择时间'}}</picker>
- </view>
- <view class="form-item">
- <view class="form-lable" data-name="form.endTime">培训结束时间 :</view>
- <picker mode='date' bindchange="model" data-name="form.date2" style="{{form.date2 && 'color:#000'}}">{{form.date2 || '选择日期'}}</picker>
- <picker mode='time' value="12:00" bindchange="model" data-name="form.time2" style="{{form.time2 && 'color:#000'}}">{{form.time2 || '选择时间'}}</picker>
- </view>
- <view class="form-item" bindtap="setMapShow">
- <view class="form-lable">培训地址 :</view>
- <image src="../../../../images/icon/adress1.png" class="adress"></image>
- <text>{{form.trainAddress}}</text>
- <!-- <picker range="{{trainAddress}}" range-key="fAddress" bindchange="model" data-name="form.trainAddress" style="{{form.trainAddress && 'color:#000'}}">{{form.trainAddress || '选择地址'}}</picker> -->
- </view>
- <view class="form-item">
- <view>培训内容 :</view>
- <textarea data-name="form.trainContent" bindinput="model" value="{{form.trainContent}}" placeholder="输入培训内容" maxlength="-1"></textarea>
- </view>
- <view class="form-item">
- <view style="padding:10rpx 0">培训图片 : </view>
- <view style="height:auto">
- <view class="upfiles_box">
- <view class="upfiles_box_clear" wx:for="{{form.fileList}}" wx:key="index">
- <icon class='ui_uploader_item_icon' bindtap='clearImg' data-index="{{index}}" type="clear" size="20" color="red" />
- <image bindtap='showImg' data-index="{{index}}" class="weui-uploader__img" src="{{item.fileUrl}}"></image>
- </view>
- <image src="../../../../images/icon/icon_tj.png" bindtap="uploader"></image>
- </view>
- </view>
- </view>
- <view class="form-item">
- <view class="upWord">
- <view class="tit">
- <view style="width:40%">培训文件:</view>
- <view class="wordbtn" catchtap="chooseWord">选择文件</view>
- </view>
- <view class="word_box">
- <view class="wordName">
- <view class="wordText" wx:if="{{form.fileDocList.length == 0}}">请选择文件</view>
- <view class="wordList" wx:for="{{form.fileDocList}}" wx:key="index">
- <view class="leftName" bindtap="openWord" data-index="{{ index }}">{{ item.fileOldName || "文档类文件" }}</view>
- <image class="imgs" data-index="{{ index }}" catchtap="deleteWord" src="../../../../images/weatherImg/close.png"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- <view class="addstaff-but" bindtap="setMapShow">
- 选择地址 <text style="color:red">{{form.trainUserinfoList.length ? '已选择' : '未选择' }}</text>
- <image src="../../../../images/icon/icon_jt.png"></image>
- </view> -->
- <view class="addstaff-but" style="margin-bottom:4px;" bindtap="setAddRoleShow" wx:if="{{fDeptid == 6}}">
- 选择培训角色 <text style="color:red">{{form.trainRoleinfoList.length ? '已选择' : '未选择' }}</text>
- <image src="../../../../images/icon/icon_jt.png"></image>
- </view>
- <view class="addstaff-but" bindtap="setAddstaffShow">
- 选择培训人员 <text style="color:red">{{form.trainUserinfoList.length ? '已选择' : '未选择' }}</text>
- <image src="../../../../images/icon/icon_jt.png"></image>
- </view>
- <view class="form-item">
- <view style="width:30%">是否限制距离 :</view>
- <radio-group style="width:70%" class='radio' bindchange="model" data-name="form.isLimit" >
- <radio checked="{{form.isLimit=='0'}}" value="0">否</radio>
- <radio checked="{{form.isLimit=='1'}}" value="1">是</radio>
- </radio-group>
- </view>
- <view class="form-item" wx:if="{{form.isLimit=='1'}}">
- <view style="width:40%">限制距离(米):</view>
- <input style="width:60%" data-name="form.distance" bindinput="model" value="{{form.distance}}" placeholder="输入限制距离"></input>
- </view>
- <!-- <view class="form-item">
- <view style="width:30%">是否通知 :</view>
- <radio-group style="width:70%" class='radio' bindchange="model" data-name="form.isSend" >
- <radio checked="{{form.isSend=='1'}}" value="1">否</radio>
- <radio checked="{{form.isSend=='0'}}" value="0">是</radio>
- </radio-group>
- </view> -->
- <view class="form-item" wx:if="{{form.isSend==0}}">
- <view style="width:25%">通知方式 :</view>
- <radio-group class='radio' bindchange="model" data-name="form.sendWay" >
- <radio checked="{{form.sendWay==2}}" value="2">微信服务通知</radio>
- <!-- <radio checked="{{form.sendWay==1}}" value="1">手机短信通知</radio> -->
- </radio-group>
- </view>
- <view class="but">
- <button bindtap="submit" data-state="1">保存培训</button>
- <button bindtap="submit" data-state="2" style="color:red">发布培训</button>
- </view>
- </block>
- <view class="addstaff" wx:if = "{{addstaffShow}}">
- <view class="staff-title">
- <text style="width: 40%;">添加培训人员</text>
- <view style="width: 40%;">
- <checkbox-group bindchange = "model" data-name="checkall">
- 全选 : <checkbox checked="{{checkall}}" value="checkall"/>
- </checkbox-group>
- </view>
- </view>
- <image bindtap="setAddstaffShow" src="../../../../images/weatherImg/close.png"></image>
- <scroll-view scroll-y class="staff-body">
- <checkbox-group bindchange = "model" data-name="form.checkedValueList">
- <view wx:for="{{UserAccountList}}" wx:key="index" class="staff-item">
- <checkbox checked="{{UserAccountList[index].checked}}" value="{{index}}"/>
- <text>{{item.fUsername}}</text>
- </view>
- </checkbox-group>
- </scroll-view>
- <view class="staff-bottom">
- <view bindtap="setAddstaffShow">取消</view>
- <view bindtap="setAddstaffShow" data-affirm="yes" style=" background-color:#1aad19">确定</view>
- </view>
- </view>
- <view class="addstaff" wx:if = "{{addRoleShow}}">
- <view class="staff-title">
- <text style="width: 40%;">添加培训角色</text>
- <view style="width: 40%;">
- <checkbox-group bindchange="roleChange" data-name="checkRoleAll">
- 全选 : <checkbox checked="{{checkRoleAll}}" value="checkRoleAll"/>
- </checkbox-group>
- </view>
- </view>
- <image bindtap="setAddRoleShow" src="../../../../images/weatherImg/close.png"></image>
- <scroll-view scroll-y class="staff-body">
- <checkbox-group bindchange = "roleChange" data-name="form.checkedValueList">
- <view wx:for="{{RoleAccountList}}" wx:key="index" class="staff-item">
- <checkbox checked="{{RoleAccountList[index].checked}}" value="{{index}}"/>
- <text>{{item.fRolename}}</text>
- </view>
- </checkbox-group>
- </scroll-view>
- <view class="staff-bottom">
- <view bindtap="setAddRoleShow">取消</view>
- <view bindtap="setAddRoleShow" data-affirm="yes" style=" background-color:#1aad19">确定</view>
- </view>
- </view>
- <!-- <view class="addstaff" wx:if = "{{mapShow}}">
- <view class="staff-title">
- <text style="width: auto;">搜索地址</text>
- <view style="width: auto;">
- <input placeholder="搜索地址"></input>
- </view>
- </view>
- <image bindtap="setMapShow" src="../../../../images/weatherImg/close.png"></image>
- <view class="staff-body">
- <map latitude="{{latitude}}" longitude="{{longitude}}"></map>
- </view>
- </view> -->
|