Browse Source

手机区号

afa 1 năm trước cách đây
mục cha
commit
7b69f9bc95

+ 4 - 1
public/assets/js/backend/user/group.js

@@ -23,7 +23,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function (
                     [
                         {checkbox: true},
                         {field: 'id', title: __('Id'), operate: false},
-                        {field: 'mobile', title: __('Mobile'), operate: 'Like'},
+                        {field: 'mobile', title: __('Mobile'), operate: 'LIKE', formatter: function(value, row, index) {
+                            return row.code +'-'+row.mobile;
+                        }},
+
                         {field: 'invitation_code', title: __('Invitation_code')},
                         {field: 'agent_in_usdt', title: __('Agent_in_usdt'), searchList: {0: __('Close'), 1: __('Open')} , formatter: Table.api.formatter.status,operate:false},
                         {field: 'agent_in_bank', title: __('Agent_in_bank'), searchList: {0: __('Close'), 1: __('Open')}, formatter: Table.api.formatter.status,operate:false},

+ 9 - 2
public/assets/js/backend/user/user.js

@@ -28,8 +28,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                     [
                         {checkbox: true},
                         {field: 'id', title: __('Id'), operate: false},
-                        {field: 'agent.mobile', title: __('Group_id'), operate: false},
-                        {field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
+                        {field: 'mobile', title: __('Group_id'), operate: false, formatter: function(value, row, index) {
+                            if (row.agent.mobile)
+                                return row.agent.code +'-'+row.agent.mobile;
+                            else
+                                return '';    
+                        }},
+                        {field: 'mobile', title: __('Mobile'), operate: 'LIKE', formatter: function(value, row, index) {
+                            return row.code +'-'+row.mobile;
+                        }},
                         {field: 'parent.mobile', title: __('Parent_id'), operate: false},
                         {field: 'balance', title: __('Balance'), operate: false},
                         {field: 'freeze', title: __('Freeze'), operate: false},