瀏覽代碼

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

zhuliu 1 年之前
父節點
當前提交
831e149369
共有 1 個文件被更改,包括 9 次插入0 次删除
  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');
         },