新增控制nas上传oss的入口
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user