From c2a1f5f286b8a7372811b61acf2f31303b68db61 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期三, 22 二月 2023 18:46:00 +0800
Subject: [PATCH] 司机管理新增,修改
---
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