Browse Source

重新检索时检索历史id清空

zhuliu 1 năm trước cách đây
mục cha
commit
831e149369
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      src/views/components/import/conditionImport/search.vue

+ 9 - 0
src/views/components/import/conditionImport/search.vue

@@ -90,6 +90,10 @@ export default {
             this.isComponent = val
         },
         search(val){
+            if(val == ''){
+                this.$message.error('检索信息不能为空')
+                return false
+            }
             var a = {
                 searchCondition:val,
                 DBType:this.DBType,
@@ -103,6 +107,11 @@ export default {
                     data:JSON.stringify(a)
                 }
             })
+            let params = {
+              params:{},
+              countryList:this.countryList
+            }
+            this.$s.setSession('queryParams',params)
             // this.$s.setSession('retrieveRecordId',0)
             // window.open(router.href, '_blank');
         },