mrdcApp.controller("search-inside",["$scope","$http",function(n,t){n.searchKeywords=null;n.searchResults=null;n.isLoading=!1;n.showSearchError=!1;var i=null;n.search=function(r){n.showSearchError=!1;var u={productId:n.productId,keywords:n.searchKeywords};r&&r.PageNumber!=i?(u.pageNumber=r.PageNumber,i=r.PageNumber,r.previewLoading=!0):i=null;r||(n.isLoading=!0);t.get("../../product/searchinsidereport",{params:u}).then(function(t){n.searchResults=t.data}).catch(function(t){n.showSearchError=!0;console.error("Error searching inside report: ",t.status,t.data)}).finally(function(){n.isLoading=!1;r&&(r.previewLoading=!1)})}}])
Baidu
map