caojunjie 3 lat temu
rodzic
commit
302fe3383a
4 zmienionych plików z 265 dodań i 123 usunięć
  1. 237 113
      public/view.js
  2. 8 1
      src/views/appVersion/version/index.vue
  3. 18 7
      src/views/index.vue
  4. 2 2
      vue.config.js

Plik diff jest za duży
+ 237 - 113
public/view.js


+ 8 - 1
src/views/appVersion/version/index.vue

@@ -166,6 +166,7 @@
 <script>
 import { listVersion, getVersion, delVersion, addVersion, updateVersion, exportVersion } from "@/api/appVersion/version";
 import {getToken} from "@/utils/auth";
+import {currentLogin} from "@/api/warehouseCheck";
 
 export default {
   name: "Version",
@@ -329,7 +330,13 @@ export default {
     },
     smartScreen(){
       // window.open( process.env.VUE_APP_BASE_API.length - 10 + '/view.html?Authorization=' + getToken())
-      window.open( 'https://test.wms.tubaosoft.com/view.html?Authorization=' + getToken())
+      currentLogin().then(res=>{
+        if (res.data.userName === 'admin'){
+          window.open( 'https://op.zdgjqd.com/view.html?Authorization=' + getToken())
+        }else {
+          this.$message.warning('您无此权限查看面板');
+        }
+      })
     },
   }
 };

+ 18 - 7
src/views/index.vue

@@ -49,22 +49,22 @@
                 <p>货转</p>
               </div>
             </li>
-            <li @click="jump('/agreement/agreementStorage')">
+            <li @click="jump('/business/stockTransfer')">
               <div>
                 <i
-                  class="el-icon-s-order"
+                  class="el-icon-connection"
                   style="font-size: 50px; text-align: center"
                 ></i>
-                <p>协议</p>
+                <p>调拨</p>
               </div>
             </li>
-            <li @click="jump('/business/stockTransfer')">
+            <li @click="smartScreen()">
               <div>
                 <i
-                  class="el-icon-connection"
-                  style="font-size: 50px; text-align: center"
+                    class="el-icon-s-order"
+                    style="font-size: 50px; text-align: center"
                 ></i>
-                <p>调拨</p>
+                <p>看板</p>
               </div>
             </li>
             <li @click="jump('/finance/charge')">
@@ -852,6 +852,8 @@ import {
 import Cookies from "js-cookie";
 import fastInStock from '../../src/components/fastStorage/fastInStock/index'
 import fastOutStock from '../../src/components/fastStorage/fastOutStock/index'
+import {getToken} from "@/utils/auth";
+import {currentLogin} from "@/api/warehouseCheck";
 
 export default {
   name: "index",
@@ -1656,6 +1658,15 @@ export default {
         ],
       });
     },
+    smartScreen(){
+      currentLogin().then(res=>{
+        if (res.data.userName === 'admin'){
+          window.open( 'https://op.zdgjqd.com/view.html?Authorization=' + getToken())
+        }else {
+          this.$message.warning('您无此权限查看面板');
+        }
+      })
+    },
     commoDity() {
       // 基于准备好的dom,初始化echarts实例,所以只能在mounted中调用
       let myChart = this.$echarts.init(document.getElementById("commoDity"));

+ 2 - 2
vue.config.js

@@ -41,12 +41,12 @@ module.exports = {
         // target: `http://192.168.1.116:9010/`,
         // target: `http://192.168.1.197:9010/`,
         // target: `https://test.fms.tubaosoft.com/prod-api/`,
-        target: `https://test.wms.tubaosoft.com/prod-api/`,
+        // target: `https://test.wms.tubaosoft.com/prod-api/`,
         // target: `https://test.tms.tubaosoft.com/prod-api/`,
         // target: `https://test.ke.tubaosoft.com/prod-api/`,
         // target: `http://lhsy.tubaosoft.com/prod-api/`,
 
-        // target: `https://op.zdgjqd.com/prod-api/`,
+        target: `https://op.zdgjqd.com/prod-api/`,
         // target: `https://jianqiao.tubaosoft.com/prod-api/`,
         // target: `https://jiyong.tubaosoft.com/prod-api/`,
         // target: `https://dmu.tubaosoft.com/prod-api/`,

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików