handleFile.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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" ></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 :column="column" :tableData="tableData" blUrl="/pages/information/information?url=/pages/handleFile/handleFile"></myTable>
  13. </scroll-view>
  14. </template>
  15. <script setup>
  16. import { ref } from 'vue';
  17. import { onLoad, onReady } from"@dcloudio/uni-app"
  18. import { ApiRequest } from "@/utils/request.js"
  19. const list = ref([
  20. {
  21. name: '待办',
  22. num: 2
  23. },
  24. {
  25. name: '已办'
  26. },
  27. {
  28. name: '办结',
  29. num: 6
  30. }
  31. ])
  32. const column = ref(["紧急程度", "公文种类", "标题", "发文字号", "主办处室", "是否已阅", "操作"])
  33. const tableData = ref([
  34. {
  35. "date": "不紧急",
  36. "name": "Dcloud1",
  37. "address": "上海市普陀区金沙江路 1518 弄",
  38. "fwzh": "1322",
  39. "zbcs": "政务处",
  40. "sfyy": "是"
  41. },
  42. {
  43. "date": "不紧急",
  44. "name": "Dcloud2",
  45. "address": "上海市普陀区金沙江路 1518 弄",
  46. "fwzh": "1322",
  47. "zbcs": "政务处",
  48. "sfyy": "是"
  49. }
  50. ])
  51. onLoad(()=>{
  52. console.log('onLoad获取页面传参');
  53. })
  54. </script>
  55. <style lang="scss" scoped>
  56. ::v-deep .uni-table-scroll{
  57. margin: 0 50rpx !important;
  58. width: calc(100vw - 100rpx) !important;
  59. }
  60. </style>