[Update] 修改user list 页面字段宽度

pull/3454/head
ibuler 2019-11-19 11:25:36 +08:00
parent bf40aa8df0
commit 1bba00412a
2 changed files with 4 additions and 4 deletions

View File

@ -151,9 +151,9 @@ function initTable() {
}}, }},
{targets: 4, createdCell: function (td, cellData, rowData) { {targets: 4, createdCell: function (td, cellData, rowData) {
var innerHtml = ""; var innerHtml = "";
if (cellData.status == 1) { if (cellData.status === 1) {
innerHtml = '<i class="fa fa-circle text-navy"></i>' innerHtml = '<i class="fa fa-circle text-navy"></i>'
} else if (cellData.status == 0) { } else if (cellData.status === 0) {
innerHtml = '<i class="fa fa-circle text-danger"></i>' innerHtml = '<i class="fa fa-circle text-danger"></i>'
} else { } else {
innerHtml = '<i class="fa fa-circle text-warning"></i>' innerHtml = '<i class="fa fa-circle text-warning"></i>'

View File

@ -124,8 +124,8 @@ function initTable() {
{data: "role"}, {data: "role"},
{data: "groups_display", orderable: false}, {data: "groups_display", orderable: false},
{data: "source"}, {data: "source"},
{data: "is_valid", orderable: false}, {data: "is_valid", orderable: false, width: "50px"},
{data: "id", orderable: false} {data: "id", orderable: false, width: "100px"}
], ],
op_html: $('#actions').html() op_html: $('#actions').html()
}; };