From ee00ca28898f7bc99b98fb8f8c1898058bb291de Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期二, 21 二月 2023 18:32:08 +0800
Subject: [PATCH] 司机管理

---
 management/guns-admin/src/main/webapp/static/modular/system/tAppUser/tAppUser.js |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 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..5722d7d 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,7 +17,17 @@
             {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: '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'},
             {title: '微信openid', field: 'openid', visible: true, align: 'center', valign: 'middle'},
             {title: '微信unionid', field: 'unionid', visible: true, align: 'center', valign: 'middle'},
@@ -25,7 +35,17 @@
             {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 +148,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 +266,7 @@
     $("#createTime").val('');
     $("#id").val('');
     $("#status").val('');
+    TAppUser.search();
 }
 
 $(function () {

--
Gitblit v1.7.1