hn_cloud_web/smz-web/js/work/fileLibrary/fileLibrary.js

42 lines
1.0 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

let checkList = [];
let allIds = '';
let loadingMsg;
var form;
var element;
//保存显示页面的类型 1列表2文件夹
var displayType = 1;
var example;
var exampleSub;
var exampleFile;
var json = {
'id': 0,
'pids': "",
'name': "全部文件"
}
layui.use(['layer', 'form', 'element', 'laydate'], function () {
$(".navigation").click(function (e) {
//样式调整
$(".navigation").removeClass("navigation_click");
$(this).addClass("navigation_click");
var text = $(this).children("span").text();
// 获取iframe元素
var iframeElement = document.getElementById('myIframe');
if(text == '全部'){
iframeElement.src = 'proLibrary.html';
}else if(text == '我上传的'){
iframeElement.src = 'uploadMeLibrary.html';
}else if(text == '星标文件'){
iframeElement.src = 'starLibrary.html';
}else if(text == '最近浏览'){
iframeElement.src = 'latelyLibrary.html';
}
})
});