Forráskód Böngészése

模型质量监控接口添加

haojianlong 5 éve
szülő
commit
6141c62007

+ 3 - 3
config/dev.env.js

@@ -4,11 +4,11 @@ const prodEnv = require('./prod.env')
 
 module.exports = merge(prodEnv, {
     NODE_ENV: '"development"',
-    BASE_URL: '"http://192.168.20.215"', //测试iframe地址
-    SSO_SERVER: '"http://192.168.20.235:8081"', //测试环境
+    BASE_URL: '"http://172.16.44.215"', //测试iframe地址
+    SSO_SERVER: '"http://172.16.44.235:8081"', //测试环境
     // BASE_URL: '"http://192.168.20.236"', //(新)测试iframe地址
     // SSO_SERVER: '"http://192.168.20.236:8086"', //(新)测试环境
-    MQTT_SERVICE: '"ws://192.168.20.225:61614/stomp/"' //MQ测试环境地址
+    MQTT_SERVICE: '"ws://172.16.42.210:61614/stomp/"' //MQ测试环境地址
     // SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境
     // BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
     // MQTT_SERVICE: '"ws://adm.sagacloud.cn/stomp/"' //MQ正式环境地址

+ 11 - 11
config/index.js

@@ -101,14 +101,14 @@ module.exports = {
 
     proxyTable: {
         '/admin': {
-            target: 'http://192.168.20.235:8080',
+            target: 'http://172.16.44.235:8080',
             changeOrigin: true,
             pathRewrite: {
                 "^/admin": "/"
             }
         },
         '/api': {
-            target: 'http://192.168.20.235:8080',
+            target: 'http://172.16.44.235:8080',
             changeOrigin: true,
             pathRewrite: {
                 "^/api": "/"
@@ -116,7 +116,7 @@ module.exports = {
         },
         '/data-platform-3': {
             // 目标 API 地址
-            target: 'http://192.168.20.225:8080/',
+            target: 'http://172.16.42.210:8080/',
             // 如果要代理 websockets
             ws: true,
             // 将主机标头的原点更改为目标URL
@@ -124,7 +124,7 @@ module.exports = {
         },
         '/business-space': {
             // 目标 API 地址
-            target: 'http://192.168.20.225:8080/',
+            target: 'http://172.16.42.210:8080/',
             // 如果要代理 websockets
             ws: true,
             // 将主机标头的原点更改为目标URL
@@ -132,7 +132,7 @@ module.exports = {
         },
         '/pointconfig': {
             // 目标 API 地址
-            target: 'http://192.168.20.236:8080/',
+            target: 'http://172.16.44.235:8080/',
             // 如果要代理 websockets
             ws: true,
             // 将主机标头的原点更改为目标URL
@@ -140,7 +140,7 @@ module.exports = {
         },
         '/venders-dp': {
             // 目标 API 地址
-            target: 'http://192.168.20.225:8080/',
+            target: 'http://172.16.42.210:8080/',
             // 如果要代理 websockets
             ws: true,
             // 将主机标头的原点更改为目标URL
@@ -148,7 +148,7 @@ module.exports = {
         },
         '/venders': {
             // 目标 API 地址
-            target: 'http://192.168.20.225:8080/',
+            target: 'http://172.16.42.210:8080/',
             // 如果要代理 websockets
             ws: true,
             // 将主机标头的原点更改为目标URL
@@ -156,7 +156,7 @@ module.exports = {
         },
         '/ScanBuilding': {
             // 目标 API 地址
-            target: 'http://192.168.20.236:8080/',
+            target: 'http://172.16.44.235:8080/',
             // 如果要代理 websockets
             ws: true,
             // 将主机标头的原点更改为目标URL
@@ -164,7 +164,7 @@ module.exports = {
         },
         '/image-service': {
             // 目标 API 地址
-            target: 'http://192.168.20.225:8080/',
+            target: 'http://172.16.42.210:8080/',
             // 如果要代理 websockets
             ws: true,
             // 将主机标头的原点更改为目标URL
@@ -172,14 +172,14 @@ module.exports = {
         },
         '/godhand': {
             // 目标 API 地址
-            target: 'http://192.168.20.225:8080/',
+            target: 'http://172.16.42.210:8080/',
             // 如果要代理 websockets
             ws: true,
             // 将主机标头的原点更改为目标URL
             changeOrigin: false
         },
         '/modelapi': {
-            target: 'http://192.168.20.225:8082',
+            target: 'http://172.16.43.94:8082',
             // target: 'http://192.168.20.218:8082',//景灏
             changeOrigin: true,
             pathRewrite: {

+ 6 - 0
src/api/model/file.js

@@ -323,4 +323,10 @@ export function countSyncLogCount(param, success) {
 export function querySyncLogCount(param, success) {
     let url = `${baseUrl}/sync-log/query`;
     httputils.postJson(url, param, success)
+}
+
+// 模型流程监控
+export function modelPathControl(param, success) {
+    let url = `${baseUrl}/model-monitor/query`;
+    httputils.postJson(url, param, success)
 }

+ 2 - 2
src/components/model/file/floorTable.vue

@@ -147,9 +147,9 @@ export default {
     },
     // 跳转至模型流程处理监控
     toPathControl(row) {
-      console.log(row)
       this.$router.push({
-        name: 'pathControl'
+        name: 'pathControl',
+        params: { Id: row.Id, Size: row.Size }
       })
     }
   },

+ 13 - 1
src/views/model/file/pathcontrol/index.vue

@@ -255,6 +255,7 @@
 import { mapGetters } from "vuex";
 import pathCard from "@/components/model/file/pathCard"
 import nodeDialog from "@/components/model/file/nodeDialog"
+import { modelPathControl } from "@/api/model/file";
 import Bus from '@/utils/bus.js'
 export default {
   components: {
@@ -267,9 +268,13 @@ export default {
   data() {
     return {
       loading: false, //
+      Id: '',
+      Size: 0
     }
   },
   mounted() {
+    this.Id = this.$route.query.Id
+    this.Size = this.$route.query.Size
     Bus.$on('messageListUpdate', message => {
       this.getMessage()
     })
@@ -280,7 +285,14 @@ export default {
       this.$refs.nodeDialog.showDialog()
     },
     // 获取流转状态
-    getMessage() { },
+    getMessage() {
+      let pa = {
+        Filters: `Id="${this.Id}"`
+      }
+      modelPathControl(pa, res => {
+        console.log(res)
+      })
+    },
     // 处理时间工具
     formatTime(time) {
       let str = '';