DownloadList.uvue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <!-- #ifdef APP -->
  3. <scroll-view style="flex:1" scroll-y class="container">
  4. <!-- #endif -->
  5. <view class="info-row" >
  6. <button class="btn" @click="download()">
  7. 下载数据
  8. </button>
  9. <button class="btn" @click="upload()">
  10. 上传数据
  11. </button>
  12. </view>
  13. <view class="download-card" v-for="item in downloads" :key="item.pdid">
  14. <view class="info-row">
  15. <text class="label">工作令:</text>
  16. <text class="value">{{ item.workorder }}</text>
  17. </view>
  18. <view class="info-row">
  19. <text class="label">产品名称:</text>
  20. <text class="value">{{ item.productNo }}</text>
  21. </view>
  22. <view class="info-row">
  23. <text class="label">图号:</text>
  24. <text class="value">{{ item.graphid }}</text>
  25. </view>
  26. <view class="info-row">
  27. <text class="label">路卡号:</text>
  28. <text class="value">{{ item.cardno }}</text>
  29. </view>
  30. <view class="info-row">
  31. <text class="label">工艺编号:</text>
  32. <text class="value">{{ item.processno }}</text>
  33. </view>
  34. <view class="info-row">
  35. <text class="label">版本号:</text>
  36. <text class="value">{{ item.ver }}</text>
  37. </view>
  38. <view class="info-row">
  39. <text class="label">最近更新时间:</text>
  40. <text class="value">{{ item.updatetime }}</text>
  41. </view>
  42. <view class="info-row">
  43. <text class="label">进度:</text>
  44. <text class="value">{{ item.progress }}</text>
  45. </view>
  46. </view>
  47. <!-- #ifdef APP -->
  48. </scroll-view>
  49. <!-- #endif -->
  50. </template>
  51. <script setup>
  52. import {
  53. ref
  54. } from 'vue'
  55. const downloads = ref([{
  56. pdid:1,
  57. workorder:"632-P-01",
  58. graphid:"HBJ0100-00",
  59. cardno: "LK20230707070012",
  60. processno: "Pb/XXX-E11",
  61. ver: "A.1",
  62. updatetime: "2025-06-23",
  63. progress: "1/3"
  64. },{
  65. pdid:2,
  66. workorder:"712-SY-10-6",
  67. graphid:"1XC002-00",
  68. cardno: "LK20250215003",
  69. processno: "Pb/XXX-E11",
  70. ver: "B.1",
  71. updatetime: "2025-08-25",
  72. progress: "0/4"
  73. }]);
  74. const download = () => {
  75. }
  76. const upload = () => {
  77. }
  78. </script>
  79. <style>
  80. .container {
  81. padding: 40rpx;
  82. background-color: #f5f7fa;
  83. min-height: 100vh;
  84. box-sizing: border-box;
  85. }
  86. .download-card {
  87. background: #ffffff;
  88. border-radius: 20rpx;
  89. padding: 24rpx 32rpx;
  90. box-shadow: 0 8rpx 15rpx rgba(0, 43, 92, 0.1);
  91. display: flex;
  92. flex-direction: column;
  93. gap: 16rpx;
  94. margin-bottom: 20rpx;
  95. margin-top: 40rpx;
  96. }
  97. /* 信息行 */
  98. .info-row {
  99. display: flex;
  100. flex-direction: row;
  101. gap: 10rpx;
  102. font-size: 28rpx;
  103. color: #33475b;
  104. align-items: center;
  105. }
  106. .label {
  107. font-weight: 600;
  108. color: #102a43;
  109. min-width: 100rpx;
  110. }
  111. .value {
  112. flex: 1;
  113. white-space: nowrap;
  114. overflow: hidden;
  115. text-overflow: ellipsis;
  116. }
  117. .btn {
  118. align-self: flex-end;
  119. background-color: #0000ff;
  120. color: #fff;
  121. border: none;
  122. border-radius: 32rpx;
  123. padding: 5rpx 30rpx;
  124. font-size: 24rpx;
  125. font-weight: 700;
  126. cursor: pointer;
  127. transition: background-color 0.3s ease;
  128. margin-top:30rpx;
  129. }
  130. </style>