From be1cd9e5b30097ca427a9c2b7b054b28854e410a Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 11 三月 2026 13:21:36 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/user/user.js |   67 ++++++++++++++++++++++++++++++++-
 1 files changed, 64 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/static/js/user/user.js b/src/main/webapp/static/js/user/user.js
index 84396c6..c12cb8d 100644
--- a/src/main/webapp/static/js/user/user.js
+++ b/src/main/webapp/static/js/user/user.js
@@ -2597,6 +2597,65 @@
     }
 
     ]);
+    fieldMeta.push({
+        field: 'mfaAllow',
+        columnName: 'mfa_allow',
+        label: 'MFA鎺堟潈',
+        tableProp: 'mfaAllow',
+        exportField: 'mfaAllow$',
+        kind: 'checkbox',
+        valueType: 'number',
+        required: false,
+        primaryKey: false,
+        sortable: false,
+        textarea: false,
+        minWidth: 110,
+        enumOptions: [],
+        foreignQuery: '',
+        checkboxActiveRaw: '1',
+        checkboxInactiveRaw: '0',
+        searchable: false
+    });
+    fieldMeta.push({
+        field: 'mfaEnabled',
+        columnName: 'mfa_enabled',
+        label: 'MFA鍚敤',
+        tableProp: 'mfaEnabled',
+        exportField: 'mfaEnabled$',
+        kind: 'checkbox',
+        valueType: 'number',
+        required: false,
+        primaryKey: false,
+        sortable: false,
+        textarea: false,
+        minWidth: 110,
+        enumOptions: [],
+        foreignQuery: '',
+        checkboxActiveRaw: '1',
+        checkboxInactiveRaw: '0',
+        searchable: false,
+        editable: false
+    });
+    fieldMeta.push({
+        field: 'mfaBoundTime',
+        columnName: 'mfa_bound_time',
+        label: 'MFA缁戝畾鏃堕棿',
+        tableProp: 'mfaBoundTime$',
+        exportField: 'mfaBoundTime$',
+        kind: 'text',
+        valueType: 'string',
+        required: false,
+        primaryKey: false,
+        sortable: false,
+        textarea: false,
+        minWidth: 168,
+        enumOptions: [],
+        foreignQuery: '',
+        checkboxActiveRaw: 'Y',
+        checkboxInactiveRaw: 'N',
+        searchable: false,
+        editable: false
+    });
 
     function formatFieldLabel(field) {
         var raw = field && field.label ? String(field.label).trim() : '';
@@ -2659,7 +2718,7 @@
     }
 
     function isSearchableField(field) {
-        return !!field && field.kind !== 'image' && !field.textarea;
+        return !!field && field.kind !== 'image' && !field.textarea && field.searchable !== false;
     }
 
     function isSortableField(field) {
@@ -2716,7 +2775,9 @@
     }
 
     function createDefaultVisibleColumnKeys() {
-        return fieldMeta.map(function (field) {
+        return fieldMeta.filter(function (field) {
+            return field.visible !== false;
+        }).map(function (field) {
             return field.field;
         });
     }
@@ -3041,7 +3102,7 @@
                 },
                 editableFields: function () {
                     return this.fieldMeta.filter(function (field) {
-                        return !field.primaryKey;
+                        return !field.primaryKey && field.editable !== false;
                     });
                 },
                 exportColumns: function () {

--
Gitblit v1.9.1