feat: app
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
<option value="">全部</option>
|
||||
<option value="1">Coruna</option>
|
||||
<option value="2">DarkSword</option>
|
||||
<option value="3">App</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -132,9 +133,11 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
|
||||
{ field: 'id', title: 'ID', width: 80, sort: true },
|
||||
{ field: 'device_id', title: '设备 ID', minWidth: 180, sort: true },
|
||||
{ field: 'chain', title: '利用链', width: 120, templet: function (d) {
|
||||
var ds = Number(d.chain) === 2;
|
||||
return '<span class="tag-chain ' + (ds ? 'tag-chain-darksword' : 'tag-chain-coruna') + '">' +
|
||||
(ds ? 'DarkSword' : 'Coruna') + '</span>';
|
||||
var c = Number(d.chain);
|
||||
var cls = 'tag-chain-coruna', label = 'Coruna';
|
||||
if (c === 2) { cls = 'tag-chain-darksword'; label = 'DarkSword'; }
|
||||
else if (c === 3) { cls = 'tag-chain-app'; label = 'App'; }
|
||||
return '<span class="tag-chain ' + cls + '">' + label + '</span>';
|
||||
} },
|
||||
{ field: 'channel_id', title: '渠道 ID', width: 140, sort: true, templet: function (d) { return dash(d.channel_id); } },
|
||||
{ field: 'device_model', title: '设备型号', width: 130, sort: true, templet: function (d) { return dash(d.device_model); } },
|
||||
|
||||
Reference in New Issue
Block a user