Geen omschrijving

create.wxml 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <block wx:if = "{{!addstaffShow }}">
  2. <view class="form-item">
  3. <view class="form-lable">培训标题 :</view>
  4. <input data-name="form.trainTitle" bindinput="model" value="{{form.trainTitle}}" placeholder="输入培训标题"></input>
  5. </view>
  6. <view class="form-item">
  7. <view class="form-lable" data-name="form.startTime">培训开始时间 :</view>
  8. <picker mode='date' bindchange="model" data-name="form.date1" style="{{form.date1 && 'color:#000'}}">{{form.date1 || '选择日期'}}</picker>
  9. <picker mode='time' value="12:00" bindchange="model" data-name="form.time1" style="{{form.time1 && 'color:#000'}}">{{form.time1 || '选择时间'}}</picker>
  10. </view>
  11. <view class="form-item">
  12. <view class="form-lable" data-name="form.endTime">培训结束时间 :</view>
  13. <picker mode='date' bindchange="model" data-name="form.date2" style="{{form.date2 && 'color:#000'}}">{{form.date2 || '选择日期'}}</picker>
  14. <picker mode='time' value="12:00" bindchange="model" data-name="form.time2" style="{{form.time2 && 'color:#000'}}">{{form.time2 || '选择时间'}}</picker>
  15. </view>
  16. <view class="form-item" bindtap="setMapShow">
  17. <view class="form-lable">培训地址 :</view>
  18. <image src="../../../../images/icon/adress1.png" class="adress"></image>
  19. <text>{{form.trainAddress}}</text>
  20. <!-- <picker range="{{trainAddress}}" range-key="fAddress" bindchange="model" data-name="form.trainAddress" style="{{form.trainAddress && 'color:#000'}}">{{form.trainAddress || '选择地址'}}</picker> -->
  21. </view>
  22. <view class="form-item">
  23. <view>培训内容 :</view>
  24. <textarea data-name="form.trainContent" bindinput="model" value="{{form.trainContent}}" placeholder="输入培训内容" maxlength="-1"></textarea>
  25. </view>
  26. <view class="form-item">
  27. <view style="padding:10rpx 0">培训图片 : </view>
  28. <view style="height:auto">
  29. <view class="upfiles_box">
  30. <view class="upfiles_box_clear" wx:for="{{form.fileList}}" wx:key="index">
  31. <icon class='ui_uploader_item_icon' bindtap='clearImg' data-index="{{index}}" type="clear" size="20" color="red" />
  32. <image bindtap='showImg' data-index="{{index}}" class="weui-uploader__img" src="{{item.fileUrl}}"></image>
  33. </view>
  34. <image src="../../../../images/icon/icon_tj.png" bindtap="uploader"></image>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="form-item">
  39. <view class="upWord">
  40. <view class="tit">
  41. <view style="width:40%">培训文件:</view>
  42. <view class="wordbtn" catchtap="chooseWord">选择文件</view>
  43. </view>
  44. <view class="word_box">
  45. <view class="wordName">
  46. <view class="wordText" wx:if="{{form.fileDocList.length == 0}}">请选择文件</view>
  47. <view class="wordList" wx:for="{{form.fileDocList}}" wx:key="index">
  48. <view class="leftName" bindtap="openWord" data-index="{{ index }}">{{ item.fileOldName || "文档类文件" }}</view>
  49. <image class="imgs" data-index="{{ index }}" catchtap="deleteWord" src="../../../../images/weatherImg/close.png"></image>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- <view class="addstaff-but" bindtap="setMapShow">
  56. 选择地址 <text style="color:red">{{form.trainUserinfoList.length ? '已选择' : '未选择' }}</text>
  57. <image src="../../../../images/icon/icon_jt.png"></image>
  58. </view> -->
  59. <view class="addstaff-but" style="margin-bottom:4px;" bindtap="setAddRoleShow" wx:if="{{fDeptid == 6}}">
  60. 选择培训角色 <text style="color:red">{{form.trainRoleinfoList.length ? '已选择' : '未选择' }}</text>
  61. <image src="../../../../images/icon/icon_jt.png"></image>
  62. </view>
  63. <view class="addstaff-but" bindtap="setAddstaffShow">
  64. 选择培训人员 <text style="color:red">{{form.trainUserinfoList.length ? '已选择' : '未选择' }}</text>
  65. <image src="../../../../images/icon/icon_jt.png"></image>
  66. </view>
  67. <view class="form-item">
  68. <view style="width:30%">是否限制距离 :</view>
  69. <radio-group style="width:70%" class='radio' bindchange="model" data-name="form.isLimit" >
  70. <radio checked="{{form.isLimit=='0'}}" value="0">否</radio>
  71. <radio checked="{{form.isLimit=='1'}}" value="1">是</radio>
  72. </radio-group>
  73. </view>
  74. <view class="form-item" wx:if="{{form.isLimit=='1'}}">
  75. <view style="width:40%">限制距离(米):</view>
  76. <input style="width:60%" data-name="form.distance" bindinput="model" value="{{form.distance}}" placeholder="输入限制距离"></input>
  77. </view>
  78. <!-- <view class="form-item">
  79. <view style="width:30%">是否通知 :</view>
  80. <radio-group style="width:70%" class='radio' bindchange="model" data-name="form.isSend" >
  81. <radio checked="{{form.isSend=='1'}}" value="1">否</radio>
  82. <radio checked="{{form.isSend=='0'}}" value="0">是</radio>
  83. </radio-group>
  84. </view> -->
  85. <view class="form-item" wx:if="{{form.isSend==0}}">
  86. <view style="width:25%">通知方式 :</view>
  87. <radio-group class='radio' bindchange="model" data-name="form.sendWay" >
  88. <radio checked="{{form.sendWay==2}}" value="2">微信服务通知</radio>
  89. <!-- <radio checked="{{form.sendWay==1}}" value="1">手机短信通知</radio> -->
  90. </radio-group>
  91. </view>
  92. <view class="but">
  93. <button bindtap="submit" data-state="1">保存培训</button>
  94. <button bindtap="submit" data-state="2" style="color:red">发布培训</button>
  95. </view>
  96. </block>
  97. <view class="addstaff" wx:if = "{{addstaffShow}}">
  98. <view class="staff-title">
  99. <text style="width: 40%;">添加培训人员</text>
  100. <view style="width: 40%;">
  101. <checkbox-group bindchange = "model" data-name="checkall">
  102. 全选 : <checkbox checked="{{checkall}}" value="checkall"/>
  103. </checkbox-group>
  104. </view>
  105. </view>
  106. <image bindtap="setAddstaffShow" src="../../../../images/weatherImg/close.png"></image>
  107. <scroll-view scroll-y class="staff-body">
  108. <checkbox-group bindchange = "model" data-name="form.checkedValueList">
  109. <view wx:for="{{UserAccountList}}" wx:key="index" class="staff-item">
  110. <checkbox checked="{{UserAccountList[index].checked}}" value="{{index}}"/>
  111. <text>{{item.fUsername}}</text>
  112. </view>
  113. </checkbox-group>
  114. </scroll-view>
  115. <view class="staff-bottom">
  116. <view bindtap="setAddstaffShow">取消</view>
  117. <view bindtap="setAddstaffShow" data-affirm="yes" style=" background-color:#1aad19">确定</view>
  118. </view>
  119. </view>
  120. <view class="addstaff" wx:if = "{{addRoleShow}}">
  121. <view class="staff-title">
  122. <text style="width: 40%;">添加培训角色</text>
  123. <view style="width: 40%;">
  124. <checkbox-group bindchange="roleChange" data-name="checkRoleAll">
  125. 全选 : <checkbox checked="{{checkRoleAll}}" value="checkRoleAll"/>
  126. </checkbox-group>
  127. </view>
  128. </view>
  129. <image bindtap="setAddRoleShow" src="../../../../images/weatherImg/close.png"></image>
  130. <scroll-view scroll-y class="staff-body">
  131. <checkbox-group bindchange = "roleChange" data-name="form.checkedValueList">
  132. <view wx:for="{{RoleAccountList}}" wx:key="index" class="staff-item">
  133. <checkbox checked="{{RoleAccountList[index].checked}}" value="{{index}}"/>
  134. <text>{{item.fRolename}}</text>
  135. </view>
  136. </checkbox-group>
  137. </scroll-view>
  138. <view class="staff-bottom">
  139. <view bindtap="setAddRoleShow">取消</view>
  140. <view bindtap="setAddRoleShow" data-affirm="yes" style=" background-color:#1aad19">确定</view>
  141. </view>
  142. </view>
  143. <!-- <view class="addstaff" wx:if = "{{mapShow}}">
  144. <view class="staff-title">
  145. <text style="width: auto;">搜索地址</text>
  146. <view style="width: auto;">
  147. <input placeholder="搜索地址"></input>
  148. </view>
  149. </view>
  150. <image bindtap="setMapShow" src="../../../../images/weatherImg/close.png"></image>
  151. <view class="staff-body">
  152. <map latitude="{{latitude}}" longitude="{{longitude}}"></map>
  153. </view>
  154. </view> -->