whj 10 months ago
parent
commit
7941312f8d

+ 3 - 3
src/views/sb-position/SbPositionImg.vue

@@ -59,10 +59,10 @@ export default {
       })
     },
     handleView (workshop) {
-      if (!workshop.existPosition) {
-        this.$message.warning('该仓库不存在库位!')
+      if (workshop.existPosition) {
+        this.$message.warning('该车间不存在电子地图!')
       } else if (!workshop.opcImg) {
-        this.$message.warning('该仓库未上传底图!')
+        this.$message.warning('该车间未上传底图!')
       } else {
         querySbInfo({ positionId: workshop.id }).then(res => {
           this.visible = false

+ 2 - 2
src/views/sb-position/modules/PointModal.vue

@@ -2,9 +2,9 @@
   <div v-show="visible">
     <div class="btn">
       <a-space>
-        <a-button @click="handleView">
+        <!-- <a-button @click="handleView">
           设备信息
-        </a-button>
+        </a-button> -->
         <a-button type="primary" @click="handleCancel">返回</a-button>
       </a-space>
     </div>

+ 3 - 3
vue.config.js

@@ -104,7 +104,7 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://localhost:5000',
+        target: 'http://localhost:5001',
         ws: false,
         changeOrigin: true,
         pathRewrite: {
@@ -112,12 +112,12 @@ const vueConfig = {
         }
       },
       '/files': {
-        target: 'http://localhost:5000',
+        target: 'http://localhost:5001',
         ws: false,
         changeOrigin: true
       },
       '/websocket': {
-        target: 'ws://localhost:5000',
+        target: 'ws://localhost:5001',
         ws: true,
         changeOrigin: false,
         logLevel: 'debug',