zoukankan      html  css  js  c++  java
  • jeecg 自定义loading框(导入时加载备份)

    1、导入t:upload标签

    <t:upload name="fiels" buttonText="选择文件" uploader="predictOrderController.do?importonlyone" extend="*.xls;*.xlsx" 
                          id="file_upload" formData="templates,productId,cargotypeCode,customerId" onUploadSuccess="uploadFile" auto="true"
                          onFileAdded="onFileAddedaa">
                           <input id="customerId" name="customerId" type="hidden" class="inputxt"/>
                           <input id="productId" name="productId" type="hidden" class="inputxt" /> 
                           <input id="cargotypeCode" name="cargotypeCode" type="hidden" class="inputxt" value="P"/> 
                           <input id="barcode" name="barcode" type="hidden" value="Y"/>
                      </t:upload> 

    2、添加文件时方法

    function onFileAddedaa(){  
          $.messager.progress({ title:'请稍后', msg:'数据导入中...',text:'努力中...' });  
          //$.messager.progress('close');
      }

    3、提交成功后方法

    function uploadFile(data){  
        var msg = data.msg; 
        msg = msg.replace(/\n/g,"<br>") 
        $("#res").html(msg); 
        $.messager.progress('close');
      }
  • 相关阅读:
    1212321
    123123
    好好干活
    VXLAN学习之路-结合VRF在Linux中实践VXLAN网络
    123456
    期望
    123456
    123456
    Jenkins管理员密码忘记修改操作
    Jenkins 安装与部署详细教程
  • 原文地址:https://www.cnblogs.com/xueblvip/p/15704538.html
Copyright © 2011-2022 走看看