1
0

HistorySp.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <div class="HistorySp">
  3. <div class="top-box">
  4. <div class="box-title">流程审批进度历史</div>
  5. <div class="box-content">
  6. <a-table size="small" :dataSource="dataSource" :columns="columns" :scroll="{ y: 730 }"
  7. :pagination="pagination"></a-table>
  8. </div>
  9. </div>
  10. <div class="bottom-box">
  11. <div class="box-title">实时流程图</div>
  12. <div class="box-content">
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script setup lang="ts">
  18. import { ref, reactive } from 'vue'
  19. import { columns } from '../HistorySp.data'
  20. //数据列表
  21. let dataSource = ref<any[]>([])
  22. //分页参数配置
  23. let pagination = reactive({
  24. current: 1, // 当前页码
  25. pageSize: 10, // 每页显示条数
  26. total: 0, // 总条目数,后端返回
  27. // showTotal: (total, range) => `${range[0]}-${range[1]} 条,总共 ${total} 条`, // 分页右下角显示信息
  28. showSizeChanger: true, // 是否可改变每页显示条数
  29. pageSizeOptions: ['10', '20', '50',], // 可选的每页显示条数
  30. })
  31. </script>
  32. <style lang="less" scoped>
  33. .HistorySp {
  34. position: relative;
  35. width: 100%;
  36. height: 100%;
  37. .top-box {
  38. width: 98%;
  39. height: 400px;
  40. margin: 15px auto;
  41. // background-color: rgba(255, 255, 255, 0.0666666667);
  42. box-shadow: 0 0 20px rgba(68, 180, 255, 0.2) inset;
  43. border-radius: 2px;
  44. border: 1px solid rgba(68, 211, 255, 0.4392156863) !important;
  45. padding: 10px;
  46. box-sizing: border-box;
  47. .box-content {
  48. height: calc(100% - 40px);
  49. }
  50. }
  51. .bottom-box {
  52. width: 98%;
  53. height: 200px;
  54. margin: 15px auto;
  55. // background-color: rgba(255, 255, 255, 0.0666666667);
  56. box-shadow: 0 0 20px rgba(68, 180, 255, 0.2) inset;
  57. border-radius: 2px;
  58. border: 1px solid rgba(68, 211, 255, 0.4392156863) !important;
  59. padding: 10px;
  60. box-sizing: border-box;
  61. .box-content {
  62. height: calc(100% - 40px);
  63. background: url('../../../../../assets/images/test1.png') no-repeat center;
  64. background-position: 320% 135%;
  65. }
  66. }
  67. .box-title {
  68. font-size: 14px;
  69. height: 40px;
  70. line-height: 40px;
  71. color: #fff;
  72. }
  73. }
  74. </style>