|
|
@@ -720,7 +720,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- app.controller('MyCtrl', ['$scope', '$rootScope', '$modal', 'toaster', function($scope, $rootScope, $modal, toaster) {
|
|
|
+ app.controller('MyCtrl', ['$scope', '$rootScope', '$modal', function($scope, $rootScope, $modal) {
|
|
|
$rootScope.$on('$locationChangeSuccess', function(evt, newUrl) {
|
|
|
var routeState = newUrl.substr(newUrl.indexOf('#/') + 2);
|
|
|
if (routeState.indexOf('/') > -1)
|
|
|
@@ -734,8 +734,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
if(keyword != null && keyword != '') {
|
|
|
$rootScope.searchKeyword = keyword;
|
|
|
window.location.hash = '#/search?keyword='+keyword;
|
|
|
- } else {
|
|
|
- toaster.pop('info', '提示', '请输入有效字符');
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -1500,7 +1498,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
// });
|
|
|
// });
|
|
|
|
|
|
- SnapshotService.getOpenTender(5, function(data){
|
|
|
+ SnapshotService.getOpenTender(function(data){
|
|
|
$scope.openTenders = data;
|
|
|
var newDate = new Date();
|
|
|
newDate = newDate.getTime() - 3*24*60*60*1000;
|
|
|
@@ -13805,8 +13803,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.keyword = keyword;
|
|
|
$scope.tableParams.page(1);
|
|
|
$scope.tableParams.reload();
|
|
|
- } else {
|
|
|
- toaster.pop('info', '提示', '请输入有效字符');
|
|
|
}
|
|
|
};
|
|
|
|