fileList.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <template>
  2. <view>
  3. <view class="navbar">
  4. <view class="back">
  5. <text class="iconfont icon-fanhui " @click="backLast()"></text>
  6. </view>
  7. <text>文件列表</text>
  8. </view>
  9. <view class="shenbaoList">
  10. <view class="list_li" v-for="(item,index) in list" :key="index">
  11. <view class="title">{{item.name}}</view>
  12. <view class="li_bottom">
  13. <view>等级:{{item.grade_name || '--'}}</view>
  14. <view>分值:<text style="color: red;">{{item.check_status==2 ? item.point : '0'}}</text></view>
  15. </view>
  16. <view class="li_bottom">
  17. <view>名次:{{item.ranking || '--'}}</view>
  18. <view>状态:<text style="color: #19b83b;" v-if="item.check_status==2">审核通过</text>
  19. <text style="color: #007AFF;" v-else-if="item.check_status==1">待审核</text>
  20. <text style="color: red;" v-else>审核失败</text>
  21. </view>
  22. </view>
  23. <view class="li_bottom">
  24. <view>颁发单位:{{item.unit || '--'}}</view>
  25. <view>{{item.award_day || '--'}}</view>
  26. </view>
  27. <view class="li_bottom">
  28. <view>审核人:{{item.check_admin ? item.check_admin.name : '--'}}</view>
  29. <view style="display: flex;align-items: center;justify-content: flex-end;">
  30. <view class="button none" @click="detail(item)" style="margin-left: 20upx;">
  31. <text>详情</text>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. var app = getApp()
  41. import navBar from '../../components/navBar/navbar.vue';
  42. export default {
  43. components: {
  44. navBar
  45. },
  46. data() {
  47. return {
  48. list: [],
  49. show: false,
  50. uploadPdf: '',
  51. is_open: false, //是否再上传时间段
  52. };
  53. },
  54. onLoad(options) {
  55. this.getDetails(options.id)
  56. },
  57. methods: {
  58. getDetails(id) {
  59. app.request('/examine/examine-detail', {
  60. examine_question_id: id
  61. }, 'post').then(res => {
  62. console.log(res, 'ppppp')
  63. this.list = res.data.data
  64. })
  65. },
  66. detail(item) {
  67. let obj = item.resources
  68. var arr = Object.values(obj)
  69. uni.navigateTo({
  70. url: './shenbaoDetail?url=' + arr[0]
  71. })
  72. },
  73. deletes(item) {
  74. var data = {
  75. examine_question_id: item.id,
  76. id: item.examine.id,
  77. staff_id: item.examine.staff.id
  78. }
  79. app.request('/examine/delete', data, 'post').then(res => {
  80. console.log(res)
  81. uni.showToast({
  82. title: '删除成功',
  83. icon: 'none'
  84. })
  85. this.getList()
  86. })
  87. },
  88. backLast: function() {
  89. uni.reLaunch({
  90. url: './shenbao'
  91. })
  92. },
  93. }
  94. }
  95. </script>
  96. <style lang="scss">
  97. page {
  98. background: #f5f5f5;
  99. }
  100. .iframe {
  101. width: 100%;
  102. height: 100%;
  103. position: fixed;
  104. z-index: 222;
  105. top: 0;
  106. left: 0;
  107. }
  108. .title {
  109. font-size: 16px;
  110. font-weight: 550;
  111. color: #4d4d4d;
  112. border-bottom: dashed 1px #EFF1F6;
  113. padding-bottom: 10px;
  114. }
  115. .navbar {
  116. font-size: 32upx;
  117. height: 100upx;
  118. line-height: 100upx;
  119. color: #888888;
  120. position: relative;
  121. position: fixed;
  122. top: 0;
  123. z-index: 9999999;
  124. width: 100%;
  125. background-color: #FFFFFF;
  126. text-align: center;
  127. border-bottom: solid 2upx #EFF1F6;
  128. .back {
  129. height: 100upx;
  130. width: 100upx;
  131. text-align: center;
  132. // background-color: #007AFF;
  133. position: absolute;
  134. float: left;
  135. left: 0upx;
  136. font-size: 32upx;
  137. }
  138. }
  139. .shenbaoList {
  140. padding-top: 100upx;
  141. display: flex;
  142. flex-direction: column;
  143. width: 100%;
  144. align-items: center;
  145. .list_li {
  146. display: flex;
  147. flex-direction: column;
  148. width: 90%;
  149. margin-top: 20upx;
  150. padding: 20upx;
  151. font-size: 26upx;
  152. background: white;
  153. .text1 {
  154. padding-top: 10upx;
  155. }
  156. .li_bottom {
  157. display: flex;
  158. padding-top: 5px;
  159. align-items: center;
  160. justify-content: space-between;
  161. // padding-top: 10upx;
  162. .button {
  163. border-radius: 3px;
  164. }
  165. .none {
  166. background: #1c85f1;
  167. color: white;
  168. display: flex;
  169. align-items: center;
  170. justify-content: center;
  171. padding: 8upx 15upx;
  172. }
  173. .upload {
  174. background: #19b83b;
  175. color: white;
  176. display: flex;
  177. align-items: center;
  178. justify-content: center;
  179. padding: 8upx 15upx;
  180. }
  181. }
  182. }
  183. }
  184. </style>