瀏覽代碼

弹出框逻辑处理

shiy 2 年之前
父節點
當前提交
4c281abb78
共有 1 個文件被更改,包括 9 次插入8 次删除
  1. 9 8
      src/views/material/basicFile/details.vue

+ 9 - 8
src/views/material/basicFile/details.vue

@@ -1365,14 +1365,15 @@
               type: 'warning'
             });
           }
-        }
-        if (this.otherDeatils.queryKey) {
-          this.otherDeatils.show = true;
-          this.otherDeatils.isEdit = true;
-          let activeTab = this.detailsTabs.filter(item => item.code == this.activeMainTab)[0];
-          this.otherDeatils.title = activeTab.label;
-          // 查询其他标签页列表详情
-          this.getOtherListDetails(activeTab.code, this.otherDeatils.queryKey);
+        } else if ('form' === type) {
+          if (this.otherDeatils.queryKey) {
+            this.otherDeatils.show = true;
+            this.otherDeatils.isEdit = true;
+            let activeTab = this.detailsTabs.filter(item => item.code == this.activeMainTab)[0];
+            this.otherDeatils.title = activeTab.label;
+            // 查询其他标签页列表详情
+            this.getOtherListDetails(activeTab.code, this.otherDeatils.queryKey);
+          }
         }
       },
       // 其他标签详情弹窗-刷新