Browse Source

专利挖掘

zhuhao 1 year ago
parent
commit
aedcb18684

+ 13 - 25
src/views/patentMining/components/details/components/projectPath.vue

@@ -12,13 +12,13 @@
         <g @click="toFilePage('创新点梳理', 1,'任务')">
           <text x="120" y="45">任务:</text>
           <circle cx="180" cy="40" r="16" stroke-width="1" stroke="#fff" :fill="getColor('创新点梳理',1)" />
-          <text :x="getNumber('创新点梳理',1) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('创新点梳理',1, '任务') }}</text>
+          <text :x="getNumber('创新点梳理',1) > 9 ? '170' : '175'" y="45" fill="#fff">{{ getNumber('创新点梳理',1, 'task') }}</text>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
         </g>
         <g @click="toFilePage('创新点梳理', 1,'文件')">
           <text x="120" y="85">文件:</text>
           <circle cx="180" cy="80" r="16" stroke-width="1" stroke="#fff" :fill="getColor('创新点梳理',1)" />
-          <text :x="getNumber('创新点梳理',1) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('创新点梳理',1 , '文件') }}</text>
+          <text :x="getNumber('创新点梳理',1) > 9 ? '170' : '175'" y="85" fill="#fff">{{ getNumber('创新点梳理',1 , 'file') }}</text>
           <line x1="200" y1="60" x2="350" y2="60" stroke='#333'></line>
         </g>
         <polygon points="350,55,360,60,350,65"></polygon>
@@ -102,23 +102,14 @@ export default {
   props: ['id'],
   data() {
     return {
-      numFileObj: {
-        '创新点梳理': 2,
-        '查新检索': 0,
-        '保护主题规划': 0,
-        '独权撰写': 0,
-        '从权撰写': 0,
-        '申请文件定稿': 0,
-        '说明书规划撰写': 0,
-      },
-      numTaskObj: {
-        '创新点梳理': 2,
-        '查新检索': 0,
-        '保护主题规划': 0,
-        '独权撰写': 0,
-        '从权撰写': 0,
-        '申请文件定稿': 0,
-        '说明书规划撰写': 0,
+      numObj: {
+        '创新点梳理': {'task':0,'file':2},
+        '查新检索': {'task':0,'file':0},
+        '保护主题规划': {'task':0,'file':0},
+        '独权撰写': {'task':0,'file':0},
+        '从权撰写': {'task':0,'file':0},
+        '申请文件定稿': {'task':0,'file':0},
+        '说明书规划撰写': {'task':0,'file':0},
       },
     }
   },
@@ -142,15 +133,12 @@ export default {
     },
     // 获取文件数量
     getNumber(str, id, type) {
-      if (type == '任务') {
-        return this.numTaskObj[str]
-      } else {
-        return this.numFileObj[str]
-      }
+      return this.numObj[str][type]
     },
     // 获取背景颜色
     getColor(str) {
-      return this.getNumber(str) > 0 ? '#5ed325' : 'pink'
+      let num=this.numObj[str].task + this.numObj[str].file
+      return num > 0 ? '#5ed325' : 'pink'
     },
     // 打开抽屉弹窗
     toDrawer(str, id) {

+ 1 - 1
src/views/patentMining/components/dialog/uploadFile.vue

@@ -61,7 +61,7 @@ export default {
   created() { },
   mounted() { },
   methods: {
-    // 处理审核任务
+    // 提交审核任务
     handleExamineFile(val) {
       let params = {
         patentDigProjectFilesDTO: this.form,