박정하 박정하 03-07
250307 박정하 데이터 활용 탭 수정
@d3d9d7001510c9e22bdf7637c8e71a799f0636d2
client/views/pages/custom/InsertDataAnalytics.vue
--- client/views/pages/custom/InsertDataAnalytics.vue
+++ client/views/pages/custom/InsertDataAnalytics.vue
@@ -682,6 +682,13 @@
 
         if (this.currentLayout.useSj) {
           this.currentLayout.component = null; // 컴포넌트 초기화
+
+          // 현재 레이아웃에 따른 레이아웃 탭 옵션
+          this.optionList = [
+            { id: "LAYOUT", name: "레이아웃", useAt: true },
+            { id: "TITLE", name: "타이틀", useAt: this.currentLayout.children.length == 0 },
+            { id: "COMPONENT", name: "컴포넌트", useAt: !this.$isEmpty(this.currentLayout.component) },
+          ];
         } else {
           this.currentLayout.layoutSj = _.cloneDeep(this.$getDefaultObject().layoutSj); // 타이틀 초기화
         }
@@ -747,7 +754,6 @@
 
     // 레이아웃 선택
     fnSelectLayout(layout) {
-
       // 현재 레이아웃 변경
       this.currentLayout = layout;
 
Add a comment
List