zhuliu 11 月之前
父節點
當前提交
77e54ed850

+ 9 - 0
src/views/components/dialog/menuDialog/noveltySearchContrast.vue

@@ -182,6 +182,15 @@
                 if(message.type == 1){
                     NoveltySearchContrastList.push(this.form)
                     this.$store.commit('SET_PATENT_NoveltySearchContrastList', NoveltySearchContrastList)
+                    this.$router.replace(
+                      {
+                        path: '/patentDetails/' + this.patentNo,
+                        query:{
+                          ...this.$route.query,
+                          reloadURL:true
+                        }
+                      }
+                    )
                 }else{
                     let index = this.NoveltySearchContrastList.findIndex(item => {
                         return item.id == this.form.id

+ 5 - 1
src/views/components/import/conditionImport/searchResult.vue

@@ -779,8 +779,12 @@ export default {
         publicDate: "PD",
         applicationDate: "AD",
       };
+      var orderType = {
+        ascending: "ASC",
+        descending: "DESC"
+      }
       this.queryParams.OrderBy = o[data.prop] || data.prop;
-      this.queryParams.OrderByType = data.order.toUpperCase();
+      this.queryParams.OrderByType = orderType[data.order];
       this.getList();
     },
   },

+ 24 - 1
src/views/project/patentDetails/index.vue

@@ -104,6 +104,27 @@ export default {
     retrieveRecordId(){
       return this.$route.query.retrieveRecordId
     },
+    reloadURL(){
+      return this.$route.query.reloadURL
+    },
+  },
+  watch:{
+    reloadURL(val){
+      if(val){
+        this.getInit()
+        this.$nextTick(()=>{
+          this.$router.replace(
+            {
+              path: '/patentDetails/' + this.patentNo,
+              query:{
+                ...this.$route.query,
+                reloadURL:false
+              }
+            }
+          )
+        })
+      }
+    }
   },
   created() { },
   mounted() {
@@ -147,7 +168,9 @@ export default {
     
   },
   methods: {
-
+    getInit(){
+      this.queryComparePatent()
+    },
     //查询对比文件
     queryComparePatent(){
       var params = {