diff --git a/WebContent/WEB-INF/views/doctor/profile.jsp b/WebContent/WEB-INF/views/doctor/profile.jsp index c8a31f0..1dee77b 100644 --- a/WebContent/WEB-INF/views/doctor/profile.jsp +++ b/WebContent/WEB-INF/views/doctor/profile.jsp @@ -864,7 +864,7 @@ } catch(e) {} //移除所有select2元素 $('[class*=select2]').remove(); - }); + }); }); diff --git a/WebContent/WEB-INF/views/doctor/query-drug-list.jsp b/WebContent/WEB-INF/views/doctor/query-drug-list.jsp index 362670c..cfcbf3a 100644 --- a/WebContent/WEB-INF/views/doctor/query-drug-list.jsp +++ b/WebContent/WEB-INF/views/doctor/query-drug-list.jsp @@ -485,193 +485,193 @@ } ); }); - $.fn.dataTable.Buttons.defaults.dom.container.className = 'dt-buttons btn-overlap btn-group btn-overlap'; - new $.fn.dataTable.Buttons( myTable, { - buttons: [ - { - "extend": "colvis", - "text": " ", - "className": "btn btn-white btn-primary btn-bold", - columns: ':not(:first):not(:last)' - }, - { - "extend": "copy", - "text": " ", - "className": "btn btn-white btn-primary btn-bold" - }, - { - "extend": "csv", - "text": " ", - "className": "btn btn-white btn-primary btn-bold" - }, - { - "extend": "excel", - "text": " ", - "className": "btn btn-white btn-primary btn-bold" - }, - { - "extend": "pdf", - "text": " ", - "className": "btn btn-white btn-primary btn-bold" - }, - { - "extend": "print", - "text": " ", - "className": "btn btn-white btn-primary btn-bold", - autoPrint: false, - message: 'This print was produced using the Print button for DataTables' - } - ] - } ); - myTable.buttons().container().appendTo( $('.tableTools-container') ); - // 将DataTables的按钮容器附加到.tableTools-container元素中 +$.fn.dataTable.Buttons.defaults.dom.container.className = 'dt-buttons btn-overlap btn-group btn-overlap'; +new $.fn.dataTable.Buttons( myTable, { +buttons: [ +{ +"extend": "colvis", +"text": " ", +"className": "btn btn-white btn-primary btn-bold", +columns: ':not(:first):not(:last)' +}, +{ +"extend": "copy", +"text": " ", +"className": "btn btn-white btn-primary btn-bold" +}, +{ +"extend": "csv", +"text": " ", +"className": "btn btn-white btn-primary btn-bold" +}, +{ +"extend": "excel", +"text": " ", +"className": "btn btn-white btn-primary btn-bold" +}, +{ +"extend": "pdf", +"text": " ", +"className": "btn btn-white btn-primary btn-bold" +}, +{ +"extend": "print", +"text": " ", +"className": "btn btn-white btn-primary btn-bold", +autoPrint: false, +message: 'This print was produced using the Print button for DataTables' +} +] +} ); +myTable.buttons().container().appendTo( $('.tableTools-container') ); +// 将DataTables的按钮容器附加到.tableTools-container元素中 - //style the message box - var defaultCopyAction = myTable.button(1).action(); - // 获取复制按钮的默认操作 - myTable.button(1).action(function (e, dt, button, config) { - defaultCopyAction(e, dt, button, config); - // 执行复制按钮的默认操作 - $('.dt-button-info').addClass('gritter-item-wrapper gritter-info gritter-center white'); - // 为消息框添加样式 - }); - var defaultColvisAction = myTable.button(0).action(); - // 获取列显示/隐藏按钮的默认操作 - myTable.button(0).action(function (e, dt, button, config) { - defaultColvisAction(e, dt, button, config); - // 执行列显示/隐藏按钮的默认操作 - if($('.dt-button-collection > .dropdown-menu').length == 0) { - // 如果下拉菜单不存在 - $('.dt-button-collection') - .wrapInner(' + + +
+
+ -
-
- -
- -
-
- - - -
- - - ${echo} -
-
-
-
- + - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + $(document).one('ajaxloadstart.page', function(e) { + try { + $('.editable').editable('destroy'); // 销毁editable插件 + } catch(e) {} + $('[class*=select2]').remove(); // 移除select2元素 + }); + }); + + diff --git a/WebContent/WEB-INF/views/nurse/query-drug-list.jsp b/WebContent/WEB-INF/views/nurse/query-drug-list.jsp index f8257b4..a1df327 100644 --- a/WebContent/WEB-INF/views/nurse/query-drug-list.jsp +++ b/WebContent/WEB-INF/views/nurse/query-drug-list.jsp @@ -647,7 +647,7 @@ $(this).closest('tr').next().toggleClass('open'); $(this).find(ace.vars['.icon']).toggleClass('fa-angle-double-down').toggleClass('fa-angle-double-up'); }); - /***************/ + /***************/ /** //add horizontal scrollbars to a simple table $('#simple-table').css({'width':'2000px', 'max-width': 'none'}).wrap('
').parent().ace_scroll( diff --git a/WebContent/WEB-INF/views/nurse/query-pdbatch-list.jsp b/WebContent/WEB-INF/views/nurse/query-pdbatch-list.jsp index 1fcbf5d..b979810 100644 --- a/WebContent/WEB-INF/views/nurse/query-pdbatch-list.jsp +++ b/WebContent/WEB-INF/views/nurse/query-pdbatch-list.jsp @@ -672,7 +672,7 @@ return 'left'; } /***************/ - // 点击显示详细信息的按钮时的事件处理 + // 点击显示详细信息的按钮时的事件处理 $('.show-details-btn').on('click', function(e) { e.preventDefault(); $(this).closest('tr').next().toggleClass('open'); diff --git a/WebContent/WEB-INF/views/nurse/query-rx.jsp b/WebContent/WEB-INF/views/nurse/query-rx.jsp index cd19ffb..d2088ca 100644 --- a/WebContent/WEB-INF/views/nurse/query-rx.jsp +++ b/WebContent/WEB-INF/views/nurse/query-rx.jsp @@ -1,5 +1,5 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> + pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> @@ -62,385 +62,385 @@ - -