revert: 健康检查脚本移动到 healths.js 脚本中

This commit is contained in:
Argo Zhang 2020-01-04 18:05:07 +08:00
parent db09c2ecc4
commit bd3c725e4d
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,9 @@
$(function () {
$.extend({
sendHealths: function (data) {
$.bc({ url: 'api/Interface/Healths', data: JSON.stringify(data), method: 'post' });
}
});
var healthStatus = ['<button class="btn btn-danger"><i class="fa fa-times-circle"></i><span>不健康</span></button>', '<button class="btn btn-warning"><i class="fa fa-exclamation-circle"></i><span>亚健康</span></button>', '<button class="btn btn-success"><i class="fa fa-check-circle"></i><span>健康</span></button>'];
var StatusFormatter = function (value) {
return healthStatus[value];