lyfO_o
2021-06-21 82f0f5e82cf0ff88af237ba5929dff7a2bdc4d46
src/main/webapp/apply_mng.xhtml
@@ -46,7 +46,7 @@
            </p:panelGrid>
        </p:panel>
        <p:panel styleClass="center-body">
            <p:panelGrid columns="5" styleClass="btn">
            <p:panelGrid columns="7" styleClass="btn">
                <p:commandButton value="申购" styleClass="new-btn"
                                 process="@this"
                                 actionListener="#{applyMngController.onNewBtnClick}"
@@ -69,7 +69,21 @@
                </p:commandButton>
                <p:commandButton update=":centerRootPanel" actionListener="#{applyMngController.onExportFileBtnClickNew}"
                                 ajax="false" value="导出" styleClass="new-btn" />
                <p:commandButton  onclick="importApply()"  value="导入" styleClass="import-btn" />
                <a href="resources/template/申购导入模板.xlsx" style="display: inline-block;"><img src="resources/images/xlsx.png" width="30px;" alt=""/></a>
            </p:panelGrid>
            <script type="text/javascript">
                function importApply(){
                    $("#applyMngForm\\:importApplyBtn_input").click();
                }
            </script>
            <div style="display: none" id='importDv'>
                <p:fileUpload fileUploadListener="#{applyMngController.uploadApply}"
                              dragDropSupport="false" id="importApplyBtn"  label="导入"
                              update="@form" auto="true" sizeLimit="5000000"
                              mode="advanced"/>
            </div>
            <p:dataTable id="applyMngDataTable" styleClass="data-table" resizableColumns="true"
                         paginator="true" paginatorAlwaysVisible="false" paginatorPosition="bottom"