| | |
| | | </p:panelGrid> |
| | | </p:panel> |
| | | <p:panel styleClass="center-body"> |
| | | <p:panelGrid columns="3" styleClass="btn"> |
| | | <p:panelGrid columns="6" styleClass="btn"> |
| | | <p:commandButton value="新建" styleClass="new-btn" |
| | | process="@this" |
| | | actionListener="#{sysControllerMngController.onNewBtnClick}" |
| | |
| | | update="@form"> |
| | | <p:confirm header="确认" message="确认操作?"></p:confirm> |
| | | </p:commandButton> |
| | | </p:panelGrid> |
| | | |
| | | <p:commandButton value="导入" styleClass="import-btn" onclick="importExcel()"/> |
| | | <p:commandButton value="导出" styleClass="new-btn" ajax="false" actionListener="${sysControllerMngController.export2Excel}"/> |
| | | <a href="resources/template/主控设备导入模板.xlsx" style="display: inline-block;"><img src="resources/images/xlsx.png" width="30px;" alt=""/></a> |
| | | <script type="text/javascript"> |
| | | function importExcel(){ |
| | | $("#sysControllerMngForm\\:importControl_input").click() |
| | | } |
| | | </script> |
| | | |
| | | </p:panelGrid> |
| | | <div style="display: none" id='importDv'> |
| | | <p:fileUpload fileUploadListener="#{sysControllerMngController.uploadFile}" |
| | | dragDropSupport="false" id="importControl" label="导入" |
| | | update="@form" auto="true" sizeLimit="5000000" |
| | | mode="advanced"/> |
| | | </div> |
| | | <p:dataTable id="sysControllerMngDataTable" styleClass="data-table" |
| | | paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom" |
| | | lazy="true" value="#{sysControllerMngController.dataModel}" var="row" rowKey="#{row.id}" |