فهرست منبع

图表分析专利总数量

zhuliu 1 سال پیش
والد
کامیت
7ce2f5e3b7
2فایلهای تغییر یافته به همراه29 افزوده شده و 3 حذف شده
  1. 27 1
      src/views/analyse/custom/index.vue
  2. 2 2
      src/views/project/index.vue

+ 27 - 1
src/views/analyse/custom/index.vue

@@ -93,6 +93,7 @@ export default {
         saveType: 1,
         loadingBtn:false,
         id:null,
+        patentNum:0
     };
   },
   watch: {},
@@ -108,15 +109,40 @@ export default {
     projectId(){
         return this.$route.query.projectId
     },
-    patentNum(){
+    patentNums(){
         return this.$route.query.patentNum || 0
     },
+    searchPatentNum(){
+      return this.$route.query.searchPatentNum
+    }
   },
   created() {},
   mounted() {
+    this.getPatentNum()
     this.getData()
   },
   methods: {
+    getPatentNum(){
+      if(!this.searchPatentNum){
+        this.patentNum = this.patentNums
+        return
+      }
+      let params = {
+        current: 1,
+        size: 1,
+        projectId: this.projectId,
+        searchQuery: '',//检索条件
+        customFields: [],
+        orderDTOList: [],//排序信息
+      }
+      this.$api.QueryPatent(params).then(res => {
+        if (res.code == 200) {
+          this.patentNum = res.data.total
+        }
+      }).catch(error=>{
+        this.patentNum = 0
+      })
+    },
     openDrawer(type){
         var components = {
             1:'tabData',

+ 2 - 2
src/views/project/index.vue

@@ -494,14 +494,14 @@ export default {
         searchQuery:  '',//检索条件
         customFields: [],
         orderDTOList: [],//排序信息
-        projectId:row.id
+        projectId:row.id,
       }
       const router = this.$router.resolve({
         path: '/customChart',
         query: {
           projectId: row.id,
           search:JSON.stringify(params),
-          
+          searchPatentNum:true
         }
       })
       window.open(router.href, '_blank');