Pu Zhibing
2025-04-24 818937959bb19d3669585fa87a526bffe9ce77a4
ManagementOKTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js
@@ -58,9 +58,6 @@
        },*/
        password: {
            validators: {
                notEmpty: {
                    message: '密码不能为空'
                },
                regexp:{
                    regexp: /^.{6,18}$/,
                    message: '密码长度为6-18'
@@ -73,9 +70,6 @@
        },
        rePassword: {
            validators: {
                notEmpty: {
                    message: '密码不能为空'
                },
                regexp:{
                    regexp: /^.{6,18}$/,
                    message: '密码长度为6-18'
@@ -284,6 +278,17 @@
    if(!this.validate()){
        return ;
    }
    // 判断密码
    if ($('#password').val() == "" || $('#password').val() == null){
        Feng.info("密码不能为空");
        return;
    }
    if ($('#rePassword').val() == "" || $('#rePassword').val() == null){
        Feng.info("密码不能为空");
        return;
    }
    // 遍历this.tCarInfoData 如果有值为空字符串或者是undefined 将这个字段剔除
    for (var key in this.yesDriverInfoData) {
        if (this.yesDriverInfoData[key] == "" || this.yesDriverInfoData[key] == undefined) {