diff --git a/web/html/body/nas/oss.html b/web/html/body/nas/oss.html new file mode 100644 index 0000000..620860a --- /dev/null +++ b/web/html/body/nas/oss.html @@ -0,0 +1,101 @@ + + + +
+ + +密码管理器@@ -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 }) diff --git a/web/html/footer.html b/web/html/footer.html index 3cdcd67..064b8d3 100644 --- a/web/html/footer.html +++ b/web/html/footer.html @@ -10,7 +10,7 @@
"+l.time[e]+"
"+l.time[e]+"