inspection-detail.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view class="container">
  3. <view class="mx3 my2 p3 bg-color-white" style="border-radius: 16rpx">
  4. <view class="d-flex py3 border-bottom">
  5. <view class="f-size-26 text-color-9 w200">选择设备</view>
  6. <view class="f-size-26 text-color-3">挖掘机</view>
  7. </view>
  8. <view class="d-flex py3 border-bottom">
  9. <view class="f-size-26 text-color-9 w200">填写日期</view>
  10. <view class="f-size-26 text-color-3">2020-10-10</view>
  11. </view>
  12. <view class="d-flex py3 border-bottom">
  13. <view class="f-size-26 text-color-9 w200">设备负责人</view>
  14. <view class="f-size-26 text-color-3">张三</view>
  15. </view>
  16. <view class="f-size-32 f-weight-6 py2 mb-2 title">巡检项目</view>
  17. <view class="d-flex py3 border-bottom">
  18. <view class="f-size-26 text-color-9 w200">工作部件</view>
  19. <view class="f-size-26 text-color-3">电气部件</view>
  20. </view>
  21. <view class="d-flex py3 border-bottom">
  22. <view class="f-size-26 text-color-9 w200">行驶系统</view>
  23. <view class="f-size-26 text-color-3">润滑系统</view>
  24. </view>
  25. <view class="d-flex py3 border-bottom">
  26. <view class="f-size-26 text-color-9 w200">传动系统</view>
  27. <view class="f-size-26 text-color-3">传动系统</view>
  28. </view>
  29. <view class="d-flex py3 border-bottom">
  30. <view class="f-size-26 text-color-9 w200">发动机系统</view>
  31. <view class="f-size-26 text-color-3">发动机系统</view>
  32. </view>
  33. <view class="d-flex py3 border-bottom">
  34. <view class="f-size-26 text-color-9 w200">问题描述</view>
  35. <view
  36. class="f-size-26 text-color-3 flex1"
  37. >问题描述问题描述问题描述问题描述问题描述问题描述问题描述问题描述问题描述</view
  38. >
  39. </view>
  40. </view>
  41. <u-modal
  42. v-model="modelShow"
  43. :content="content"
  44. :show-cancel-button="true"
  45. @confirm="handleDelete"
  46. ></u-modal>
  47. <view class="p-fixed d-flex j-around a-center footer">
  48. <view class="common" @tap="handleDelTip">删除</view>
  49. <view class="common" @tap="handleUpdate">修改</view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. modelShow: false,
  58. content: ''
  59. };
  60. },
  61. methods: {
  62. // 删除提示
  63. handleDelTip() {
  64. this.modelShow = true;
  65. this.content = '您确定删除吗?';
  66. },
  67. // 删除
  68. handleDelete() {},
  69. // 修改
  70. handleUpdate() {
  71. uni.navigateTo({
  72. url: '../inspection-edit/inspection-edit'
  73. });
  74. }
  75. }
  76. };
  77. </script>
  78. <style scoped lang="less">
  79. page {
  80. background-color: #f4f4f4;
  81. }
  82. .container {
  83. padding-bottom: 100rpx;
  84. .title {
  85. border-bottom: 1rpx solid #f4f4f4;
  86. color: #0082ff;
  87. }
  88. .p-fixed {
  89. border-top: 1rpx solid #f4f4f4;
  90. height: 100rpx;
  91. .common {
  92. padding: 15rpx 100rpx;
  93. border-radius: 30rpx;
  94. background-color: #0082ff;
  95. color: #fff;
  96. &:last-of-type {
  97. background-color: #fff;
  98. border: 1rpx solid #0082ff;
  99. color: #0082ff;
  100. }
  101. }
  102. }
  103. .footer {
  104. bottom: 0;
  105. left: 0;
  106. right: 0;
  107. background-color: #fff;
  108. }
  109. }
  110. </style>