index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view class="container">
  3. <view class="back-btn" @click="backToBefore()">
  4. <u-icon name="arrow-left" color="#fff" size="20" customStyle="margin:0 auto"></u-icon>
  5. <text class="back-text">项目开工资料</text>
  6. </view>
  7. <view class="table-area">
  8. <uni-table stripe emptyText="暂无更多数据">
  9. <uni-tr>
  10. <uni-th width="100" align="center">工作说明</uni-th>
  11. <uni-th width="100" align="center">办理状态</uni-th>
  12. <uni-th width="100" align="center">批复单位</uni-th>
  13. <uni-th width="100" align="center">计划日期</uni-th>
  14. <uni-th width="100" align="center">实际批复</uni-th>
  15. <uni-th width="100" align="center">批复文号</uni-th>
  16. <uni-th width="200" align="center">附件</uni-th>
  17. </uni-tr>
  18. <uni-tr v-for="(item, index) in tableData" :key="index">
  19. <uni-td align="center">{{ item.sysName || "--" }}</uni-td>
  20. <uni-td align="center">{{ item.statusName || "--" }}</uni-td>
  21. <uni-td align="center">{{ item.subUnitName || "--" }}</uni-td>
  22. <uni-td align="center">{{ item.datePlan || "--" }}</uni-td>
  23. <uni-td align="center">{{ item.dateConfirm || "--" }}</uni-td>
  24. <uni-td align="center">{{ item.apprNo || "--" }}</uni-td>
  25. <uni-td align="center">{{ item.fileName || "--" }}</uni-td>
  26. </uni-tr>
  27. </uni-table>
  28. </view>
  29. </view>
  30. </template>
  31. <script setup>
  32. import {
  33. ref
  34. } from 'vue'
  35. import {
  36. onLoad
  37. } from "@dcloudio/uni-app"
  38. import {
  39. getProjectInfoDetail,
  40. } from "@/api/work/projectInfo.js"
  41. function backToBefore() {
  42. uni.navigateBack({})
  43. };
  44. let tableData = ref([{
  45. startDate: '2023-06-20',
  46. endDate: '2023-06-20',
  47. status: 'sdfasdfasfd',
  48. planStatus: 'new'
  49. }, {
  50. startDate: '2023-06-20',
  51. endDate: '2023-06-20',
  52. status: 'sdfasdfasfd',
  53. planStatus: 'wait'
  54. }, {
  55. startDate: '2023-06-20',
  56. endDate: '2023-06-20',
  57. status: 'sdfasdfasfd',
  58. planStatus: 'done'
  59. }])
  60. onLoad((option) => {
  61. getProjectInfoDetail({
  62. subId: option.id
  63. }).then(res => {
  64. tableData.value = res.data.kgsp[2]
  65. })
  66. })
  67. </script>
  68. <style lang="scss" scoped>
  69. page {
  70. height: 100%;
  71. background-color: #EAF0FA;
  72. }
  73. .container {
  74. position: relative;
  75. width: 100%;
  76. height: 100%;
  77. background: linear-gradient(180deg, #1869F6 0%, #EAF0FA 64%, #EAF0FA 100%);
  78. .back-btn {
  79. position: absolute;
  80. top: 8%;
  81. left: 4%;
  82. display: flex;
  83. font-size: 40rpx;
  84. font-weight: 500;
  85. color: #FFF;
  86. .back-text {
  87. margin-left: 28rpx;
  88. }
  89. }
  90. .table-area {
  91. position: absolute;
  92. top: 14%;
  93. left: 0;
  94. width: 100%;
  95. height: 86%;
  96. background-color: #fff;
  97. border-radius: 28rpx 28rpx 0rpx 0rpx;
  98. overflow: hidden;
  99. }
  100. }
  101. ::v-deep .uni-table {
  102. .uni-table-th,
  103. .uni-table-th-content {
  104. height: 112rpx;
  105. color: #343437;
  106. font-size: 32rpx;
  107. font-weight: 500;
  108. background-color: #EAF0FA;
  109. }
  110. .uni-table-td {
  111. color: #343437;
  112. font-size: 28rpx
  113. }
  114. }
  115. </style>