| | |
| | | {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] |
| | | }} |
| | | ]; |
| | | }; |
| | |
| | | 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); |
| | | }); |
| | | }; |
| | | /** |
| | | * 查看学员详情 |
| | |
| | | data1.ids.push(id); |
| | | }); |
| | | data1.state = 3; |
| | | Feng.confirm("确认删除所选内容?", function () { |
| | | $.ajax({ |
| | | url: Feng.ctxPath + "/benefits/changeState", |
| | | type: "POST", |
| | |
| | | var errorMessage = xhr.responseText ? xhr.responseText : "删除失败!"; |
| | | Feng.error(errorMessage); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }; |
| | |
| | | Feng.info("请选择性别") |
| | | return; |
| | | } |
| | | |
| | | $.ajax({ |
| | | url: Feng.ctxPath + "/appUser/addAppUser" , |
| | | type: "POST", |
| | |
| | | Feng.info("请选择销售人员") |
| | | return; |
| | | } |
| | | |
| | | $.ajax({ |
| | | url: Feng.ctxPath + "/appUser/addAppUser" , |
| | | type: "POST", |