From d02e95d2d7fb8b02df80c2c1cfb5a623af402c8c Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Sun, 12 Mar 2017 16:34:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E5=BC=82=E5=B8=B8=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E6=97=A5=E5=BF=97=E6=8C=89=E9=92=AE=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E5=85=88=E9=9A=90=E8=97=8F=E7=84=B6=E5=90=8E=E5=86=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/Exceptions.js | 19 +++++++++---------- Bootstrap.Admin/Views/Admin/Exceptions.cshtml | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Bootstrap.Admin/Scripts/Exceptions.js b/Bootstrap.Admin/Scripts/Exceptions.js index 672e4f08..b1bc6549 100644 --- a/Bootstrap.Admin/Scripts/Exceptions.js +++ b/Bootstrap.Admin/Scripts/Exceptions.js @@ -1,5 +1,4 @@ $(function () { - var url = '../api/Exceptions/'; var $dialog = $('#dialogNew'); var $dataForm = $('#dataForm'); var $dataFormDetail = $('#dataFormDetail'); @@ -8,12 +7,12 @@ var $errorDetailTitle = $('#myDetailModalLabel'); var bsa = new BootstrapAdmin({ - url: url, + url: Exceptions.url, validateForm: null }); $('table').smartTable({ - url: url, + url: Exceptions.url, sortName: 'LogTime', queryParams: function (params) { return $.extend(params, { StartTime: $("#txt_operate_start").val(), EndTime: $("#txt_operate_end").val() }); }, columns: [ @@ -26,13 +25,13 @@ }); $('.form_date').datetimepicker({ - language: 'zh-CN', - weekStart: 1, - todayBtn: 1, - autoclose: 1, - todayHighlight: 1, - startView: 2, - minView: 2, + language: 'zh-CN', + weekStart: 1, + todayBtn: 1, + autoclose: 1, + todayHighlight: 1, + startView: 2, + minView: 2, forceParse: 0, format: 'yyyy-mm-dd', pickerPosition: 'bottom-left' diff --git a/Bootstrap.Admin/Views/Admin/Exceptions.cshtml b/Bootstrap.Admin/Views/Admin/Exceptions.cshtml index 58f6ed9a..e8ffa8c9 100644 --- a/Bootstrap.Admin/Views/Admin/Exceptions.cshtml +++ b/Bootstrap.Admin/Views/Admin/Exceptions.cshtml @@ -51,7 +51,7 @@ -
+