html5+angularjs+bootstrap+springmvc+mybatis模糊查询Deme


1、<label class="col-md-7 col-sm-7 control-label">公积金管理部名称:</label>
<div class="col-md-3 col-sm-3 form-inline">
<input type="text" class="form-control" id="fundName_search" ng-model="transactionsFund.fundname" data-
provide="typeahead" placeholder="部门姓名">
<button type="button" class="btn btn-primary" ng-click="queryList();">查询</button>
</div>


2、 /************查询列表****************/
$scope.queryList=function (){
$scope.transactionsFund.page=1;
$scope.transactionsFund.size=20;
DataCenter.find("TransactionsFund", $scope.transactionsFund);
}

/************列表返回*******************/

DataCenter.addEventListener("TransactionsFundList", function(e){
console.log("XXXXXXXXXXXXXXXXXXX"+e.data);
$scope.transactionsFundList = e.data.list;
$scope.pages = e.data.pages;
$scope.page = e.data.pageNum;
$scope.size= e.data.size;
$scope.total= e.data.total;
$scope.$apply();
});

原文地址:https://www.cnblogs.com/shunzdd/p/5585989.html