刘帅
2026-09-08 572df690f72ed4a077d934823f261dec39b3cc7d
cloud-server-management/src/main/webapp/static/modular/system/appUser/tAppUser.js
@@ -35,7 +35,7 @@
        {title: '注册时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle'},
        {title: '状态', field: 'state', visible: true, align: 'center', valign: 'middle',
            formatter:function (data) {
                return {1:"正常",2:"冻结",3:"已注销"}[data]
                return {1:"正常",2:"冻结",3:"注销"}[data]
            }}
    ];
};
@@ -147,6 +147,32 @@
            this.layerIndex = index;
        }
    }
};
/** Only rendered for admin. The server independently checks admin and audits every successful view. */
TQuestion.viewSensitiveData = function () {
    var selected = $('#' + this.id).bootstrapTable('getSelections');
    if (selected.length > 1) {
        Feng.info("只能选择一个用户进行查看!");
        return;
    }
    if (!this.check()) return;
    layer.confirm('查看完整手机号和身份证号将记录审计日志,是否继续?', {icon: 3, title: '敏感信息查看'}, function (index) {
        $.ajax({
            url: Feng.ctxPath + '/system/sensitive/app-user/' + TQuestion.seItem.id,
            type: 'GET',
            success: function (data) {
                if (!data) { Feng.info('未查询到用户信息'); return; }
                var html = '<div style="padding:20px;line-height:28px">'
                    + '<div>姓名:' + (data.name || '') + '</div>'
                    + '<div>手机号:' + (data.phone || '') + '</div>'
                    + '<div>身份证号:' + (data.idCard || '') + '</div></div>';
                layer.open({type: 1, title: '用户敏感信息(已记录审计日志)', area: ['420px', '260px'], content: html});
            },
            error: function () { Feng.error('无权查看敏感信息或查询失败'); }
        });
        layer.close(index);
    });
};
/**
 * 查看学员详情
@@ -292,6 +318,7 @@
            data1.ids.push(id);
        });
        data1.state = 3;
        Feng.confirm("确认删除所选内容?", function () {
        $.ajax({
            url: Feng.ctxPath + "/benefits/changeState",
            type: "POST",
@@ -305,6 +332,7 @@
                var errorMessage = xhr.responseText ? xhr.responseText : "删除失败!";
                Feng.error(errorMessage);
            }
        });
        });
    }
};
@@ -375,7 +403,6 @@
        Feng.info("请选择性别")
        return;
    }
    $.ajax({
        url: Feng.ctxPath + "/appUser/addAppUser" ,
        type: "POST",
@@ -542,7 +569,6 @@
        Feng.info("请选择销售人员")
        return;
    }
    $.ajax({
        url: Feng.ctxPath + "/appUser/addAppUser" ,
        type: "POST",