Selaa lähdekoodia

禁止全部搜索

ljj 6 vuotta sitten
vanhempi
commit
2341808c8c
2 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 4 0
      page/bigDataOut/js/home.js
  2. 4 0
      page/bigDataOut/js/search.js

+ 4 - 0
page/bigDataOut/js/home.js

@ -30,6 +30,10 @@ new Vue({
        },
        goSearch:function(value){
			if(!value)value=''
			if(!value){
				top.toastr.error("请输入检索词再进行搜索");
				return
			}
			url = '../html/search.html?search='+value;
			GlobalEventBus.$emit('setIframeUrl', {
				history: {url:url,text:'全文病历检索'}

+ 4 - 0
page/bigDataOut/js/search.js

@ -56,6 +56,10 @@ new Vue({
			});
        },
        search:function(value){
			if(!value){
				top.toastr.error("请输入检索词再进行搜索");
				return
			}
			this.searchKey=value
			this.initData(value);