Browse Source

远程计划

李富豪 1 year ago
parent
commit
6bec29ba29
2 changed files with 6 additions and 22 deletions
  1. 5 4
      Web/src/pages/page-web/projects/wayline.vue
  2. 1 18
      Web/src/router/index.ts

+ 5 - 4
Web/src/pages/page-web/projects/wayline.vue

@@ -4,15 +4,16 @@
       <div style="height: 50px; line-height: 50px; border-bottom: 1px solid #4f4f4f; font-weight: 450;">
       <div style="height: 50px; line-height: 50px; border-bottom: 1px solid #4f4f4f; font-weight: 450;">
         <a-row>
         <a-row>
           <a-col :span="1"></a-col>
           <a-col :span="1"></a-col>
-          <a-col :span="15">Flight Route Library</a-col>
+          <a-col :span="14">Flight Route Library</a-col>
           <a-col :span="8" v-if="importVisible" class="flex-row flex-justify-end flex-align-center">
           <a-col :span="8" v-if="importVisible" class="flex-row flex-justify-end flex-align-center">
             <a-upload name="file" :multiple="false" :before-upload="beforeUpload" :show-upload-list="false"
             <a-upload name="file" :multiple="false" :before-upload="beforeUpload" :show-upload-list="false"
               :customRequest="uploadFile">
               :customRequest="uploadFile">
-              <a-button type="text" style="color: white;">
-                <SelectOutlined />
+              <a-button type="primary">
+                上传
               </a-button>
               </a-button>
             </a-upload>
             </a-upload>
           </a-col>
           </a-col>
+          <a-col :span="1"></a-col>
         </a-row>
         </a-row>
       </div>
       </div>
       <div :style="{ height: height + 'px' }" class="scrollbar">
       <div :style="{ height: height + 'px' }" class="scrollbar">
@@ -116,7 +117,7 @@ const root = getRoot()
 const deleteTip = ref(false)
 const deleteTip = ref(false)
 const deleteWaylineId = ref<string>('')
 const deleteWaylineId = ref<string>('')
 const canRefresh = ref(true)
 const canRefresh = ref(true)
-const importVisible = ref<boolean>(root.$router.currentRoute.value.name === ERouterName.WAYLINE)
+const importVisible = ref<boolean>(true)
 const height = ref()
 const height = ref()
 
 
 onMounted(() => {
 onMounted(() => {

+ 1 - 18
Web/src/router/index.ts

@@ -34,24 +34,7 @@ const routes: Array<RouteRecordRaw> = [
       {
       {
         path: '/' + ERouterName.TASK,
         path: '/' + ERouterName.TASK,
         name: ERouterName.TASK,
         name: ERouterName.TASK,
-        component: () => import('/@/pages/page-web/projects/task.vue'),
-        children: [
-          {
-            path: ERouterName.CREATE_PLAN,
-            name: ERouterName.CREATE_PLAN,
-            component: CreatePlan,
-            children: [
-              {
-                path: ERouterName.SELECT_PLAN,
-                name: ERouterName.SELECT_PLAN,
-                components: {
-                  WaylinePanel,
-                  DockPanel
-                }
-              }
-            ]
-          }
-        ]
+        component: () => import('/@/pages/page-web/projects/wayline.vue')
       },
       },
       {
       {
         path: '/' + ERouterName.MEDIA,
         path: '/' + ERouterName.MEDIA,