Bladeren bron

在线文档-OA逻辑修改

fan 2 jaren geleden
bovenliggende
commit
5cb4e63d17
1 gewijzigde bestanden met toevoegingen van 15 en 0 verwijderingen
  1. 15 0
      src/pages/main/onlineExcel/index.vue

+ 15 - 0
src/pages/main/onlineExcel/index.vue

@@ -724,11 +724,26 @@ export default {
             this.menuStatus = true;
             this.loading = false;
         },
+        getUrlKey(name) {
+            return (
+                decodeURIComponent(
+                    (new RegExp("[?|&]" + name + "=" + "([^&;]+?)(&|#|;|$)").exec(
+                        location.href
+                    ) || [, ""])[1].replace(/\+/g, "%20")
+                ) || null
+            );
+        },
     },
     mounted() {
         this.woNo = this.$route.query.woNo
         if (this.woNo != null) {
             this.processWoNo();
+        } else {
+            this.woNo = this.getUrlKey("id")//获取地址栏参数
+            console.log(this.woNo);
+            if (this.woNo != null) {
+                this.processWoNo();
+            }
         }
         this.getList({}, 1);
         this.getTreeData();