From 30e36368e54581fcc0c581a004f1f68873c1e819 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期二, 10 五月 2022 08:37:34 +0800
Subject: [PATCH] 地图

---
 src/views/layout/components/Navbar.vue |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue
index 870bb71..2343d63 100644
--- a/src/views/layout/components/Navbar.vue
+++ b/src/views/layout/components/Navbar.vue
@@ -37,7 +37,7 @@
     <el-dialog :visible.sync="appDialogVisible"
                :modal-append-to-body="false" :close-on-click-modal="false"
                width="320px"
-    title="监管APP安卓版浏览器扫码下载">
+    title="APP安卓版浏览器扫码下载">
         <div id="appcode" style="height: 200px;width: 200px"/>
     </el-dialog>
   </div>
@@ -79,6 +79,7 @@
   },
   data() {
     return {
+      prefixUrl:process.env.IMG_API,
       warnBJList: [],
       warnBJVisible: false,
       pageSize: 10,
@@ -124,20 +125,20 @@
   methods: {
      getAppCode(){
          const roles = this.roles
-         for (let role in roles){
-             if(roles[role].name == '生产企业' ||
-                 roles[role].name == '销售企业'){
-                 this.appShow = false;
-             }
-         }
+         // for (let role in roles){
+         //     if(roles[role].name == '生产企业' ||
+         //         roles[role].name == '销售企业'){
+         //         this.appShow = false;
+         //     }
+         // }
          const _this = this
          const params = {}
-         params['filetype'] = "监管"
+         params['filetype'] = "众泰APP"
          newAppFile(params).then(response => {
              const res = response.data;
              if (res.code == 200) {
                  const result = res.result;
-                 _this.appCode = result.fileurl
+                 _this.appCode = this.prefixUrl + result.fileurl
              }
          }).catch(error => {
          })

--
Gitblit v1.9.2