About.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <div class="about">
  3. <h1 @click="showDialog">This is an about page</h1>
  4. <HealthReport
  5. :show="show"
  6. :params="{ wtId: 'QG01_11', recorddate: '2021-06-19' }"
  7. @closed="
  8. (res) => {
  9. this.show = false;
  10. }
  11. "
  12. />
  13. <div class="fjBox1">
  14. <!-- 风机 SVG 使用方法 -->
  15. <FJ id="fj-1" speed="5s" color="red" width="43px" height="46px" />
  16. <FJ :speed="0.1" color="#1890ff" width="200px" height="210px" />
  17. <FJ id="fj-3" speed="2s" width="80px" height="82px" />
  18. <FJ />
  19. <FJ :speed="1" />
  20. <clock style="display: inline-block" />
  21. </div>
  22. <el-table
  23. :data="tableData"
  24. :span-method="arraySpanMethod"
  25. border
  26. style="width: 100%"
  27. >
  28. <el-table-column prop="name" label="部件"> </el-table-column>
  29. <el-table-column
  30. prop="amount1"
  31. sortable
  32. label="隐患类新"
  33. ></el-table-column>
  34. <el-table-column prop="amount2" sortable label="频次1"></el-table-column>
  35. <el-table-column prop="amount2" sortable label="频次2"></el-table-column>
  36. <el-table-column prop="amount2" sortable label="频次3"></el-table-column>
  37. <el-table-column prop="amount2" sortable label="频次4"></el-table-column>
  38. </el-table>
  39. <!-- <list-bar-chart /> -->
  40. </div>
  41. </template>
  42. <script>
  43. // import ListBarChart from "../components/chart/bar/list-bar-chart.vue";
  44. import HealthReport from "@com/other/healthReport/index.vue";
  45. import FJ from "@com/other/fj/index.vue";
  46. import clock from "@com/other/clock/index.vue";
  47. // 导入header.vue文件
  48. export default {
  49. data() {
  50. return {
  51. show: true,
  52. tableData: [],
  53. };
  54. },
  55. components: {
  56. // ListBarChart,
  57. HealthReport,
  58. FJ,
  59. clock,
  60. },
  61. created() {
  62. let tableData = [];
  63. let item = {
  64. id: "12987122",
  65. name: "王小虎",
  66. amount1: "234",
  67. amount2: "3.2",
  68. amount3: 10,
  69. };
  70. for (let i = 0; i < 100; i++) {
  71. tableData.push(item);
  72. }
  73. this.tableData = tableData;
  74. },
  75. methods: {
  76. showDialog() {
  77. this.show = true;
  78. },
  79. arraySpanMethod({ row, column, rowIndex, columnIndex }) {
  80. if (!rowIndex && !columnIndex) {
  81. return [1, 3];
  82. } else if (rowIndex === 5 && !columnIndex) {
  83. return [10, 1];
  84. }
  85. },
  86. },
  87. };
  88. </script>
  89. <style lang="less" scoped>
  90. .fjBox {
  91. display: flex;
  92. justify-content: start;
  93. align-items: center;
  94. flex-wrap: wrap;
  95. }
  96. </style>