export.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view class="processWrapper ">
  3. <view class="ding">
  4. <calendar></calendar>
  5. </view>
  6. <block v-if="TabCur==0">
  7. <view class="processList" >
  8. <view class="cu-list menu-avatar">
  9. <view class="cu-item" v-for="(item,index) in unporcessList" :key="index">
  10. <view class="cu-avatar lg" style="background-image:url(../../static/process-icon.png);"></view>
  11. <view class="content">
  12. <view class="pro-title">
  13. <view class="cut">{{item.title}}</view>
  14. </view>
  15. <view class="pro-des ">
  16. <view class="text-cut">
  17. {{item.des}}
  18. </view>
  19. </view>
  20. <view class="pro-date ">{{item.time}}</view>
  21. </view>
  22. <view class="action" style="z-index:99">
  23. <view class="unProcess" v-if="type==1" >未处理</view>
  24. <view class="unProcess" v-else>未处理</view>
  25. </view>
  26. </view>
  27. <view class=" text-center margin-top" v-if="unporcessList.length === 0">暂无数据...</view>
  28. </view>
  29. </view>
  30. </block>
  31. <view class="padding-lr padding-bottom-lg" style="position:fixed;bottom:0;width:100%">
  32. <view class="btn-area">
  33. <button class="bg-blue round missReport margin-top" @tap="showModal" data-target="DialogModal" >导 出 </button>
  34. </view>
  35. </view>
  36. <!-- 弹框 -->
  37. <view class="cu-modal" :class="modalName=='DialogModal'?'show':''">
  38. <view class="cu-dialog">
  39. <view class="cu-bar bg-white justify-end">
  40. <view class="action" @tap="hideModal">
  41. <text class="cuIcon-close"></text>
  42. </view>
  43. </view>
  44. <view class="padding-sm bg-white">
  45. <image src="../../static/ok.png" style="width:100rpx;height:100rpx"></image>
  46. <view style="margin:20rpx 0">已导出文件,是否打开?</view>
  47. </view>
  48. <view class="cu-bar bg-white" style="min-height: 100rpx;">
  49. <view class="action margin-0 flex-sub " @tap="hideModal">
  50. 另存为</view>
  51. <view class="action margin-0 flex-sub solid-left text-blue" @tap="hideModal">打开</view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. import json from '../../data/json.js';
  59. export default {
  60. data() {
  61. return {
  62. unporcessList: json.unprocessList,
  63. porcessedList: json.processedList,
  64. type: '0',
  65. modalName: null,
  66. listTouchStart: 0,
  67. listTouchDirection: null,
  68. CustomBar: this.CustomBar,
  69. TabCur: 0,
  70. tabNav: ['未处理', '已处理'],
  71. CustomBar: this.CustomBar,
  72. modalName: null,
  73. };
  74. },
  75. onLoad: function(option) {
  76. },
  77. onNavigationBarButtonTap(e) {
  78. console.log(e)
  79. uni.navigateTo({
  80. url: '/pages/export/export',
  81. success: res => {},
  82. fail: () => {},
  83. complete: () => {}
  84. });
  85. },
  86. methods: {
  87. showModal(e) {
  88. this.modalName = e.currentTarget.dataset.target
  89. },
  90. hideModal(e) {
  91. this.modalName = null
  92. },
  93. // exportData(){
  94. // uni.showModal({
  95. // title: '提示',
  96. // content: '已导出文件是否打开?',
  97. // success: function (res) {
  98. // if (res.confirm) {
  99. // console.log('用户点击确定');
  100. // } else if (res.cancel) {
  101. // console.log('用户点击取消');
  102. // }
  103. // }
  104. // });
  105. // },
  106. InputFocus(e) {
  107. this.InputBottom = e.detail.height
  108. },
  109. InputBlur(e) {
  110. this.InputBottom = 0
  111. },
  112. tabSelect(e) {
  113. console.log(e.currentTarget);
  114. this.TabCur = e.currentTarget.dataset.id;
  115. this.scrollLeft = (e.currentTarget.dataset.id - 1) * 60;
  116. },
  117. }
  118. }
  119. </script>
  120. <style lang="scss">
  121. </style>