From 6ddd79e2b01aa414797059dbb79b003db623e4ae Mon Sep 17 00:00:00 2001 From: luchenqun Date: Tue, 21 Mar 2017 17:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=8A=E5=A4=A9=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=9A=84=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/scripts/controllers/search-controller.js | 6 ++++-- public/scripts/directives/js-init-directive.js | 4 ++-- public/views/search.html | 6 ++++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/public/scripts/controllers/search-controller.js b/public/scripts/controllers/search-controller.js index d22cf74..253acfb 100644 --- a/public/scripts/controllers/search-controller.js +++ b/public/scripts/controllers/search-controller.js @@ -176,8 +176,9 @@ app.controller('searchCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi } var dateCreate = $('.js-create-date').dropdown('get value') || undefined; + console.log('dateCreate = ', dateCreate) if (dateCreate) { - if (dateCreate != 0) { + if (dateCreate != -1) { params.dateCreate = dateCreate; } } else { @@ -186,8 +187,9 @@ app.controller('searchCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi } var dateClick = $('.js-click-date').dropdown('get value') || undefined; + console.log('dateClick = ', dateClick) if (dateClick) { - if (dateClick != 0) { + if (dateClick != -1) { params.dateClick = dateClick } } else { diff --git a/public/scripts/directives/js-init-directive.js b/public/scripts/directives/js-init-directive.js index ab0955e..ccd06de 100644 --- a/public/scripts/directives/js-init-directive.js +++ b/public/scripts/directives/js-init-directive.js @@ -55,7 +55,7 @@ app.directive('jsDataCreateInit', function($compile) { startCalendar: $('.ui.calendar.js-date-create-begin') }); - $('.js-create-date').dropdown('set value', 0); + $('.js-create-date').dropdown('set value', -1); }, }; }); @@ -84,7 +84,7 @@ app.directive('jsDataClickInit', function($compile) { }, startCalendar: $('.ui.calendar.js-date-click-begin') }); - $('.js-click-date').dropdown('set value', 0); + $('.js-click-date').dropdown('set value', -1); }, }; }); diff --git a/public/views/search.html b/public/views/search.html index f0f9529..d9fcd5e 100644 --- a/public/views/search.html +++ b/public/views/search.html @@ -24,7 +24,8 @@
创建时间不限