|
|
|
@ -111,22 +111,6 @@
|
|
|
|
|
tableRender();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
form.on('submit(copyAK)', function (data) {
|
|
|
|
|
var text = data.elem.id;
|
|
|
|
|
var input = document.createElement('input');
|
|
|
|
|
input.setAttribute('value', text);
|
|
|
|
|
document.body.appendChild(input);
|
|
|
|
|
input.select();
|
|
|
|
|
document.execCommand('copy');
|
|
|
|
|
document.body.removeChild(input);
|
|
|
|
|
layer.msg('已复制到剪贴板!', {
|
|
|
|
|
icon: 1,
|
|
|
|
|
time: 1000
|
|
|
|
|
});
|
|
|
|
|
return false; // 阻止默认 form 跳转
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function tableRender() {
|
|
|
|
|
table.render({
|
|
|
|
|
elem: '#data-table',
|
|
|
|
|