Screen Recording 2022-03-28 at 2.40.40 PM.mov

탭 추가하기

autoload: 1 에 따라 1번째 탭을 기본 선택합니다. (없으면 기본 선택 안함)

- path: properties/active
  blocks:
  - type: query
    resource: mysql.qa
    sqlType: select
    sql: >
      SELECT * 
      FROM properties
      WHERE id = :id 
      ORDER BY id ASC 
      LIMIT 100
    display: col-2
    params:
    - key: id
      label: 업체번호
    ***tabOptions:
      autoload: 1
      height: 400
      tabs:
      - name: 문자발송내역
      - name: 예약***

Screen Shot 2022-04-01 at 6.52.28 PM.png

탭 내용 추가

동일하게 쿼리 블록 내용을 추가합니다.

- path: properties/active
  blocks:
  - type: query
    resource: mysql.qa
    sqlType: select
    sql: >
      SELECT * 
      FROM properties
      WHERE id = :id 
      ORDER BY id ASC 
      LIMIT 100
    display: col-2
    params:
    - key: id
      label: 업체번호
    tabOptions:
      autoload: 1
      height: 400
      tabs:
      - name: 문자발송내역
        ***blocks:
        - type: query
          resource: mysql.qa
          sqlType: select
          sql: SELECT * FROM sms_log WHERE workspace_id = :id LIMIT 100***
      - name: 예약

Screen Shot 2022-04-01 at 6.55.28 PM.png

https://embed.notionlytics.com/wt/ZXlKd1lXZGxTV1FpT2lJeE16YzFOakk0TkRZNU1tTTBZamsyWVdGa1ltTmlNRFl5TmpKa01XRmxZeUlzSW5kdmNtdHpjR0ZqWlZSeVlXTnJaWEpKWkNJNkluTjBTMFZXVUV0aE9FUkRibUY1TkRSUmVGVTJJbjA9