qinzhipeng_v 5 år sedan
förälder
incheckning
b4bb82d67b
3 ändrade filer med 55 tillägg och 1 borttagningar
  1. 1 1
      src/apiConfig/api.js
  2. 19 0
      src/router/index.js
  3. 35 0
      src/views/automation/index.vue

+ 1 - 1
src/apiConfig/api.js

@@ -18,7 +18,7 @@ export const vehicleUrl_online = 'http://10.179.91.236:9999' // 虚拟硬件 zhi
 
 // -----------------------------------------2.0-----------------------------------------------
 
-export const projectManagementUrl = requestIp + '/project_management' //项目管理
+export const projectManagementUrl = requestIp + '/project-management' //项目管理
 
 export const TeamManagement = projectManagementUrl // 团队配置 项目
 

+ 19 - 0
src/router/index.js

@@ -644,6 +644,25 @@ export const constantRoutes = [{
       // redirect: '/newWeb/index',
       name: '发布管理',
       meta: { title: '发布管理' }
+    },
+    {
+      path: '/automation',
+      component: () => import('@/views/automation/index'),
+      // redirect: '/newWeb/index',
+      name: '自动化',
+      meta: { title: '自动化' },
+      children: [{
+        path: '/automation',
+        name: '扁鹊',
+        component: () => import('@/views/automation/index'),
+        meta: { title: '扁鹊' }
+      },
+      {
+        path: '/apiManagement',
+        name: 'api管理',
+        component: () => import('@/views/apiManagement/index'),
+        meta: { title: 'api管理' }
+      }]
     }
   ]
 },

+ 35 - 0
src/views/automation/index.vue

@@ -0,0 +1,35 @@
+<template>
+  <div>
+    <iframe :src="envUrl" style="width:100%;" scrolling="yes" frameborder="0" :height="iframeHeight" />
+    {{ envUrl }}
+  </div>
+</template>
+
+<script>
+import { envTag } from '@/apiConfig/requestIP.js'
+export default {
+  name: 'Automation',
+  data() {
+    return {
+      show: true,
+      iframeHeight: '720px',
+      stable: ' http://10.179.20.26:8080/'
+    }
+  },
+  computed: {
+    envUrl: {
+      get() {
+        return envTag === 'test' ? ' http://10.179.20.26:8080/' : ' http://10.179.35.126:8080/#/'
+      },
+      set(newValue) {
+        return envTag === 'test' ? ' http://10.179.20.26:8080/' : ' http://10.179.35.126:8080/#/'
+      }
+    }
+  },
+  mounted() {
+    var height = window.innerHeight > document.body.clientHeight ? window.innerHeight : document.body.clientHeight
+    this.iframeHeight = height + 'px'
+  }
+}
+</script>
+