PipeWarn.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <div class="warnTarget">
  3. <div class="top-section">
  4. <a-table :columns="columns" :data-source="tableData" bordered :pagination="false">
  5. <template #bodyCell="{ column, text }">
  6. <template v-if="column.dataIndex === 'name'">
  7. <a href="javascript:;">{{ text }}</a>
  8. </template>
  9. </template>
  10. </a-table>
  11. </div>
  12. <div class="bottom-section"></div>
  13. </div>
  14. </template>
  15. <script setup lang="ts">
  16. import { ref, reactive } from 'vue';
  17. let columns = reactive([
  18. {
  19. title: '序号',
  20. width: 60,
  21. align: 'center',
  22. },
  23. {
  24. title: '一级指标',
  25. dataIndex: 'one',
  26. align: 'center',
  27. },
  28. {
  29. title: '二级指标',
  30. dataIndex: 'two',
  31. align: 'center',
  32. },
  33. {
  34. title: '三级指标',
  35. align: 'center',
  36. dataIndex: 'three',
  37. },
  38. {
  39. title: '低风险',
  40. dataIndex: 'warnLow',
  41. align: 'center',
  42. },
  43. {
  44. title: '一般风险',
  45. dataIndex: 'warnCen',
  46. align: 'center',
  47. },
  48. {
  49. title: '较高风险',
  50. dataIndex: 'warnJg',
  51. align: 'center',
  52. },
  53. {
  54. title: '高风险',
  55. dataIndex: 'warnHign',
  56. align: 'center',
  57. },
  58. ]);
  59. </script>
  60. <style lang="less" scoped>
  61. .warnTarget {
  62. width: 100%;
  63. height: 100%;
  64. padding: 20px;
  65. box-sizing: border-box;
  66. display: flex;
  67. flex-direction: column;
  68. }
  69. .top-section,
  70. .bottom-section {
  71. flex: 1;
  72. min-height: 0;
  73. }
  74. .bottom-section {
  75. overflow: hidden;
  76. }
  77. </style>