mirror of https://github.com/jumpserver/jumpserver
[Update] 修改user list 页面字段宽度
parent
bf40aa8df0
commit
1bba00412a
|
@ -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>'
|
||||||
|
|
|
@ -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()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue