export.vue 3.6 KB

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