handleMeeting.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <scroll-view style="flex:1">
  3. <view class="tableTop">
  4. <u-subsection bg-color="rgb(215,224,233)" button-color="rgb(0,99,208)" active-color="white" :list="list" @change="subChange"></u-subsection>
  5. <view class="operation">
  6. <uni-easyinput placeholder="请输入编号"></uni-easyinput>
  7. <u-button type="primary" size="medium" ripple>查询</u-button>
  8. <u-button size="medium" ripple>刷新</u-button>
  9. </view>
  10. </view>
  11. <u-line length="95%" margin="auto" color="#000"/>
  12. <myTable
  13. :column="column"
  14. :tableData="tableData"
  15. :pageCurrent="pageCurrent"
  16. :pageSize="pageSize"
  17. :total="total"
  18. blUrl="/pages/information/information?url=/pages/handleMeeting/handleMeeting"
  19. ></myTable>
  20. </scroll-view>
  21. </template>
  22. <script setup>
  23. import { ref } from 'vue';
  24. import { onReady } from"@dcloudio/uni-app"
  25. import { ApiRequest } from "@/utils/request.js"
  26. const list = ref([{name: '待办'}, {name: '已办'}, {name: '办结'}])
  27. const currentUrl = ref('/g2work/routeinfo/queryDataTodoWithPage')
  28. const pageCurrent = ref(1)
  29. const pageSize = ref(15)
  30. const total = ref(0)
  31. const column = ref(["紧急程度", "流程名称", "编号", "承办部门", "标题", "会议室", "参会人数", "当前节点", "接收时间", "操作"])
  32. const tableData = ref([])
  33. //切换页签
  34. function subChange(e){
  35. pageCurrent.value = 1 //重置当前页码
  36. switch (e){
  37. case 0: //待办
  38. currentUrl.value = '/g2work/routeinfo/queryDataTodoWithPage'
  39. getTableList('/g2work/routeinfo/queryDataTodoWithPage')
  40. break;
  41. case 1: //已办
  42. currentUrl.value = '/g2work/routeinfo/queryDataDoneWithPage'
  43. getTableList('/g2work/routeinfo/queryDataDoneWithPage')
  44. break;
  45. case 2: //办结
  46. currentUrl.value = '/g2work/routeinfo/queryDataFinishWithPage'
  47. getTableList('/g2work/routeinfo/queryDataFinishWithPage')
  48. break;
  49. }
  50. }
  51. function getTableList(url, pageno){
  52. ApiRequest({
  53. url: url,
  54. method: 'POST',
  55. data:{
  56. pageno: pageno || pageCurrent.value,
  57. pagesize: pageSize.value,
  58. userid: uni.getStorageSync('GlWorkPlatform-userid'),
  59. querycondition: "[]",
  60. ordercondition: "",
  61. flowid: "AA20|AA03|AA10|AA55|AA56|AA57|AA08|AA23|AA77|AA06"
  62. }
  63. }).then(res=>{
  64. if(res.code === 0 && res.success){
  65. tableData.value = res.data.map(item=>{
  66. return {
  67. 'FW_WFH.JJCDCAPTION': item['FW_WFH.JJCDCAPTION'],
  68. 'FLOWNAME': item['FLOWNAME'],
  69. 'FW_WFH.BT': item['FW_WFH.BT'],
  70. 'FW_WFH.FWZH': item['FW_WFH.FWZH'],
  71. 'FW_WFH.ZS': item['FW_WFH.ZS'],
  72. 'FW_WFH.SFXYJDCAPTION': item['FW_WFH.SFXYJDCAPTION']
  73. }
  74. })
  75. total.value = res.meta.totalCount
  76. }
  77. })
  78. }
  79. //更改页码
  80. function pageChange(val){
  81. pageCurrent.value = val
  82. getTableList(currentUrl.value, val)
  83. }
  84. onReady(()=>{
  85. getTableList('/g2work/routeinfo/queryDataTodoWithPage')
  86. })
  87. </script>
  88. <style lang="scss" scoped>
  89. ::v-deep .uni-table-scroll{
  90. margin: 0 50rpx !important;
  91. width: calc(100vw - 100rpx) !important;
  92. }
  93. </style>