Sfoglia il codice sorgente

修改上传文件

zhuliu 1 anno fa
parent
commit
c3316ba46a

+ 6 - 0
src/router/index.js

@@ -278,6 +278,7 @@ const routes = [
         children: [
           {
             path: '/',
+            name:'AllReport/',
             meta: {
               title: '报告',
               sign: 'report',
@@ -415,6 +416,7 @@ const routes = [
         children: [
           {
             path: '/',
+            name:'myTask/',
             meta: {
               title: '我的任务',
               sign: 'myTask',
@@ -448,6 +450,7 @@ const routes = [
       //图表分析
       {
         path: "customChart",
+        name:'customChart',
         component: () => import('@/views/analyse/custom'),
         meta: {
           sign: 'customChart',
@@ -517,6 +520,7 @@ const routes = [
       //检索结果
       {
         path: "/searchResult",
+        name:'searchResult',
         meta: {
           title: '检索结果',
           // button: [],
@@ -536,6 +540,7 @@ const routes = [
       //标注库
       {
         path: "/indicia",
+        name:'indicia',
         meta: {
           title: '标注库',
           sign: 'indicia',
@@ -551,6 +556,7 @@ const routes = [
         children: [
           {
             path: '/403',
+            name:'/403',
             meta: {
               title: '事件',
               sign: '403',

+ 3 - 1
src/views/components/import/components/importPatent.vue

@@ -135,7 +135,9 @@ export default {
         let a = this.formData[0].systemFileList.findIndex(item => {
           return item.guid == file.guid
         })
-        this.formData[0].systemFileList.splice(a, 1)
+        if(a != -1){
+          this.formData[0].systemFileList.splice(a, 1)  
+        }
       } else {
         let a = this.files.findIndex(item => {
           return item.uid == file.uid