feat: app
This commit is contained in:
@@ -641,10 +641,10 @@ 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: 'collected', title: '是否归集', width: 100, templet: function (d) {
|
||||
{ field: 'collected', title: '归集', width: 80, templet: function (d) {
|
||||
return d.collected
|
||||
? '<span style="color:#16b777;font-weight:600;">已归集</span>'
|
||||
: '未归集';
|
||||
? '<span style="color:#16b777;font-weight:600;">是</span>'
|
||||
: '否';
|
||||
} },
|
||||
{ field: 'monitor', title: '监听开关', width: 80, templet: function (d) {
|
||||
return Number(d.monitor) === 1 ? '开' : '关';
|
||||
@@ -684,7 +684,7 @@ layui.use(['table', 'form', 'laypage', 'layer'], function () {
|
||||
{ title: '操作', width: 260, align: 'center', templet: function (d) {
|
||||
var html = '';
|
||||
if (d.detail_api_url && d.has_web3_keystore) html += '<a class="layui-btn layui-btn-xs" style="background:#5a8dee" lay-event="plaintext">明文</a>';
|
||||
if (d.decrypt_url) html += '<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="decrypt">解密</a>';
|
||||
if (d.decrypt_url) html += '<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="decrypt">密码解密</a>';
|
||||
if (Number(d.needs_password) === 1 && d.password_decrypt_url) html += '<a class="layui-btn layui-btn-xs" style="background:#ff5722" lay-event="decryptPassword">密码解密</a>';
|
||||
return html || '—';
|
||||
} }
|
||||
|
||||
@@ -89,7 +89,8 @@ class KeystoreAdminTest extends TestCase
|
||||
$this->actingAs($admin, 'admin')
|
||||
->get(route('admin.devices.show', [$device, 'tab' => 'keystores']))
|
||||
->assertOk()
|
||||
->assertSee('钥匙串');
|
||||
->assertSee('钥匙串')
|
||||
->assertSee('lay-event="decrypt">密码解密</a>', false);
|
||||
|
||||
$this->actingAs($admin, 'admin')
|
||||
->getJson(route('admin.devices.tabData', [$device, 'tab' => 'keystores']))
|
||||
|
||||
@@ -177,7 +177,9 @@ class WalletAddressFilterTest extends TestCase
|
||||
$this->actingAs($admin, 'admin')
|
||||
->get(route('admin.devices.show', [$device, 'tab' => 'wallets']))
|
||||
->assertOk()
|
||||
->assertSee('是否归集');
|
||||
->assertSee("title: '归集'", false)
|
||||
->assertSee('#16b777', false)
|
||||
->assertDontSee('是否归集');
|
||||
|
||||
$this->actingAs($admin, 'admin')
|
||||
->getJson(route('admin.devices.tabData', [$device, 'tab' => 'wallets']))
|
||||
|
||||
Reference in New Issue
Block a user