fixedAssetsList.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view>
  3. <view v-for="(item,index) in list" :key="index" class="fixed-item">
  4. <view class="fixed-item-left">
  5. <view class="fixed-item-left-color">
  6. </view>
  7. <view :style="`${index == list.length-1 ? 'width:0':''}`" class="fixed-item-left-line">
  8. </view>
  9. </view>
  10. <view class="fixed-item-right">
  11. <view class="fixed-item-right-date">
  12. {{item.value[0][3]}}
  13. </view>
  14. <view class="fixed-item-right-content">
  15. <view class="fixed-item-right-content-title">
  16. 例行检修
  17. </view>
  18. <view class="">
  19. 审核人: {{item.value[0][0]}}
  20. </view>
  21. <view class="">
  22. 维修人: {{item.value[0][1]}}
  23. </view>
  24. <view class="">
  25. 验收人:{{item.value[0][2]}}
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. name: "fixedAssetsList",
  35. props: {
  36. list: {
  37. type: Array,
  38. default: () => []
  39. }
  40. },
  41. data() {
  42. return {
  43. };
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .fixed-item {
  49. width: 100%;
  50. display: flex;
  51. }
  52. .fixed-item-left {
  53. display: flex;
  54. flex-direction: column;
  55. align-items: center;
  56. margin-right: 32rpx;
  57. .fixed-item-left-color {
  58. width: 20rpx;
  59. height: 20rpx;
  60. border-radius: 50%;
  61. background: #d7d7d7;
  62. }
  63. .fixed-item-left-line {
  64. width: 1px;
  65. background: #d7d7d7;
  66. flex: 1;
  67. }
  68. }
  69. .fixed-item-right {
  70. flex: 1;
  71. }
  72. .fixed-item-right-date {
  73. height: 30rpx;
  74. line-height: 30rpx;
  75. color: #999;
  76. }
  77. .fixed-item-right-content {
  78. width: 100%;
  79. background: #ffffff;
  80. border-radius: 5.33px;
  81. box-shadow: 0px 0px 4px 0px rgba(147, 147, 147, 0.26);
  82. height: 230rpx;
  83. margin: 32rpx 0;
  84. box-sizing: border-box;
  85. display: flex;
  86. flex-direction: column;
  87. justify-content: center;
  88. padding-left: 32rpx;
  89. color: #999;
  90. }
  91. .fixed-item-right-content-title {
  92. font-size: 32rpx;
  93. color: #333;
  94. margin-bottom: 10rpx;
  95. }
  96. </style>