无关风月
2025-01-14 e6d027eb78f32fec9a9788976f694a85fa3b768a
ManagementOKTravel/guns-admin/src/main/webapp/static/modular/system/tCompany/franchisee_info.js
@@ -336,7 +336,23 @@
        return
    }
    var content = '{';
    //拼接数据
    $(".content input[type='text']").each(function(){
        var value = $(this).val();
        if('' == value){
            b = true;
            Feng.info("请填写完整配置");
            return
        }
        content = content + '"'+$(this)[0].name+'":"'+value+'",';
    });
    content = content.substring(0,content.length-1);
    content += '}';
    console.log(content);
    if(b){
        return
    }
    //提交信息
    var ajax = new $ax(Feng.ctxPath + "/tCompany/addFranchisee", function(data){
        if ("error" == data){
@@ -353,6 +369,7 @@
    ajax.set("isTaxi",1);
    ajax.set("account",$("#account").val());
    ajax.set("password",$("#password").val());
    ajax.set("content",content);
    ajax.start();
}
@@ -560,7 +577,23 @@
    if(b){
        return
    }
    var content = '{';
    //拼接数据
    $(".content input[type='text']").each(function(){
        var value = $(this).val();
        if('' == value){
            b = true;
            Feng.info("请填写完整配置");
            return
        }
        content = content + '"'+$(this)[0].name+'":"'+value+'",';
    });
    content = content.substring(0,content.length-1);
    content += '}';
    console.log(content);
    if(b){
        return
    }
    //提交信息
    var ajax = new $ax(Feng.ctxPath + "/tCompany/updateFranchisee", function(data){
@@ -590,6 +623,7 @@
    ajax.set("account",$("#account").val());
    ajax.set("password",$("#password").val());
    ajax.set("userId",$("#userId").val());
    ajax.set("content",content);
    ajax.start();
}