样式lable换成text

dep_wangsr
RuoYi 7 years ago committed by Limy
parent 3ff5cb6ea5
commit 8dea35550e

@ -34,9 +34,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 0) { if (value == 0) {
return '<span class="label label-success">正常</span>'; return '<span class="text-success">正常</span>';
} else if (value == 1) { } else if (value == 1) {
return '<span class="label label-danger">暂停</span>'; return '<span class="text-danger">暂停</span>';
} }
} }
}, },

@ -34,9 +34,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 0) { if (value == 0) {
return '<span class="label label-success">正常</span>'; return '<span class="text-success">正常</span>';
} else if (value == 1) { } else if (value == 1) {
return '<span class="label label-danger">异常</span>'; return '<span class="text-danger">异常</span>';
} }
} }
}, },

@ -30,9 +30,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 0) { if (value == 0) {
return '<span class="label label-success">成功</span>'; return '<span class="text-success">成功</span>';
} else if (value == 1) { } else if (value == 1) {
return '<span class="label label-danger">失败</span>'; return '<span class="text-danger">失败</span>';
} }
} }
}, },

@ -34,9 +34,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 'on_line') { if (value == 'on_line') {
return '<span class="label label-success">在线</span>'; return '<span class="text-success">在线</span>';
} else if (value == 'off_line') { } else if (value == 'off_line') {
return '<span class="label label-primary">离线</span>'; return '<span class="text-danger">离线</span>';
} }
} }
}, },

@ -34,9 +34,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 0) { if (value == 0) {
return '<span class="label label-success">成功</span>'; return '<span class="text-success">成功</span>';
} else if (value == 1) { } else if (value == 1) {
return '<span class="label label-danger">异常</span>'; return '<span class="text-danger">异常</span>';
} }
} }
}, },

@ -26,9 +26,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 'Y') { if (value == 'Y') {
return '<span class="label label-success">是</span>'; return '<span class="text-success">是</span>';
} else if (value == 'N') { } else if (value == 'N') {
return '<span class="label label-primary">否</span>'; return '<span class="text-danger">否</span>';
} }
} }
}, },

@ -18,9 +18,9 @@ function loading() {
title : '状态', title : '状态',
formatter : function(item, index) { formatter : function(item, index) {
if (item.status == '0') { if (item.status == '0') {
return '<span class="label label-success">正常</span>'; return '<span class="text-success">正常</span>';
} else if (item.status == '1') { } else if (item.status == '1') {
return '<span class="label label-danger">停用</span>'; return '<span class="text-danger">停用</span>';
} }
} }
}, },

@ -26,9 +26,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 0) { if (value == 0) {
return '<span class="label label-success">正常</span>'; return '<span class="text-success">正常</span>';
} else if (value == 1) { } else if (value == 1) {
return '<span class="label label-danger">停用</span>'; return '<span class="text-danger">停用</span>';
} }
} }
}, },

@ -22,9 +22,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 0) { if (value == 0) {
return '<span class="label label-success">正常</span>'; return '<span class="text-success">正常</span>';
} else if (value == 1) { } else if (value == 1) {
return '<span class="label label-danger">停用</span>'; return '<span class="text-danger">停用</span>';
} }
} }
}, },

@ -50,9 +50,9 @@ function loading() {
width : '10%', width : '10%',
formatter: function(row, index) { formatter: function(row, index) {
if (row.visible == 0) { if (row.visible == 0) {
return '<span class="label label-success">显示</span>'; return '<span class="text-success">显示</span>';
} else if (row.visible == 1) { } else if (row.visible == 1) {
return '<span class="label label-danger">隐藏</span>'; return '<span class="text-danger">隐藏</span>';
} }
} }
}, },

@ -25,9 +25,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 0) { if (value == 0) {
return '<span class="label label-success">正常</span>'; return '<span class="text-success">正常</span>';
} else if (value == 1) { } else if (value == 1) {
return '<span class="label label-danger">停用</span>'; return '<span class="text-danger">停用</span>';
} }
} }
}, },

@ -26,9 +26,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == 0) { if (value == 0) {
return '<span class="label label-success">正常</span>'; return '<span class="text-success">正常</span>';
} else if (value == 1) { } else if (value == 1) {
return '<span class="label label-danger">禁用</span>'; return '<span class="text-danger">禁用</span>';
} }
} }
}, },

@ -37,9 +37,9 @@ function queryUserList() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (value == '0') { if (value == '0') {
return '<span class="label label-success">正常</span>'; return '<span class="text-success">正常</span>';
} else if (value == '1') { } else if (value == '1') {
return '<span class="label label-danger">禁用</span>'; return '<span class="text-danger">禁用</span>';
} }
} }
}, },

Loading…
Cancel
Save