planDetailDone.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view>
  3. <form action="" class="planDetailDone" >
  4. <view class="form-item">
  5. <view class="title">
  6. <text class="necessary">*</text>
  7. 上报名称:
  8. </view>
  9. <view>市光四村221号楼</view>
  10. </view>
  11. <view class="form-item">
  12. <view class="title">
  13. <text class="necessary">*</text>
  14. 巡检状态:
  15. </view>
  16. <radio-group name="gender" @change="radioChange">
  17. <label class="margin-right-xs">
  18. <radio value="2" checked /><text>正常</text>
  19. </label>
  20. <label class="margin-right-xs">
  21. <radio value="3" /><text>异常</text>
  22. </label>
  23. <label class="margin-right-xs">
  24. <radio value="2" checked /><text>故障</text>
  25. </label>
  26. <label>
  27. <radio value="3" /><text>其他</text>
  28. </label>
  29. </radio-group>
  30. </view>
  31. <view class="form-item">
  32. <view class="title">
  33. <text class="necessary">*</text>
  34. 上传图片:
  35. </view>
  36. <view>151198415.jpg</view>
  37. </view>
  38. <view class="form-item">
  39. <view class="title">
  40. <text class="necessary">*</text>
  41. 巡检描述:
  42. </view>
  43. <view>描述信息</view>
  44. </view>
  45. </form>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. }
  53. },
  54. onload(option){
  55. this.getAuthority({"id":option.phone,"company_code": uni.getStorageSync('selectedCode')})
  56. },
  57. methods: {
  58. radioChange(e) {
  59. console.log('type:' + e.detail.value);
  60. this.radioOne = e.detail.value;
  61. },
  62. // 回显信息请求
  63. async getAuthority(params={}) {
  64. const res = await this.$myRequest({
  65. url: 'Inspection/getInspectionDetails',
  66. data:params
  67. })
  68. this.authorityData=res.data.data[0]
  69. this.selectedData=res.data.data[0].siteIdData;
  70. },
  71. }
  72. }
  73. </script>
  74. <style lang="scss">
  75. </style>