update
This commit is contained in:
@@ -172,6 +172,9 @@
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
let tabid = -1;
|
||||
$.get("/login/check.do", function (data) {
|
||||
let json = JSON.parse(data);
|
||||
@@ -239,7 +242,7 @@
|
||||
, content: "确认删除 " + name
|
||||
, btn: ['确认', '取消']
|
||||
, yes: function (index) {
|
||||
$.post('/tools/password/type/set/remove.do', { id: id }, function (data) {
|
||||
$.post('/anim/type/del.do', { id: id }, function (data) {
|
||||
let json = JSON.parse(data);
|
||||
layer.msg(json.msg);
|
||||
})
|
||||
@@ -251,13 +254,7 @@
|
||||
})
|
||||
|
||||
});
|
||||
table.on('rowDouble(listTools)', function (data) {
|
||||
$.get('/tools/password/get/password.do?id=' + data.data.id, function (udata) {
|
||||
let json = JSON.parse(udata);
|
||||
data.data.password = json.data;
|
||||
data.update(data.data)
|
||||
})
|
||||
})
|
||||
|
||||
table.on('tool(listTools)', function (obj) {
|
||||
if (obj.event === 'edit') {
|
||||
$("#type").find("option:contains('" + obj.data.categories + "')").attr("selected", null);
|
||||
@@ -276,6 +273,11 @@
|
||||
, content: "删除操作无法回滚,是否确认删除:" + obj.data.title
|
||||
, btn: ['确认', '取消']
|
||||
, yes: function (index) {
|
||||
$.post('/anim/rss/del.do', { id: obj.data.id }, function (data) {
|
||||
let json = JSON.parse(data);
|
||||
layer.msg(json.msg)
|
||||
layer.close(index)
|
||||
})
|
||||
|
||||
},
|
||||
btn2: function (index) {
|
||||
@@ -324,16 +326,14 @@
|
||||
where: {
|
||||
key: $('#title').val(),
|
||||
type: form.val("formTest").type,
|
||||
team:form.val("formTest").team
|
||||
team: form.val("formTest").team
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
});
|
||||
$.ajax({ cache: false })
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
|
||||
//let js="" ; $('#team option').each(function() { let value=$(this).val(); let text=$(this).text(); js+='{"'+value+'":"'+text+'"},'})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<div id="side"></div>
|
||||
<blockquote class="layui-elem-quote"><span id="ip">B站直播下载器</span></blockquote>
|
||||
<button type="button" id='add' class="layui-btn layui-btn-normal" style="margin-left: 10px;">新增</button>
|
||||
<table id="address" lay-filter="listTools" ></table>
|
||||
<table id="address" lay-filter="listTools"></table>
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
|
||||
</script>
|
||||
<script>
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
$.get("/login/check.do", function (data) {
|
||||
let json = JSON.parse(data);
|
||||
if (json.code != 0) {
|
||||
@@ -105,21 +108,19 @@
|
||||
})
|
||||
});
|
||||
$.ajax({ cache: false })
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
$('#add').click(function(){
|
||||
|
||||
$('#add').click(function () {
|
||||
layer.prompt({
|
||||
title:"填写url或cid"
|
||||
},function(value,index){
|
||||
$.post("/bili/live/add/url.do",{url:value},function(data){
|
||||
let json=JSON.parse(data);
|
||||
title: "填写url或cid"
|
||||
}, function (value, index) {
|
||||
$.post("/bili/live/add/url.do", { url: value }, function (data) {
|
||||
let json = JSON.parse(data);
|
||||
layer.msg(json.msg);
|
||||
layer.close(index)
|
||||
});
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@@ -20,16 +20,16 @@
|
||||
<script src="/layui/layui.js"></script>
|
||||
<script src="/js/jquery-3.2.1.js"></script>
|
||||
<script>
|
||||
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
layui.use(['layer', 'form', 'element'], function () {
|
||||
var layer = layui.layer
|
||||
, form = layui.form;
|
||||
|
||||
});
|
||||
$.ajax({ cache: false })
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
|
||||
$.get("/login/check.do", function (data) {
|
||||
let json = JSON.parse(data);
|
||||
if (json.code != 0) {
|
||||
@@ -38,9 +38,10 @@
|
||||
})
|
||||
</script>
|
||||
<style>
|
||||
#icon {
|
||||
#icon {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.body {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
86
web/html/body/nas/sftp.html
Normal file
86
web/html/body/nas/sftp.html
Normal file
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>FTP</title>
|
||||
<link rel="stylesheet" href="/layui/css/layui.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div id="header"></div>
|
||||
<div class="layui-body" style="top: 100px; ">
|
||||
|
||||
<div id="side"></div>
|
||||
<blockquote class="layui-elem-quote"><span id="ip">SFTP</span></blockquote>
|
||||
<div id="sftp"></div>
|
||||
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
|
||||
<script src="/layui/layui.js"></script>
|
||||
<script src="/js/jquery-3.2.1.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
layui.use('tree', function () {
|
||||
var tree = layui.tree;
|
||||
|
||||
//渲染
|
||||
var inst1 = tree.render({
|
||||
elem: '#sftp' //绑定元素
|
||||
,edit: ['add', 'update', 'del'] //操作节点的图标
|
||||
, data: [{
|
||||
title: '江西' //一级菜单
|
||||
, children: [{
|
||||
title: '南昌' //二级菜单
|
||||
, children: [{
|
||||
title: '高新区' //三级菜单
|
||||
//…… //以此类推,可无限层级
|
||||
}]
|
||||
}]
|
||||
}, {
|
||||
title: '陕西' //一级菜单
|
||||
, children: [{
|
||||
title: '西安' //二级菜单
|
||||
}]
|
||||
}]
|
||||
,click:function(obj){
|
||||
console.log(obj.data)
|
||||
if(!obj.data.children){
|
||||
obj.data={
|
||||
"title":obj.data.title,
|
||||
"children":[
|
||||
{"title":'a'}
|
||||
]
|
||||
}
|
||||
inst1.reload({
|
||||
data:obj.data,
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
$.ajax({ cache: false })
|
||||
|
||||
</script>
|
||||
</body>
|
||||
<style>
|
||||
#icon {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#rss+.layui-table-view tbody>tr>td>.layui-table-cell {
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</html>
|
||||
@@ -47,6 +47,9 @@
|
||||
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
|
||||
</script>
|
||||
<script>
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
$.get("/login/check.do", function (data) {
|
||||
let json = JSON.parse(data);
|
||||
if (json.code != 0) {
|
||||
@@ -125,9 +128,6 @@
|
||||
|
||||
});
|
||||
$.ajax({ cache: false })
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
$.get("/auth/nas/address/get.do", function (data) {
|
||||
var json = JSON.parse(data);
|
||||
if (json.code != 0) {
|
||||
|
||||
@@ -41,6 +41,9 @@
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
$.get("/login/check.do", function (data) {
|
||||
let json = JSON.parse(data);
|
||||
if (json.code != 0) {
|
||||
@@ -222,9 +225,7 @@
|
||||
})
|
||||
});
|
||||
$.ajax({ cache: false })
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user