Blame view

frontend/front/src/components/querySql/QuerySqlPreview.vue 886 Bytes
8d73e917   陈威   初始化提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<template>
  <ht-query-sql-preview :view-id="viewId"></ht-query-sql-preview>
</template>

<script>
  export default {
    name: 'QuerySqlPreview',
    props: {
      sqlViewId: {
        type: String,
        default: '',
      },
    },
    data() {
      return {
        viewId: this.sqlViewId,
      }
    },
    created() {
      if (!this.viewId && this.$route.meta.sqlViewId) {
        this.viewId = this.$route.meta.sqlViewId
      }
    },
    mounted() {},
  }
</script>

<style lang="scss">
  .summary-table {
    margin: 10px 24px 24px 24px;
    .project-column {
      .cell {
        font-size: 16px;
        color: #333;
        font-weight: bold;
      }
    }
    .summary-num {
      .summary-table-field {
        font-size: 18px;
        color: #4ba232;
        font-weight: bold;
      }
    }
  }
  .custom-summary {
    padding: 10px 24px 24px 24px;
  }
</style>