Browse Source

Revert "图表分析专利总数量"

This reverts commit 7ce2f5e3b7286eadb9f5e50f1b42511c768b35e4.
zhuliu 1 năm trước cách đây
mục cha
commit
d94fc17d8e
2 tập tin đã thay đổi với 3 bổ sung29 xóa
  1. 1 27
      src/views/analyse/custom/index.vue
  2. 2 2
      src/views/project/index.vue

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

@@ -93,7 +93,6 @@ export default {
         saveType: 1,
         loadingBtn:false,
         id:null,
-        patentNum:0
     };
   },
   watch: {},
@@ -109,40 +108,15 @@ export default {
     projectId(){
         return this.$route.query.projectId
     },
-    patentNums(){
+    patentNum(){
         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');