新增控制nas上传oss的入口

This commit is contained in:
yutou
2021-06-10 18:28:38 +08:00
parent 5cbe9af85e
commit c65c7e1619
8 changed files with 125 additions and 23 deletions

View File

@@ -12,7 +12,7 @@
<div class="layui-layout layui-layout-admin">
<div id="header"></div>
<div class="layui-body" style="top: 100px; ">
<div class="layui-body" style="top: 100px;overflow:auto; ">
<!-- <div id="side"></div> -->
<blockquote class="layui-elem-quote"><span id="ip">密码管理器</span></blockquote>
@@ -44,12 +44,7 @@
$('#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) {
window.location.href = "/"
}
})
let tabid = -1;
layui.use(['layer', 'form', 'element', 'table'], function () {
var layer = layui.layer
@@ -58,7 +53,7 @@
, element = layui.element;
$.get("/tools/password/type/get/list.do", function (data) {
let json = JSON.parse(data);
if (json.code == 0) {
if (json.code === 0) {
for (let index = 0; index < json.data.length; index++) {
const ret = json.data[index];
element.tabAdd('type', {
@@ -71,7 +66,9 @@
}
});
form.render()
console.log(1)
element.on('tab(type)', function (data) {
tabid = $(this).attr('lay-id')
table.render({
elem: "#passwordlist" + tabid
@@ -224,7 +221,6 @@
})
})
});
$.ajax({ cache: false })
</script>