|
@@ -15,6 +15,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
});
|
|
|
|
|
|
var table = $("#table");
|
|
|
+ var c_remarks = Config.c_remarks;
|
|
|
+ var b_remarks = Config.b_remarks;
|
|
|
|
|
|
// 初始化表格
|
|
|
table.bootstrapTable({
|
|
@@ -43,16 +45,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
searchList: {"1": __('Level 1'), "2": __('Level 2'), "3": __('Level 3')},
|
|
|
formatter: Table.api.formatter.normal
|
|
|
},
|
|
|
- {field: 'joinremarks1.value', title: __('Remarks1')},
|
|
|
- {field: 'joinremarks2.value', title: __('Remarks2')},
|
|
|
- {field: 'joinremarks3.value', title: __('Remarks3')},
|
|
|
+ {field: 'joinremarks1.value', title: __('Remarks1'),visible:c_remarks},
|
|
|
+ {field: 'joinremarks2.value', title: __('Remarks2'),visible:c_remarks},
|
|
|
+ {field: 'joinremarks3.value', title: __('Remarks3'),visible:c_remarks},
|
|
|
{
|
|
|
field: 'type_remarks',
|
|
|
title: __('TypeRemarks'),
|
|
|
formatter: Table.api.formatter.normal,
|
|
|
- searchList: {"1": __('TypeRemarks 1'), "2": __('TypeRemarks 2'), "3": __('TypeRemarks 3')}
|
|
|
+ searchList: {"1": __('TypeRemarks 1'), "2": __('TypeRemarks 2'), "3": __('TypeRemarks 3')},visible:b_remarks
|
|
|
},
|
|
|
- {field: 'bindremarks.value', title: __('BindRemarks'), operate: false,},
|
|
|
+ {field: 'bindremarks.value', title: __('BindRemarks'), operate: false,visible:b_remarks},
|
|
|
{field: 'score', title: __('Score'), operate: 'LIKE'},
|
|
|
{
|
|
|
field: 'logintime',
|
|
@@ -99,7 +101,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
classname: 'btn btn-xs btn-success btn-magic btn-ajax',
|
|
|
confirm: '确认重置密码?重置后密码:123456',
|
|
|
url: 'user/user/reset_password?ids={id}',
|
|
|
- // visible: function (row) {
|
|
|
+ // visible: function (row) {
|
|
|
// if ((row.status == 1) || (row.status == 5)) {
|
|
|
// return true;
|
|
|
// } else {
|