teacherFault.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <view class="page">
  2. <view class="toptitle">
  3. <text wx:if="{{pageState==1}}" class="toptitle_left">报修记录</text>
  4. <text wx:else class="toptitle_left"></text>
  5. <view class="toptitle_right">
  6. <picker bindchange="bindPageChange" value="{{pageState}}" range="{{pageStateText}}">
  7. <text class="toptitle_right_text">{{pageStateText[pageState]}}</text>
  8. </picker>
  9. <image src="../../../image/teacher/dorpdown_white_icon.png" class="toptitle_right_icon"></image>
  10. </view>
  11. </view>
  12. <view wx:if="{{pageState==0}}">
  13. <view class="center_picker_layout" style="margin-top: 24rpx;">
  14. <!--是否紧急-->
  15. <view class="item_input_bg" style=" margin-top: 0rpx;box-shadow: 0px 1px 0px 0px #EEEEEE;">
  16. <text class="item_input_title">故障级别:</text>
  17. <picker bindchange="bindFaultChange" value="{{faultIndex}}" range="{{fault}}" class="item_picker_bg">
  18. <view class="item_picker_content">
  19. {{fault[faultIndex]}}
  20. </view>
  21. </picker>
  22. <view class="item_picker_icon_layout">
  23. <image src="../../../image/teacher/dropdown_icon.png" class="item_picker_icon"></image>
  24. </view>
  25. </view>
  26. <!--是否紧急end-->
  27. <!--选择地区-->
  28. <view class="item_input_bg" style=" margin-top: 2rpx; box-shadow: 0px 1px 0px 0px #EEEEEE;">
  29. <text class="item_input_title">地区:</text>
  30. <picker mode="multiSelector" bindchange="bindRegionChange" bindcolumnchange="bindMultiPickerColumnChange" range="{{region}}" class="item_picker_bg" value="{{regionIndex}}">
  31. <view class="item_picker_content">
  32. <p> {{region[0][regionIndex[0]]}} </p>
  33. <p> {{region[1][regionIndex[1]]}} </p>
  34. <p> {{region[2][regionIndex[2]]}} </p>
  35. </view>
  36. </picker>
  37. <view class="item_picker_icon_layout">
  38. <image src="../../../image/teacher/dropdown_icon.png" class="item_picker_icon"></image>
  39. </view>
  40. </view>
  41. <!--选择地区 end-->
  42. <!--选择学校-->
  43. <view class="item_input_bg" style=" margin-top: 2rpx;box-shadow: 0px 1px 0px 0px #EEEEEE;">
  44. <text class="item_input_title">学校:</text>
  45. <picker mode="multiSelector" bindcolumnchange="bindSchoolPicker" range="{{schoolArray}}" value="{{[schoolIndex,0]}}" class="item_picker_bg">
  46. <view class="item_picker_content">
  47. {{schoolArray[0][schoolIndex]}}
  48. </view>
  49. </picker>
  50. <view class="item_picker_icon_layout">
  51. <image src="../../../image/teacher/dropdown_icon.png" class="item_picker_icon"></image>
  52. </view>
  53. </view>
  54. <!--选择学校end-->
  55. <!--选择班级-->
  56. <view class="item_input_bg" style=" margin-top: 2rpx;box-shadow: 0px 1px 0px 0px #EEEEEE;">
  57. <text class="item_input_title">班级:</text>
  58. <picker bindchange="bindClssPicker" value="{{classIndex}}" range="{{classArray}}" class="item_picker_bg">
  59. <view class="item_picker_content">
  60. {{classArray[classIndex]}}
  61. </view>
  62. </picker>
  63. <view class="item_picker_icon_layout">
  64. <image src="../../../image/teacher/dropdown_icon.png" class="item_picker_icon"></image>
  65. </view>
  66. </view>
  67. <!--选择班级end-->
  68. <view class="item_input_bg" style="margin-top: 1rpx;box-shadow: 0px 1px 0px 0px #EEEEEE;">
  69. <text class="item_input_title">设备ID:</text>
  70. <input class="item_input_content" placeholder="请输入设备ID" bindinput="bindDeviceInput" value="{{deviceId}}" />
  71. </view>
  72. </view>
  73. <view class="fault_info_layout">
  74. <textarea bindinput="bindFaultText" class="fault_info_textarea" placeholder="故障描述:请描述故障情况请描述故障情况,\n请描述故障情况请描述故障情况" value="{{describe}}"></textarea>
  75. <scroll-view scroll-x class="fault_info_scroll">
  76. <view wx:for="{{1}}" wx:key="index" style="display:inline-block;">
  77. <image class="fault_info_scroll_item"></image>
  78. </view>
  79. </scroll-view>
  80. </view>
  81. <view class="submitFault_layout">
  82. <button class="submitFault" bindtap="submitFault">提交</button>
  83. </view>
  84. </view>
  85. <!-- 报修记录-->
  86. <scroll-view wx:if="{{pageState==1}}" scroll-y="true" class="scrollview">
  87. <view wx:for="{{faultList}}" class="scroll_item_bg" wx:key="key" wx:for-index="idx" wx:for-item="item">
  88. <fauleItem faultStatus="{{item.processType}}" faultRepairNo="{{item.repairNo}}" faultProvinceCity="{{item.provinceCity}}" faultSchoolName="{{item.schoolName}}" faultClassName="{{item.className}}" faultReportTime="{{item.reportTime}}"></fauleItem>
  89. </view>
  90. </scroll-view>
  91. <!-- 报修记录-->
  92. </view>