|
|
@@ -8,6 +8,13 @@ app.controller('main', function($scope,$http) {
|
|
|
$scope.getList = function() {
|
|
|
$http.get("/test/").then(
|
|
|
function(data) {
|
|
|
+ /*
|
|
|
+ data.data=data.data.map(function(el) {
|
|
|
+ if (el.STATUS!="DISCONNECTED")
|
|
|
+ el.STATUS=el.STATUS+" "+el.ELAPSED;
|
|
|
+ return el;
|
|
|
+ });
|
|
|
+ */
|
|
|
$scope.list=data.data;
|
|
|
},
|
|
|
function(data){
|
|
|
@@ -27,11 +34,11 @@ app.controller('main', function($scope,$http) {
|
|
|
console.log(data);
|
|
|
});
|
|
|
};
|
|
|
- $scope.searchbook = function(book,extension){
|
|
|
+ $scope.searchBook = function(book,extension){
|
|
|
$http.post("/test/?ewqewqewq", {"type":"search","book":book,"extension":extension}).then(
|
|
|
function(data) {
|
|
|
console.log("success");
|
|
|
- $scope.getlist();
|
|
|
+ $scope.getList();
|
|
|
},
|
|
|
function(data){
|
|
|
console.log("err");
|