record.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <hc-sys class="hc-my-record-page" navBarUi='nav-bar-white'>
  3. <template #navBar>
  4. <hc-nav-back-bar title="填报记录">
  5. <text @click="setDataClick" class="i-ri-more-fill text-50"/>
  6. </hc-nav-back-bar>
  7. </template>
  8. <!-- 时间轴记录 -->
  9. <view class="hc-record-time-line">
  10. <view class="time-line-item">
  11. <view class="item-icon">
  12. <view class="dot"/>
  13. </view>
  14. <view class="item-content">
  15. <view class="time">2023-08-14</view>
  16. <view class="card">
  17. <view class="title">WBS单位节点名称</view>
  18. <view class="text">分部名称>分项名称>工序名称</view>
  19. </view>
  20. <view class="card">
  21. <view class="title">K0+000~K1+050泗孟隧道(矿山、新奥法)</view>
  22. <view class="text">洞口工程>K0+000~K1+050明洞防水层 >明洞防水层</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="time-line-item">
  27. <view class="item-icon">
  28. <view class="dot"/>
  29. </view>
  30. <view class="item-content">
  31. <view class="time">2023-08-12</view>
  32. <view class="card">
  33. <view class="title">K0+000~K1+050泗孟隧道(矿山、新奥法)</view>
  34. <view class="text">洞口工程>K0+000~K1+050明洞防水层 >明洞防水层</view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="time-line-item">
  39. <view class="item-icon">
  40. <view class="dot"/>
  41. </view>
  42. <view class="item-content">
  43. <view class="time">2023-08-11</view>
  44. <view class="card">
  45. <view class="title">K0+000~K1+050泗孟隧道(矿山、新奥法)</view>
  46. <view class="text">洞口工程>K0+000~K1+050明洞防水层 >明洞防水层</view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="time-line-item no-data">
  51. <view class="item-icon">
  52. <view class="dot"/>
  53. </view>
  54. <view class="item-content">
  55. <view class="time">更早的时间</view>
  56. <view class="card">暂无更多数据</view>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 普通弹窗 -->
  61. <uni-popup ref="popupRef" class="hc-popup" type="bottom">
  62. <view class="hc-popup-content">
  63. <view class="title">清除填报记录?</view>
  64. <view class="popup-btn-bar">
  65. <button type="primary" class="popup-btn c1" @click="setPurgeClick">清除记录</button>
  66. </view>
  67. <view class="popup-btn-bar">
  68. <button type="primary" class="popup-btn c3" @click="cancelPopup">取消</button>
  69. </view>
  70. </view>
  71. </uni-popup>
  72. </hc-sys>
  73. </template>
  74. <script setup>
  75. import {ref} from "vue";
  76. import {onLoad} from '@dcloudio/uni-app'
  77. import {useAppStore} from "@/store";
  78. import {errorToast} from "@/utils/tools";
  79. //初始变量
  80. const store = useAppStore()
  81. const userInfo = ref(store.userInfo);
  82. const projectId = ref(store.projectId);
  83. const contractId = ref(store.contractId);
  84. //渲染完成
  85. onLoad(() => {
  86. })
  87. //展开操作弹窗
  88. const popupRef = ref(null)
  89. const setDataClick = () => {
  90. popupRef.value?.open()
  91. }
  92. //清除记录
  93. const setPurgeClick = async () => {
  94. popupRef.value?.close()
  95. errorToast('暂不支持清除记录')
  96. }
  97. //取消并关闭
  98. const cancelPopup = () => {
  99. popupRef.value?.close()
  100. }
  101. </script>
  102. <style lang="scss" scoped>
  103. page {
  104. background: #EFEFF4;
  105. }
  106. </style>
  107. <style lang="scss">
  108. @import "@/style/my/record.scss";
  109. </style>