From 1a0c0fc8b02415e919e17c0b6ffbf99d08dec8f5 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期五, 07 四月 2023 17:40:53 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- management/guns-admin/src/main/webapp/static/modular/system/tAppUser/tAppUser.js | 32 ++++++++++++++++++++++++++++---- 1 files changed, 28 insertions(+), 4 deletions(-) diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tAppUser/tAppUser.js b/management/guns-admin/src/main/webapp/static/modular/system/tAppUser/tAppUser.js index 77e7147..2c50279 100644 --- a/management/guns-admin/src/main/webapp/static/modular/system/tAppUser/tAppUser.js +++ b/management/guns-admin/src/main/webapp/static/modular/system/tAppUser/tAppUser.js @@ -17,15 +17,39 @@ {title: '用户ID', field: 'id', visible: true, align: 'center', valign: 'middle'}, {title: '用户昵称', field: 'nickname', visible: true, align: 'center', valign: 'middle'}, {title: '手机号', field: 'phone', visible: true, align: 'center', valign: 'middle'}, - {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle'}, - {title: '头像', field: 'avatar', visible: true, align: 'center', valign: 'middle'}, + {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', + formatter: function (value, row) { + if (row.sex === 1){ + return '<span>男</span>' + }else if (row.sex === 2){ + return '<span>女</span>' + }else { + return '<span>未知</span>' + } + } + }, + {title: '头像', field: 'avatar', visible: true, align: 'center', valign: 'middle', + formatter: function (value, row) { + return '<img src="'+row.avatar+'" style="height: 60px;width: 60px"/>' + } + }, {title: '微信openid', field: 'openid', visible: true, align: 'center', valign: 'middle'}, {title: '微信unionid', field: 'unionid', visible: true, align: 'center', valign: 'middle'}, {title: '紧急联系人', field: 'emergencyContact', visible: true, align: 'center', valign: 'middle'}, {title: '紧急联系电话', field: 'emergencyPhone', visible: true, align: 'center', valign: 'middle'}, {title: '账户余额', field: 'accountBalance', visible: true, align: 'center', valign: 'middle'}, {title: '用户标签id', field: 'userTagId', visible: true, align: 'center', valign: 'middle'}, - {title: '状态', field: 'status', visible: true, align: 'center', valign: 'middle'}, + {title: '状态', field: 'status', visible: true, align: 'center', valign: 'middle', + formatter: function (value, row) { + if (row.status === 1){ + return '<span>正常</span>' + }else if (row.status === 2){ + return '<span>冻结</span>' + }else if (row.status === 3){ + return '<span>已删除</span>' + } + } + }, {title: '添加时间', field: 'createTime', visible: true, align: 'center', valign: 'middle'}, // {title: '是否异常', field: 'isException', hidden:true, visible: true, align: 'center', valign: 'middle'}, // {title: '启用冻结理由', field: 'remark', hidden:true,visible: true, align: 'center', valign: 'middle'}, @@ -128,7 +152,6 @@ */ TAppUser.updateStatus = function () { var ajax = new $ax(Feng.ctxPath + "/tAppUser/update-status", function (data) { - console.log(111111) Feng.success("修改成功!"); TAppUserInfoDlg.close(); parent.TAppUser.table.refresh(); @@ -247,6 +270,7 @@ $("#createTime").val(''); $("#id").val(''); $("#status").val(''); + TAppUser.search(); } $(function () { -- Gitblit v1.7.1