gtpjg.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view>
  3. <view v-if="datalist&&datalist.length">
  4. <view class="time" v-for="(lite,lidx) in datalist" :key="lidx">
  5. <view class="time_t" @click="getLook(lidx)" :class="lite.check?'act':''">
  6. <view>{{lite.conferenceTime}}</view>
  7. <image :src="timeup" class="timeup"></image>
  8. </view>
  9. <view v-if="lite.check">
  10. <view class="timebox" v-for="(ite,idx) in lite.children" :key="idx">
  11. <view class="list">
  12. <image :src="timel" class="timel"></image>
  13. <view class="listr">
  14. <view class="listrx flext">
  15. <view class="ltit">贷款申请编号:</view>
  16. <view class="ltxt">{{ite.loanApplicationNumber}}</view>
  17. </view>
  18. <view class="listrx flext">
  19. <view class="ltit">贷款公司名称:</view>
  20. <view class="ltxt">{{ite.loanApplicationName}}</view>
  21. </view>
  22. <view class="listrx flext">
  23. <view class="ltit">参会时间:</view>
  24. <view class="ltxt">{{ite.conferenceTime}}</view>
  25. </view>
  26. <view class="listrx flext">
  27. <view class="ltit">投票人员:</view>
  28. <view class="ltxt">{{ite.realName}}</view>
  29. </view>
  30. <view class="listrx flext">
  31. <view class="ltit">投票结果:</view>
  32. <view class="ltxt" v-if="ite.votingResult">{{ite.votingResult=='Y'?'同意':'不同意'}}</view>
  33. </view>
  34. <view class="listrx flext">
  35. <view class="ltit">担保额度:</view>
  36. <view class="ltxt" v-if="ite.lineGuarantee">{{ite.lineGuarantee}}万元</view>
  37. </view>
  38. <view class="listrx flext">
  39. <view class="ltit">担保期限:</view>
  40. <view class="ltxt" v-if="ite.guaranteePeriod">{{ite.guaranteePeriod}}月</view>
  41. </view>
  42. <view class="listrx flext">
  43. <view class="ltit">意见:</view>
  44. <view class="ltxt">{{ite.argument}}</view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <block v-else>
  53. <no-data notxt='暂无投票信息'></no-data>
  54. </block>
  55. </view>
  56. </template>
  57. <script>
  58. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  59. import { selectValue } from '@/utils/common.js';
  60. import noData from "@/components/nodata/nodata.vue"
  61. import config from '@/config'
  62. const baseUrl = config.baseUrl
  63. export default {
  64. props:{
  65. shjdlist: {
  66. type: Array,
  67. default () {
  68. return []
  69. }
  70. },
  71. datalist:{
  72. type: Array,
  73. default () {
  74. return []
  75. }
  76. },
  77. },
  78. components:{
  79. noData
  80. },
  81. data(){
  82. return{
  83. timel:require("@/work/static/images/timel.png"),
  84. timeup:require("@/work/static/images/timeup.png"),
  85. baseUrl:'',
  86. }
  87. },
  88. mounted: function() {
  89. this.baseUrl=baseUrl;
  90. },
  91. methods:{
  92. checkPermi, checkRole,
  93. // 展开
  94. getLook(idx){
  95. this.datalist[idx].check=!this.datalist[idx].check
  96. },
  97. // getPreview(url){
  98. // this.$emit('getPreview',url)
  99. // },
  100. },
  101. }
  102. </script>
  103. <style lang="scss" scoped>
  104. // 时间轴
  105. .time{padding: 0 20rpx;
  106. .time_t{padding: 24rpx 0;display: flex;align-items: center;
  107. view{font-weight: bold;color: #4775EA;font-size: 32rpx;}
  108. text{margin-left:12rpx;}
  109. .timeup{width: 26rpx;height: 24rpx;margin-left: 30rpx;transition: all 0.3s; }
  110. &.act .timeup{transform: rotate(-180deg);}
  111. }
  112. // .timebox{display: none;}
  113. .list{display: flex;align-items: flex-start;padding-left: 10rpx;padding-bottom: 36rpx;position: relative;
  114. &::before{width: 2rpx;content: "";position: absolute;top: 44rpx;bottom: 14rpx;left: 26rpx;
  115. background: #DADADA;}
  116. .timel{width: 32rpx;height: 32rpx;margin-right: 20rpx;position: relative;flex: 0 0 auto;}
  117. .listr{flex:1;
  118. .listrt{line-height: 32rpx;font-size: 30rpx;font-weight: bold;color: #161616;margin-bottom: 16rpx;display: flex;align-items: center;
  119. .type{height: 30rpx;border-radius: 10rpx;margin-left: 20rpx;font-size: 24rpx;color: #FFFFFF;padding:2rpx 8rpx;
  120. &.bg1{background: #AABCE9;}
  121. &.bg2{background: #8CD5B3;}
  122. }
  123. }
  124. .listrx{padding: 6rpx 0;
  125. .ltit{flex:0 0 auto;font-size: 30rpx;color: #AAAAAA;}
  126. .ltxt{font-weight: 500;color: #161616;flex:1;font-size: 30rpx;}
  127. }
  128. }
  129. }
  130. &.act .timebox{display: block;}
  131. // &.quse_txt:last-child ul:before{display: none;}
  132. }
  133. </style>