feat: address
This commit is contained in:
@@ -215,7 +215,19 @@ layui.use(['table', 'form', 'layer'], function () {
|
||||
{ field: 'bnb', title: 'BNB', width: 100, sort: true },
|
||||
{ field: 'channel_id', title: '渠道 ID', width: 140 },
|
||||
{ field: 'created_at', title: '创建时间', width: 170, sort: true },
|
||||
{ field: 'monitor', title: '监听', width: 80, fixed: 'right', templet: function (d) {
|
||||
{ field: 'monitor_failures', title: '失败次数', width: 90, templet: function (d) {
|
||||
if (Number(d.monitor) !== 1 || d.monitor_synced) { return '—'; }
|
||||
var f = Number(d.monitor_failures) || 0;
|
||||
if (f === 0) { return '0'; }
|
||||
return '<span class="addr-monitor-off">' + f + '</span>';
|
||||
}},
|
||||
{ field: 'monitor_synced', title: '已同步', width: 90, templet: function (d) {
|
||||
if (Number(d.monitor) !== 1) { return '—'; }
|
||||
return d.monitor_synced
|
||||
? '<span class="addr-monitor-on">是</span>'
|
||||
: '<span class="addr-monitor-off">否</span>';
|
||||
}},
|
||||
{ field: 'monitor', title: '监听开关', width: 90, fixed: 'right', templet: function (d) {
|
||||
return Number(d.monitor) === 1
|
||||
? '<span class="addr-monitor-on">开</span>'
|
||||
: '<span class="addr-monitor-off">关</span>';
|
||||
|
||||
@@ -573,9 +573,17 @@ layui.use(['table', 'form', 'laypage', 'layer'], function () {
|
||||
{ field: 'eth', title: 'ETH', width: 90 },
|
||||
{ field: 'btc', title: 'BTC', width: 100 },
|
||||
{ field: 'bnb', title: 'BNB', width: 90 },
|
||||
{ field: 'monitor', title: '监听', width: 70, templet: function (d) {
|
||||
{ field: 'monitor', title: '监听开关', width: 80, templet: function (d) {
|
||||
return Number(d.monitor) === 1 ? '开' : '关';
|
||||
} },
|
||||
{ field: 'monitor_synced', title: '已同步', width: 80, templet: function (d) {
|
||||
if (Number(d.monitor) !== 1) { return '—'; }
|
||||
return d.monitor_synced ? '是' : '否';
|
||||
} },
|
||||
{ field: 'monitor_failures', title: '失败', width: 70, templet: function (d) {
|
||||
if (Number(d.monitor) !== 1 || d.monitor_synced) { return '—'; }
|
||||
return Number(d.monitor_failures) || 0;
|
||||
} },
|
||||
{ field: 'updated_at', title: '更新时间', width: 170, sort: true, templet: function (d) { return dash(d.updated_at); } }
|
||||
]],
|
||||
mnemonics: [[
|
||||
|
||||
Reference in New Issue
Block a user