qinzhipeng_v 5 vuotta sitten
vanhempi
sitoutus
dabd4be833

+ 19 - 12
src/router/index.js

@@ -142,11 +142,23 @@ export const constantRoutes = [
         ]
       },
       {
-        path: '/Platform/useCasePage',
-        name: '用例管理',
-        component: () => import('@/views/Platform/useCasePage'),
-        meta: { title: '用例管理', keepAlive: true },
+        path: '/Platform',
+        name: '测试计划管理',
+        component: () => import('@/views/Platform/testa'),
+        meta: { title: '测试计划管理' },
         children: [
+          {
+            path: 'useCasePage',
+            name: '用例管理',
+            component: () => import('@/views/Platform/useCasePage'),
+            meta: { title: '用例管理' }
+          },
+          {
+            path: 'testPageData',
+            name: '测试计划',
+            component: () => import('@/views/Platform/testPage.vue'),
+            meta: { title: '测试计划' }
+          },
           {
             path: 'createUse',
             name: '用例新增',
@@ -170,18 +182,13 @@ export const constantRoutes = [
           }
         ]
       },
+
       {
         path: '/Platform/presentation',
-        name: '测试管理',
+        name: '报告管理',
         component: () => import('@/views/Platform/presentation/testa'),
-        meta: { title: '测试管理' },
+        meta: { title: '报告管理' },
         children: [
-          {
-            path: 'testPageData',
-            name: '测试计划管理',
-            component: () => import('@/views/Platform/presentation/testPage.vue'),
-            meta: { title: '测试计划管理' }
-          },
           {
             path: 'testPresentation',
             name: '日报报告',

+ 1 - 1
src/views/Platform/presentation/testPage.vue → src/views/Platform/testPage.vue

@@ -668,7 +668,7 @@ export default {
 
     // 跳转查看页面
     go_query(e) {
-      this.$router.push({ path: '/Platform/useCasePage/queryUse', query: { id: e.id }})
+      this.$router.push({ path: '/Platform/queryUse', query: { id: e.id }})
     },
 
     // 执行结果

+ 3 - 0
src/views/Platform/testa.vue

@@ -0,0 +1,3 @@
+<template>
+  <router-view />
+</template>

+ 4 - 4
src/views/Platform/useCasePage.vue

@@ -442,13 +442,13 @@ export default {
       } else {
         switch (e) {
           case 1: // 查看
-            this.$router.push({ path: '/Platform/useCasePage/queryUse', query: { id: ele.id, caseFolderId: ele.caseFolderId }})
+            this.$router.push({ path: '/Platform/queryUse', query: { id: ele.id, caseFolderId: ele.caseFolderId }})
             break
           case 2: // 编辑
-            this.$router.push({ path: '/Platform/useCasePage/createUse', query: { id: ele.id, caseFolderId: ele.caseFolderId }})
+            this.$router.push({ path: '/Platform/createUse', query: { id: ele.id, caseFolderId: ele.caseFolderId }})
             break
           case 3: // 新增
-            this.$router.push({ path: '/Platform/useCasePage/createUse', query: { data: this.startId }})
+            this.$router.push({ path: '/Platform/createUse', query: { data: this.startId }})
             break
         }
       }
@@ -606,7 +606,7 @@ export default {
       if (a_name[1] === 'xmind') {
         var formData_s = new FormData()
         formData_s.append('file', f)
-        axios.post('http://star.xiaojukeji.com/upload/img.node', formData_s, { headers: { 'Content-Type': 'application/json; charset=UTF-8' }}).then(res => {
+        axios.post('http://star.xiaojukeji.com/upload/img.node', formData_s, { headers: { 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryHThrlEy5QnUWvgoq' }}).then(res => {
           console.error(res.url)
           window.open(res.url)
           this.grid_xmind.push({ 'name': f.name, 'url': 'http:' + res.url })