Explorar o código

禁止全部搜索

ljj %!s(int64=6) %!d(string=hai) anos
pai
achega
2341808c8c
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  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);