gdg
2020-12-08 39d6fc5c2983a6afd757ed271301ebe65ac871b7
src/main/webapp/laboratory_mng.xhtml
@@ -28,7 +28,7 @@
         </p:panelGrid>
      </p:panel>
      <p:panel styleClass="center-body">
         <p:panelGrid columns="5" styleClass="btn">
         <p:panelGrid columns="6" styleClass="btn">
            <p:commandButton value="新建" styleClass="new-btn" process="@this"
               actionListener="#{laboratoryMngController.onNewBtnClick}"
               oncomplete="PF('dialog').show();" update=":dialog,:dialogForm"></p:commandButton>
@@ -41,6 +41,8 @@
            </p:commandButton>
            <p:commandButton value="导入" styleClass="import-btn" onclick="importLab()"
            ></p:commandButton>
            <p:commandButton value="导出" styleClass="new-btn" ajax="false"  actionListener="#{laboratoryMngController.exportLab2Excel}"
            />
            <a href="resources/template/实验室导入模板.xlsx" style="display: inline-block;"><img src="resources/images/xlsx.png" width="30px;" alt=""/></a>
            <script>
               function importLab(){