进度条

作者: 愤怒的_菜鸟 | 来源:发表于2018-09-27 15:38 被阅读9次

    适用于查询添加修改
    有时候查询的速度稍微慢一些,可以加入进度条来调节页面效果,使客户不会觉得很“慢”

    var win = $.messager.progress({
            title:'提示',
            msg:'数据操作中,请稍候……'
        });
         $.post(url, {
                username_acc: username_acc,
                username_sp: username_sp,
                username: username,
                name: name,
                region: region,
                keyid:keyid,
                rolelist:value
            },
            function(data){
                if(data==1){
                $.messager.alert("操作提示", "操作成功", "info", function() {
    //              window.location.href="team_data!list.action";
    //              setTimeout(function(){
                        $.messager.progress('close');
                        window.location.href="team_data!list.action";
    //              },3000);
                });
                }else{
                    $.messager.alert("操作提示", "操作失败", "info", function() {
                        window.location.href="team_data!list.action";
                    });
                }
    

    相关文章

      网友评论

          本文标题:进度条

          本文链接:https://www.haomeiwen.com/subject/svbeoftx.html