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');
      }
  • 相关阅读:
    java学习网址大全
    Js 提示框
    api帮助文档及常见IT学习网站
    传参给 jsp
    jsp>action
    二级横菜单显示+sitemesh母板应用
    request,session
    map>json
    清空image画布并改变大小填充背景色
    取汉字首字母方法
  • 原文地址:https://www.cnblogs.com/xueblvip/p/15704538.html
Copyright © 2011-2022 走看看