fileTransmitList.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="file_list_page">
  3. <view class="list_search card_banner flex">
  4. <uni-data-select class="list_search_select" v-model="value" :localdata="range" @change="change"
  5. placeholder="发文部门"></uni-data-select>
  6. <uni-datetime-picker class="list_search_date" v-model="time" type="daterange" @maskClick="maskClick" />
  7. <u-icon class="list_search_icon" name="search" color="#fff" size="28"></u-icon>
  8. </view>
  9. <view class="list_content" >
  10. <u-cell-group>
  11. <u-cell v-for="item in dataList" >
  12. <view slot="title" >
  13. <view class="text-bold text-black">
  14. <view class="ellipsis-description">
  15. {{item.contentSummary}}
  16. </view>
  17. </view>
  18. </view>
  19. <view slot="value">
  20. <view class="text-grey text-sm list_label margin-top">
  21. {{item.receivingTime}}
  22. </view>
  23. </view>
  24. <view slot="label">
  25. <view class="text-grey text-sm margin-top">
  26. {{item.sendingAgency}}
  27. </view>
  28. </view>
  29. </u-cell>
  30. </u-cell-group>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. import gwCirculationCard2Service from '@/api/circulation/gwCirculationCard2.js'
  36. export default {
  37. onLoad(option) {
  38. if(option){
  39. this.type = option.type
  40. gwCirculationCard2Service.list({
  41. }).then(data =>{
  42. console.log("list=============",data);
  43. this.dataList = data.records
  44. })
  45. }
  46. },
  47. data() {
  48. return {
  49. type:"",
  50. time:"",
  51. value:"",
  52. range: [{
  53. value: 0,
  54. text: "篮球"
  55. },
  56. {
  57. value: 1,
  58. text: "足球"
  59. },
  60. {
  61. value: 2,
  62. text: "游泳"
  63. },
  64. ],
  65. dataList: [],
  66. tablePage: {
  67. pages: 0,
  68. currentPage: 0,
  69. pageSize: 10,
  70. orders: [{ column: "a.create_time", asc: false }],
  71. },
  72. loading: false,
  73. }
  74. },
  75. methods:{
  76. }
  77. }
  78. </script>
  79. <style>
  80. .card_banner {
  81. width: 100%;
  82. height: 60px;
  83. background-color: #36a7f3;
  84. }
  85. .list_search_icon {
  86. line-height: 60px;
  87. }
  88. .list_search_select {
  89. width: 200px;
  90. background-color: #fff;
  91. height: 30px;
  92. border-radius: 10px;
  93. margin: 15px 5px 0;
  94. }
  95. .list_search_date {
  96. margin: 8px 5px 0;
  97. }
  98. .list_content {
  99. background-color: #fff;
  100. }
  101. .list_label {
  102. margin-top: 33px;
  103. }
  104. </style>