Ver Fonte

价值曲线

zhuliu há 1 ano atrás
pai
commit
27ce218850

+ 0 - 1
src/utils/permissions.js

@@ -78,7 +78,6 @@ export default {
    * @param {String} str 
    */
   FunPermissions(str){
-    return true
     const user = Store.state.user.userinfo
     if(user.roleType){
       return true

+ 8 - 2
src/views/product/components/echarts/components/MultipleLine/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div style="margin-top:20px" >
-    <div style="display:flex;justify-content: flex-end;cursor: pointer;margin-bottom: -27px;margin-right:8px" :style="{ width: widths }">
+    <div style="display:flex;justify-content: flex-end;cursor: pointer;margin-bottom: -27px;margin-right:8px" :style="{ width: widths }" v-if="show">
       <div class="set2">
         <div>
           <i class="el-icon-refresh" style="font-size:18px;" @click="review"></i>
@@ -64,7 +64,8 @@ export default {
       relation:{},
       name:'',
       // domId: 'multipleLine',
-      chartData:[]
+      chartData:[],
+      show:false
     }
   },
   computed:{
@@ -95,6 +96,11 @@ export default {
       this.drawer = true
     },
     open(chartData,name,relation,timeUnit){
+      if(!chartData || chartData.length==0){
+        this.show = false
+        return false
+      }
+      this.show = true
       this.chartData = chartData
       this.relation = relation
       this.name = name

+ 7 - 5
src/views/project/patentDetails/components/patentDetails.vue

@@ -136,6 +136,7 @@ import reviewHistory from './patentMessage/history/reviewHistory.vue'
 import otherReferences from './patentMessage/history/otherReferences.vue'
 import InvalidHistory from './patentMessage/history/InvalidHistory.vue'
 import HistoryOfInvalidEvidence from './patentMessage/history/HistoryOfInvalidEvidence.vue'
+import PatentWorth from './patentMessage/history/echarts/components/echarts.vue'
 
 
 import { projectData, handleData } from '../../patentCollection/components/mixins/index'
@@ -159,6 +160,7 @@ export default {
     otherReferences,
     InvalidHistory,
     HistoryOfInvalidEvidence,
+    PatentWorth,
 
     PatentField,
     addAndEditReport,
@@ -272,7 +274,7 @@ export default {
           label: '商品化'
         },
         {
-          value: 'patentWorth',
+          value: 'PatentWorth',
           // show: this.$permission('/workspace/patent/worth') ? false : true,
           label: '价值曲线'
         },
@@ -288,10 +290,10 @@ export default {
           value: 'HistoryOfInvalidEvidence',
           label: '作为无效证据使用历史'
         },
-        {
-          value: 'InvalidEvidencePush',
-          label: '无效证据推荐'
-        },
+        // {
+        //   value: 'InvalidEvidencePush',
+        //   label: '无效证据推荐'
+        // },
         {
           value: 'litigationHistory',
           label: '诉讼历史'

+ 8 - 2
src/views/project/patentDetails/components/patentMessage/history/echarts/components/MultipleLine/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div style="margin-top:20px" >
-    <div style="display:flex;justify-content: flex-end;cursor: pointer;margin-bottom: -27px;margin-right:8px" :style="{ width: widths }">
+    <div style="display:flex;justify-content: flex-end;cursor: pointer;margin-bottom: -27px;margin-right:8px" :style="{ width: widths }" v-if="show">
       <div class="set2">
         <div>
           <i class="el-icon-refresh" style="font-size:18px;" @click="review"></i>
@@ -64,7 +64,8 @@ export default {
       relation:{},
       name:'',
       // domId: 'multipleLine',
-      chartData:[]
+      chartData:[],
+      show:false
     }
   },
   computed:{
@@ -95,6 +96,11 @@ export default {
       this.drawer = true
     },
     open(chartData,name,relation,timeUnit){
+      if(!chartData || chartData.length==0){
+        this.show = false
+        return false
+      }
+      this.show = true
       this.chartData = chartData
       this.relation = relation
       this.name = name