export.vue 3.7 KB

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