Selaa lähdekoodia

显示界面发生改变的时候,重新执行显示逻辑

YangZhiJie 2 vuotta sitten
vanhempi
sitoutus
360990099d
2 muutettua tiedostoa jossa 30 lisäystä ja 1 poistoa
  1. 15 1
      src/window/tabFormView/TabFormEdit.vue
  2. 15 0
      src/window/tabFormView/TabFormView.vue

+ 15 - 1
src/window/tabFormView/TabFormEdit.vue

@@ -454,7 +454,7 @@ export default {
       handler(curVal, oldVal) {
         var _self = this;
         this.tabButtonsShowLogical();
-        // this.reportViewsShowLogical();
+        this.reportViewsShowLogical();
         if (_self.autoSaveInterval != null) {
           clearInterval(_self.autoSaveInterval);
           _self.autoSaveInterval = null;
@@ -464,6 +464,13 @@ export default {
         }
       },
     },
+
+    /**
+     * 显示界面发生改变的时候,重新执行显示逻辑
+     */
+    windowDisplayType: function(newValue, oldValue){
+      this.tabButtonsShowLogical();
+    }
   },
 
   beforeCreate: function () {
@@ -1076,6 +1083,13 @@ export default {
      */
     reportViewsShowLogical: function () {
       var _self = this;
+      
+      if(_self.windowDisplayType != 'Report'){
+        // add by jack 2023-12-05
+        // 如果不处于报表界面,那么不执行下述业务逻辑
+        return;
+      }
+
       if (
         _self.window.reportViewDto != null &&
           _self.window.reportViewDto.reportViewItemDtos != null

+ 15 - 0
src/window/tabFormView/TabFormView.vue

@@ -641,6 +641,13 @@ export default {
         this.reportViewsShowLogical();
       },
     },
+
+    /**
+     * 显示界面发生改变的时候,重新执行显示逻辑
+     */
+    windowDisplayType: function(newValue, oldValue){
+      this.tabButtonsShowLogical();
+    }
   },
 
   mounted: function () {
@@ -1904,6 +1911,14 @@ export default {
      */
     reportViewsShowLogical: function () {
       var _self = this;
+
+      if(_self.windowDisplayType != 'Report'){
+        // add by jack 2023-12-05
+        // 如果不处于报表界面,那么不执行下述业务逻辑
+        return;
+      }
+
+
       if (
         _self.window.reportViewDto != null &&
           _self.window.reportViewDto.reportViewItemDtos != null