dfjxx.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <view>
  3. <view class="boxt" v-for="(ite,idx) in sbfjlist" :key="idx">
  4. <view class="txt">
  5. <view class="flex01">{{ite.label}}</view>
  6. <!-- <view class="upimg" @click="getXzFn"><image :src="fupimg"></image></view> -->
  7. <!-- <view class="flex1"></view> -->
  8. <!-- <text class="txta" @click="getDown(ite.val)">在线查看</text> -->
  9. </view>
  10. <view class="mt18" v-if="declareFj&&declareFj[ite.val]&&declareFj[ite.val].length">
  11. <view class="fjlists" v-for="(fite,fidx) in declareFj[ite.val]" :key='fidx'>
  12. <view class="flext" @click="getDown(fite.url)">
  13. <view class="imgl"><image :src="filico" ></image></view>
  14. <view class="tit">{{fite.name}}</view>
  15. </view>
  16. <view class="upimg" @click="getXzFn(fite)"><image :src="fupimg"></image></view>
  17. <text class="txta" @click="getDown(fite.url)">预览</text>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- <view class="upbox" :class="zheList[0].zheflag?'':'act'" @click="getZheFn(i0dx)">
  22. <image :src="upimg"></image>
  23. <view>查看更多</view>
  24. </view> -->
  25. </view>
  26. </template>
  27. <script>
  28. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  29. import { selectValue } from '@/utils/common.js';
  30. import noData from "@/components/nodata/nodata.vue"
  31. export default {
  32. props:{
  33. datainfo: {
  34. type: Object,
  35. default () {
  36. return {}
  37. }
  38. },
  39. declareFj:{
  40. type: Object,
  41. default () {
  42. return {}
  43. }
  44. },
  45. sbfjlist:{
  46. type: Array,
  47. default () {
  48. return []
  49. }
  50. }
  51. },
  52. components:{
  53. noData
  54. },
  55. data(){
  56. return{
  57. upimg: require('@/work/static/images/up.png'),
  58. fupimg:require('@/work/static/images/fdown.png'),
  59. filico:require('@/work/static/images/filico.png'),
  60. gdfilelist:[{name:'123'}],
  61. zheList:[{zheflag:true}],
  62. }
  63. },
  64. onLoad: function() {
  65. },
  66. methods:{
  67. checkPermi, checkRole,
  68. kaType(ite){
  69. return selectValue(this.tajdlist, ite);
  70. },
  71. getZheFn(idx){
  72. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  73. },
  74. getDown(url){
  75. this.$emit('getDown',url)
  76. },
  77. getPreview(url){
  78. this.$emit('getPreview',url)
  79. },
  80. getXzFn(ite){
  81. this.$emit("getXzFn",ite)
  82. },
  83. },
  84. }
  85. </script>
  86. <style lang="scss" scoped>
  87. .boxt{padding:44rpx 36rpx 40rpx;border-top: 2rpx solid #E6E6E6;}
  88. .txt{display: flex;align-items: flex-start;
  89. view{font-weight: bold;font-size: 30rpx;color: #222327;}
  90. text{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;}
  91. }
  92. .upimg{width:40rpx;height: 40rpx;margin-left: 18rpx;display: flex;align-items: center;justify-content: center;
  93. image{width: 30rpx;height: 28rpx;}
  94. }
  95. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 20rpx;
  96. &:last-child{margin-bottom: 0;}
  97. // image{flex: 0 0 auto;}
  98. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  99. image{width: 26rpx;height: 24rpx;}
  100. }
  101. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
  102. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  103. image{width: 24rpx;height: 24rpx;}
  104. }
  105. .txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;}
  106. }
  107. .upbox{display: flex;flex-direction: column;align-items: center;padding: 56rpx 0 40rpx;border-top: 2rpx solid #E6E6E6;
  108. image{width: 30rpx;height: 26rpx;margin-bottom: 18rpx;transform: rotate(180deg);}
  109. view{font-weight: 500;font-size: 26rpx;color: #666666;}
  110. }
  111. </style>