浏览代码

专利挖掘bug修改

zhuhao 1 年之前
父节点
当前提交
55f3355c90

+ 6 - 2
src/views/patentMining/components/details/basicMessage.vue

@@ -1,8 +1,8 @@
 <template>
 <template>
   <div>
   <div>
     <basicMessage :id="id"></basicMessage>
     <basicMessage :id="id"></basicMessage>
-    <projectPath :id="id" v-on="$listeners" @on-drawer="handleDrawer"></projectPath>
-    <drawerPage ref="drawerPage" :id="id"> </drawerPage>
+    <projectPath :id="id" v-on="$listeners" @on-drawer="handleDrawer" :isClose="isClose"></projectPath>
+    <drawerPage ref="drawerPage" :id="id" @drawerClose="drawerClose" > </drawerPage>
   </div>
   </div>
 </template>
 </template>
 
 
@@ -21,6 +21,7 @@ export default {
   },
   },
   data() {
   data() {
     return {
     return {
+      isClose:false,
     };
     };
   },
   },
   watch: {},
   watch: {},
@@ -28,6 +29,9 @@ export default {
   created() {},
   created() {},
   mounted() {},
   mounted() {},
   methods: {
   methods: {
+    drawerClose(val) {
+      this.isClose = !this.isClose
+    },
     handleDrawer(obj) {
     handleDrawer(obj) {
       this.$refs.drawerPage.open(obj)
       this.$refs.drawerPage.open(obj)
     },
     },

+ 2 - 1
src/views/patentMining/components/details/components/drawer.vue

@@ -53,7 +53,8 @@ export default {
     // 关闭
     // 关闭
     handleClose() {
     handleClose() {
       this.processId = null
       this.processId = null
-      this.activeName='ExcavateTaskIndex'
+      this.activeName = 'ExcavateTaskIndex'
+      this.$emit('drawerClose','关闭')
       this.drawer = false
       this.drawer = false
     },
     },
   },
   },

+ 21 - 15
src/views/patentMining/components/details/components/projectPath.vue

@@ -3,7 +3,7 @@
   <div class="projectPath" style="width: 100%;height:100%;">
   <div class="projectPath" style="width: 100%;height:100%;">
     <span>项目流程</span>
     <span>项目流程</span>
     <el-divider></el-divider>
     <el-divider></el-divider>
-    <svg viewBox="0 0 1800 400" width="100%" height="100%">
+    <svg v-if="isShow" viewBox="0 0 1800 400" width="100%" height="100%">
 
 
 
 
       <g transform=translate(0,0) class="svgG">
       <g transform=translate(0,0) class="svgG">
@@ -33,13 +33,13 @@
           <rect width="200" height="120" :fill="getColor('查新检索',2)"> </rect>
           <rect width="200" height="120" :fill="getColor('查新检索',2)"> </rect>
           <text x="30" y="65">查新检索</text>
           <text x="30" y="65">查新检索</text>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('查新检索', 2,'任务')">
           <text x="120" y="45">任务:</text>
           <text x="120" y="45">任务:</text>
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('查新检索',2)" />
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('查新检索',2)" />
           <text :x="getNumber('查新检索',2) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('查新检索',2,'taskCount') }}</text>
           <text :x="getNumber('查新检索',2) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('查新检索',2,'taskCount') }}</text>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('查新检索', 2,'文件')">
           <text x="120" y="85">文件:</text>
           <text x="120" y="85">文件:</text>
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('查新检索',2)" />
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('查新检索',2)" />
           <text :x="getNumber('查新检索',2) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('查新检索',2,'fileCount') }}</text>
           <text :x="getNumber('查新检索',2) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('查新检索',2,'fileCount') }}</text>
@@ -54,19 +54,18 @@
           <rect width="200" height="120" :fill="getColor('保护主题规划',3)"> </rect>
           <rect width="200" height="120" :fill="getColor('保护主题规划',3)"> </rect>
           <text x="30" y="65">保护主题规划</text>
           <text x="30" y="65">保护主题规划</text>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('保护主题规划', 3,'任务')">
           <text x="120" y="45">任务:</text>
           <text x="120" y="45">任务:</text>
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('保护主题规划',3)" />
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('保护主题规划',3)" />
           <text :x="getNumber('保护主题规划',3) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('保护主题规划',3,'taskCount') }}</text>
           <text :x="getNumber('保护主题规划',3) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('保护主题规划',3,'taskCount') }}</text>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('保护主题规划', 3,'文件')">
           <text x="120" y="85">文件:</text>
           <text x="120" y="85">文件:</text>
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('保护主题规划',3)" />
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('保护主题规划',3)" />
           <text :x="getNumber('保护主题规划',3) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('保护主题规划',3,'fileCount') }}</text>
           <text :x="getNumber('保护主题规划',3) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('保护主题规划',3,'fileCount') }}</text>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
         </g>
         </g>
-
         <polygon points="350,55,360,60,350,65"></polygon>
         <polygon points="350,55,360,60,350,65"></polygon>
       </g>
       </g>
 
 
@@ -76,13 +75,13 @@
           <rect width="200" height="120" :fill="getColor('独权撰写',4)"> </rect>
           <rect width="200" height="120" :fill="getColor('独权撰写',4)"> </rect>
           <text x="30" y="65">独权撰写</text>
           <text x="30" y="65">独权撰写</text>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('独权撰写', 4,'任务')">
           <text x="120" y="45">任务:</text>
           <text x="120" y="45">任务:</text>
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('独权撰写',4)" />
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('独权撰写',4)" />
           <text :x="getNumber('独权撰写',4) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('独权撰写',4,'taskCount') }}</text>
           <text :x="getNumber('独权撰写',4) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('独权撰写',4,'taskCount') }}</text>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('独权撰写', 4,'文件')">
           <text x="120" y="85">文件:</text>
           <text x="120" y="85">文件:</text>
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('独权撰写',4)" />
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('独权撰写',4)" />
           <text :x="getNumber('独权撰写',4) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('独权撰写',4,'fileCount') }}</text>
           <text :x="getNumber('独权撰写',4) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('独权撰写',4,'fileCount') }}</text>
@@ -99,13 +98,13 @@
           <rect width="200" height="120" :fill="getColor('从权撰写',5)"> </rect>
           <rect width="200" height="120" :fill="getColor('从权撰写',5)"> </rect>
           <text x="30" y="65">从权撰写</text>
           <text x="30" y="65">从权撰写</text>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('从权撰写', 5,'任务')">
           <text x="120" y="45">任务:</text>
           <text x="120" y="45">任务:</text>
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('从权撰写',5)" />
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('从权撰写',5)" />
           <text :x="getNumber('从权撰写',5) > 9 ? '170' : '175'"  y="45" fill="#fff">{{ getNumber('从权撰写',5,'taskCount') }}</text>
           <text :x="getNumber('从权撰写',5) > 9 ? '170' : '175'"  y="45" fill="#fff">{{ getNumber('从权撰写',5,'taskCount') }}</text>
           <line x1="100" y1="120" x2="100" y2="190" stroke='#333'></line>
           <line x1="100" y1="120" x2="100" y2="190" stroke='#333'></line>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('从权撰写', 5,'文件')">
           <text x="120" y="85">文件:</text>
           <text x="120" y="85">文件:</text>
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('从权撰写',5)" />
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('从权撰写',5)" />
           <text :x="getNumber('从权撰写',5) > 9 ? '170' : '175'"  y="85" fill="#fff">{{ getNumber('从权撰写',5,'fileCount') }}</text>
           <text :x="getNumber('从权撰写',5) > 9 ? '170' : '175'"  y="85" fill="#fff">{{ getNumber('从权撰写',5,'fileCount') }}</text>
@@ -126,13 +125,13 @@
           <rect width="200" height="120" :fill="getColor('申请文件定稿',6)"> </rect>
           <rect width="200" height="120" :fill="getColor('申请文件定稿',6)"> </rect>
           <text x="30" y="65">申请文件定稿</text>
           <text x="30" y="65">申请文件定稿</text>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('申请文件定稿', 6,'任务')">
           <text x="120" y="45">任务:</text>
           <text x="120" y="45">任务:</text>
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('申请文件定稿',6)" />
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('申请文件定稿',6)" />
           <text :x="getNumber('申请文件定稿',6) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('申请文件定稿',6,'taskCount') }}</text>
           <text :x="getNumber('申请文件定稿',6) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('申请文件定稿',6,'taskCount') }}</text>
           <line x1="0" y1="60" x2="-150" y2="60" stroke='#333'></line>
           <line x1="0" y1="60" x2="-150" y2="60" stroke='#333'></line>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('申请文件定稿', 6,'文件')">
           <text x="120" y="85">文件:</text>
           <text x="120" y="85">文件:</text>
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('申请文件定稿',6)" />
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('申请文件定稿',6)" />
           <text :x="getNumber('申请文件定稿',6) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('申请文件定稿',6,'fileCount') }}</text>
           <text :x="getNumber('申请文件定稿',6) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('申请文件定稿',6,'fileCount') }}</text>
@@ -146,12 +145,12 @@
         <rect width="200" height="120" :fill="getColor('说明书规划撰写',7)"> </rect>
         <rect width="200" height="120" :fill="getColor('说明书规划撰写',7)"> </rect>
         <text x="15" y="65" xml:space='preserve'>说明书规划撰写
         <text x="15" y="65" xml:space='preserve'>说明书规划撰写
         </text>
         </text>
-        <g>
+        <g @click="toFilePage('说明书规划撰写', 7,'任务')">
           <text x="120" y="45">任务:</text>
           <text x="120" y="45">任务:</text>
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('说明书规划撰写',7)" />
           <circle cx="180" cy="40" r="15" stroke-width="1" stroke="#fff" :fill="getColor('说明书规划撰写',7)" />
           <text :x="getNumber('说明书规划撰写',7) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('说明书规划撰写',7,'taskCount') }}</text>
           <text :x="getNumber('说明书规划撰写',7) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('说明书规划撰写',7,'taskCount') }}</text>
         </g>
         </g>
-        <g>
+        <g @click="toFilePage('说明书规划撰写', 7,'文件')">
           <text x="120" y="85">文件:</text>
           <text x="120" y="85">文件:</text>
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('说明书规划撰写',7)" />
           <circle cx="180" cy="80" r="15" stroke-width="1" stroke="#fff" :fill="getColor('说明书规划撰写',7)" />
           <text :x="getNumber('说明书规划撰写',7) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('说明书规划撰写',7,'fileCount') }}</text>
           <text :x="getNumber('说明书规划撰写',7) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('说明书规划撰写',7,'fileCount') }}</text>
@@ -166,7 +165,7 @@
 import { optionsData } from '../../mixins/index2'
 import { optionsData } from '../../mixins/index2'
 export default {
 export default {
   mixins: [optionsData],
   mixins: [optionsData],
-  props: ['id'],
+  props: ['id','isClose'],
   data() {
   data() {
     return {
     return {
       numObj: {
       numObj: {
@@ -178,8 +177,14 @@ export default {
         '申请文件定稿': {'task':0,'file':0},
         '申请文件定稿': {'task':0,'file':0},
         '说明书规划撰写': {'task':0,'file':0},
         '说明书规划撰写': {'task':0,'file':0},
       },
       },
+      isShow:false,
     }
     }
   },
   },
+  watch: {
+    isClose(val) {
+      this.getFileNumber()
+    },
+  },
   computed: {},
   computed: {},
   async mounted() {
   async mounted() {
     await this.getFileNumber()
     await this.getFileNumber()
@@ -193,6 +198,7 @@ export default {
       await this.$api.getCountOfProcess(params).then(response => {
       await this.$api.getCountOfProcess(params).then(response => {
         if (response.code == 200) {
         if (response.code == 200) {
           this.numObj = response.data
           this.numObj = response.data
+          this.isShow=true
         }
         }
       }).catch(error => {
       }).catch(error => {
         this.numObj = {}
         this.numObj = {}