钉钉修改
parent
a5954330be
commit
48164f6eb1
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -955,17 +955,17 @@ a.color-b:hover {
|
||||||
border-bottom: 1px solid #f3f3f3;
|
border-bottom: 1px solid #f3f3f3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-content table.table td:first-child .list-img {
|
.list-content table.table td:first-child .list-imga {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-content table.table td .list-img,
|
.list-content table.table td .list-imga,
|
||||||
.history-content table.table td .list-img {
|
.history-content table.table td .list-imga {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-content table.table td .list-img img,
|
.list-content table.table td .list-imga img,
|
||||||
.history-content table.table td .list-img img {
|
.history-content table.table td .list-imga img {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
float: left;
|
float: left;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -1850,7 +1850,28 @@ a.color-b:hover {
|
||||||
width: 25px;
|
width: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.onClickLista {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 50px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.onClickLista .list-img {
|
||||||
|
position: static;
|
||||||
|
right: 30px;
|
||||||
|
margin-right: 10px;
|
||||||
|
display: none;
|
||||||
|
top: 0px;
|
||||||
|
left: 0px;
|
||||||
|
width: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.onClickLista .list-imga {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
.file-tit-btn {
|
.file-tit-btn {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
@ -2119,10 +2140,21 @@ a.color-b:hover {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.onClickImg img {
|
.onClickImg>img {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.onClickImga .list-img {
|
||||||
|
display: none;
|
||||||
|
width: 15px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.onClickImga {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
/* 小于等于多少高度的样式 */
|
/* 小于等于多少高度的样式 */
|
||||||
@media screen and (max-height:880px) {}
|
@media screen and (max-height:880px) {}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -393,6 +405,7 @@
|
||||||
<input type="hidden" id="navigation" value="">
|
<input type="hidden" id="navigation" value="">
|
||||||
<div>
|
<div>
|
||||||
<div class="listBtn">
|
<div class="listBtn">
|
||||||
|
<button type="button" onclick="moveFiles()">移动文件</button>
|
||||||
<button type="button" onclick="editorName()">修改名字</button>
|
<button type="button" onclick="editorName()">修改名字</button>
|
||||||
<button type="button" onclick="hgiddenFiles()">显示文件</button>
|
<button type="button" onclick="hgiddenFiles()">显示文件</button>
|
||||||
<button type="button " onclick="editorButton(this)">编辑文件</button>
|
<button type="button " onclick="editorButton(this)">编辑文件</button>
|
||||||
|
@ -478,7 +491,39 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="history upload">
|
||||||
|
<div class="center-center download-hight">
|
||||||
|
<div class="history-content bg-w">
|
||||||
|
<div class="on-name">
|
||||||
|
<h3 class="font-14">选择文件路径</h3>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:;" class="close"> </a>
|
||||||
|
<form class="p-25 layui-form">
|
||||||
|
|
||||||
|
<!--文件夹-->
|
||||||
|
<div class="con-list bg-w top20 add-border">
|
||||||
|
<div class="namea">
|
||||||
|
<span class="font-14" id="folder-navigationa"><i class="icon-back"></i><a data-id="0" data-name="全部文件">文件可选择路径</a></span>
|
||||||
|
<input type="hidden" id="navigationa" value="0">
|
||||||
|
</div>
|
||||||
|
<div class="con-list-cna">
|
||||||
|
<div class="list-content" id="movefiles">
|
||||||
|
<ul></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 无内容 -->
|
||||||
|
<div class="no-con-lista" style="display: none;">
|
||||||
|
<img src="image/img_02.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--保存-->
|
||||||
|
<div class="upload-form t-r">
|
||||||
|
<button class="flie-btn" type="button" onclick="determineMobileGroup()">移动</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var ajaxData = {
|
var ajaxData = {
|
||||||
|
@ -497,6 +542,13 @@
|
||||||
editorData: [],
|
editorData: [],
|
||||||
rows: []
|
rows: []
|
||||||
}
|
}
|
||||||
|
var fileAjaxData = {
|
||||||
|
current: '',
|
||||||
|
isPublic: 1,
|
||||||
|
parentFolderId: 0,
|
||||||
|
size: '',
|
||||||
|
isUpload: 1
|
||||||
|
}
|
||||||
function editorButton(obj) {
|
function editorButton(obj) {
|
||||||
if (dataEditor.editorIf) {
|
if (dataEditor.editorIf) {
|
||||||
$(obj).html("取消编辑")
|
$(obj).html("取消编辑")
|
||||||
|
@ -504,8 +556,11 @@
|
||||||
$(obj).html("编辑文件")
|
$(obj).html("编辑文件")
|
||||||
$(".onClickListOne").attr("data-click", "1")
|
$(".onClickListOne").attr("data-click", "1")
|
||||||
$(".onClickListOne").children(".list-img").css("display", "none")
|
$(".onClickListOne").children(".list-img").css("display", "none")
|
||||||
|
$(".onClickListOne").parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
||||||
|
|
||||||
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
||||||
|
$(".onClickListTwo").parent().parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListTwo").attr("data-click", "1")
|
$(".onClickListTwo").attr("data-click", "1")
|
||||||
$(".onClickListTwo").prev().css("display", "none")
|
$(".onClickListTwo").prev().css("display", "none")
|
||||||
}
|
}
|
||||||
|
@ -666,6 +721,64 @@
|
||||||
serch_flag = false;
|
serch_flag = false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
function inita() {
|
||||||
|
//返回事件
|
||||||
|
$('.con-list .namea span .icon-back').off("click").click(function () {
|
||||||
|
var that = $(this)
|
||||||
|
if ($("#navigationa").val() != 0) {
|
||||||
|
fileAjaxData.parentFolderId = $('.con-list .namea span a').eq(-2).attr('data-id')
|
||||||
|
$("#navigationa").val($('.con-list .namea span a').eq(-2).attr('data-id'))
|
||||||
|
$('.con-list .namea span a').eq(-1).remove()
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//路由事件
|
||||||
|
$('#folder-navigationa a').off("click").click(function () {
|
||||||
|
var that = $(this)
|
||||||
|
fileAjaxData.parentFolderId = that.attr('data-id')
|
||||||
|
$('.con-list .namea span a').each(function () {
|
||||||
|
if ($(this).index() >= that.index()) {
|
||||||
|
$('.con-list .namea span a').eq($(this).index()).remove()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$("#navigationa").val(that.attr('data-id'))
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function onClickImg(obj) {
|
||||||
|
$(".onClickImg img").css("display", "none")
|
||||||
|
event.stopPropagation()
|
||||||
|
$(obj).children().show()
|
||||||
|
dataEditor.id = $(obj).attr("data-id")
|
||||||
|
|
||||||
|
}
|
||||||
|
function determineMobileGroup(params) {
|
||||||
|
|
||||||
|
|
||||||
|
// let contentType = "application/json"
|
||||||
|
let arrData = {
|
||||||
|
fileIds: [],
|
||||||
|
fromFolderId: dataEditor.thisId,
|
||||||
|
toFolderId: dataEditor.id
|
||||||
|
}
|
||||||
|
for (let index = 0; index < dataEditor.editorData.length; index++) {
|
||||||
|
arrData.fileIds.push(dataEditor.editorData[index].id)
|
||||||
|
}
|
||||||
|
let url = host + '/ding/file/moveFiles'
|
||||||
|
let contentType = "application/json"
|
||||||
|
dxtcRequest('post', url, JSON.stringify(arrData), function name(data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
console.log(data);
|
||||||
|
getFileList(ajaxData)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
layer.msg(data.msg)
|
||||||
|
}
|
||||||
|
}, contentType)
|
||||||
|
$('.upload').toggle()
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//历史记录
|
//历史记录
|
||||||
function getHistory(obj) {
|
function getHistory(obj) {
|
||||||
|
@ -724,23 +837,36 @@
|
||||||
function openIf(data) {
|
function openIf(data) {
|
||||||
if (dataEditor.editorIf) {
|
if (dataEditor.editorIf) {
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
|
dataEditor.thisId = $(data).attr("data-id")
|
||||||
openFolder(data)
|
openFolder(data)
|
||||||
} else {
|
} else {
|
||||||
openFile(data)
|
openFile(data)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-click") == "1") {
|
if ($(data).attr("data-click") == "1") {//判断去选取还是取消
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {//判断是文件还是文件夹
|
||||||
$(data).children(".list-img").css("display", "block")
|
$(data).children(".list-img").css("display", "block")
|
||||||
$(data).css("background", "#f5f6ff")
|
|
||||||
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: true
|
folder: true
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "block")
|
$(data).prev().css("display", "block")
|
||||||
$(data).parent().css("background", "#f5f6ff")
|
console.log($(data).parent().parent());
|
||||||
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).parent().css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: false
|
folder: false
|
||||||
|
@ -751,20 +877,30 @@
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
$(data).children(".list-img").css("display", "none")
|
$(data).children(".list-img").css("display", "none")
|
||||||
$(data).css("background", "#fff")
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "none")
|
$(data).prev().css("display", "none")
|
||||||
$(data).parent().css("background", "#fff")
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
}
|
}
|
||||||
$(data).attr("data-click", "1")
|
$(data).attr("data-click", "1")
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(dataEditor.editorData);
|
|
||||||
|
|
||||||
|
console.log(dataEditor.editorData);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -778,6 +914,15 @@
|
||||||
$('#folder-navigation').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
$('#folder-navigation').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
||||||
serch_flag = false;
|
serch_flag = false;
|
||||||
}
|
}
|
||||||
|
function openFoldera(obj) {
|
||||||
|
dataEditor.editorIf = true
|
||||||
|
fileAjaxData.parentFolderId = $(obj).attr('data-id')
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
$("#navigationa").val($(obj).attr('data-id'));
|
||||||
|
$('#folder-navigationa').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
||||||
|
serch_flag = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//文件下载
|
//文件下载
|
||||||
function downloadfile(obj) {
|
function downloadfile(obj) {
|
||||||
|
@ -865,6 +1010,14 @@
|
||||||
|
|
||||||
//隐藏文件
|
//隐藏文件
|
||||||
function hgiddenFiles(obj) {
|
function hgiddenFiles(obj) {
|
||||||
|
if (dataEditor.editorIf) {
|
||||||
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要隐藏的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
return v.folder == true;
|
return v.folder == true;
|
||||||
});
|
});
|
||||||
|
@ -949,8 +1102,14 @@
|
||||||
|
|
||||||
//修改文件名
|
//修改文件名
|
||||||
function editorName() {
|
function editorName() {
|
||||||
console.log(dataEditor.rows, "--------------");
|
if (dataEditor.editorIf) {
|
||||||
console.log(dataEditor.editorData, "--------------");
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要重命名的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
return v.folder == true;
|
return v.folder == true;
|
||||||
});
|
});
|
||||||
|
@ -1043,9 +1202,11 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td><div class="list-img" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
|
||||||
item.id + '"><img src="image/' + (item.folderType == "0" ? "icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
'<td class="onClickLista onClickListOne" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
||||||
|
item.id + '"><img class="list-img"src="./image/icon_30.png"><div class="list-imga"><img src="image/' + (item.folderType == "0" ?
|
||||||
|
"icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
|
@ -1078,24 +1239,18 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
|
'<td class="more onClickImga">' +
|
||||||
'<td>'
|
'<img class="list-img" src="./image/icon_30.png">' +
|
||||||
|
'<div class="list-imga onClickListTwo" data-if="2" data-click="1" onclick="openIf(this)" data-id="' +
|
||||||
+ '<div class="more">'
|
|
||||||
+ '<span>...</span>'
|
|
||||||
+ '<div class="more-edit" onclick="hideFile(this)" data-id="' + item.id + '" data-name="' + item.name + '">显示</div>'
|
|
||||||
+ '</div>'
|
|
||||||
+
|
|
||||||
'<div class="list-img" onclick="openFile(this)" data-id="' +
|
|
||||||
item.id + '" data-name="' + item.name + '" data-type="' + item
|
item.id + '" data-name="' + item.name + '" data-type="' + item
|
||||||
.type + '" data-url="' + item.url + '" data-time="' + item
|
.type + '" data-url="' + item.url + '" data-time="' + item
|
||||||
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
||||||
'.png"><span>' + item.name + '</span></div></td>' +
|
'.png"><span>' + item.name + '</span></td>' +
|
||||||
'<td>' + item.number + '</td>' +
|
'<td>' + item.number + '</td>' +
|
||||||
'<td><div class="list-img"><span>' + item.drafter +
|
'<td><div class="list-imga"><span>' + item.drafter +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td><div class="list-img"><span>' + item.createUser +
|
'<td><div class="list-imga"><span>' + item.createUser +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td>' + item.type + '</td>' +
|
'<td>' + item.type + '</td>' +
|
||||||
'<td>' + item.createTime + '</td>'
|
'<td>' + item.createTime + '</td>'
|
||||||
|
@ -1122,6 +1277,77 @@
|
||||||
console.log(data);
|
console.log(data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
function getmovefiles(fileAjaxData) {
|
||||||
|
|
||||||
|
$('.list-content#movefiles ul').empty()
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: host + '/ding/file/getFileList' + '?timetmp=' + Date.parse(new Date()).toString().substr(0,
|
||||||
|
10),
|
||||||
|
headers: {
|
||||||
|
'Blade-Auth': 'bearer ' + localStorage.accessToken
|
||||||
|
},
|
||||||
|
data: fileAjaxData,
|
||||||
|
type: "get",
|
||||||
|
contentType: "application/x-www-form-urlencoded",
|
||||||
|
dataType: "json",
|
||||||
|
success: function (data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
inita()
|
||||||
|
if (data.data.folders.length > 0) {
|
||||||
|
data.data.folders.forEach(function (item) {
|
||||||
|
var html1 =
|
||||||
|
'<li class="list pr" onclick="openFoldera(this)" ondblclick="openFoldera(this)" data-id="' +
|
||||||
|
item.id + '" data-name="' + item.name + '">' +
|
||||||
|
'<div class="onClickImg" data-id="' + item.id + '" onclick="onClickImg(this)"><img src="image/icon_30.png"></div>' +
|
||||||
|
'<div class="img"><img src="image/' + (item.folderType == "0" ?
|
||||||
|
"icon_11.png" : "icon_11_2.png") + '"></div>' +
|
||||||
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
|
'</li>'
|
||||||
|
|
||||||
|
console.log($('#movefiles ul'));
|
||||||
|
$('#movefiles ul').append(html1)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if (data.data.folders.length == 0 && data.data.files.length == 0) {
|
||||||
|
$('.no-con-lista').show()
|
||||||
|
$('.con-list-cna').hide()
|
||||||
|
} else {
|
||||||
|
$('.no-con-lista').hide()
|
||||||
|
$('.con-list-cna').show()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
layer.msg(data.msg)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (data) {
|
||||||
|
console.log(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function moveFiles(params) {
|
||||||
|
if (dataEditor.editorIf) {
|
||||||
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要移动的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
|
return v.folder == true;
|
||||||
|
});
|
||||||
|
if (arr2) {
|
||||||
|
layer.msg("不能移动文件夹")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
$('.upload').show()
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -552,8 +564,11 @@
|
||||||
$(obj).html("编辑文件")
|
$(obj).html("编辑文件")
|
||||||
$(".onClickListOne").attr("data-click", "1")
|
$(".onClickListOne").attr("data-click", "1")
|
||||||
$(".onClickListOne").children(".list-img").css("display", "none")
|
$(".onClickListOne").children(".list-img").css("display", "none")
|
||||||
|
$(".onClickListOne").parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
||||||
|
|
||||||
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
||||||
|
$(".onClickListTwo").parent().parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListTwo").attr("data-click", "1")
|
$(".onClickListTwo").attr("data-click", "1")
|
||||||
$(".onClickListTwo").prev().css("display", "none")
|
$(".onClickListTwo").prev().css("display", "none")
|
||||||
}
|
}
|
||||||
|
@ -803,7 +818,7 @@
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!dataEditor.editorData.length >= 1) {
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
layer.msg("请先选择你要隐藏的文件")
|
layer.msg("请先选择你要移动的文件")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
|
@ -866,18 +881,30 @@
|
||||||
openFile(data)
|
openFile(data)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-click") == "1") {
|
if ($(data).attr("data-click") == "1") {//判断去选取还是取消
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {//判断是文件还是文件夹
|
||||||
$(data).children(".list-img").css("display", "block")
|
$(data).children(".list-img").css("display", "block")
|
||||||
$(data).css("background", "#f5f6ff")
|
|
||||||
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: true
|
folder: true
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "block")
|
$(data).prev().css("display", "block")
|
||||||
$(data).parent().css("background", "#f5f6ff")
|
console.log($(data).parent().parent());
|
||||||
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).parent().css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: false
|
folder: false
|
||||||
|
@ -888,12 +915,22 @@
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
$(data).children(".list-img").css("display", "none")
|
$(data).children(".list-img").css("display", "none")
|
||||||
$(data).css("background", "#fff")
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "none")
|
$(data).prev().css("display", "none")
|
||||||
$(data).parent().css("background", "#fff")
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
}
|
}
|
||||||
|
@ -901,7 +938,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
console.log(dataEditor.editorData);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1060,7 +1097,6 @@
|
||||||
}, contentType)
|
}, contentType)
|
||||||
}
|
}
|
||||||
function nameMakeConfirm(params) {
|
function nameMakeConfirm(params) {
|
||||||
|
|
||||||
layer.confirm('确认隐藏这个文件吗?', {
|
layer.confirm('确认隐藏这个文件吗?', {
|
||||||
btn: ['确认', '取消'] //可以无限个按钮
|
btn: ['确认', '取消'] //可以无限个按钮
|
||||||
,
|
,
|
||||||
|
@ -1122,7 +1158,7 @@
|
||||||
let url = host + '/ding/file/disPlayFiles'
|
let url = host + '/ding/file/disPlayFiles'
|
||||||
dxtcRequest('post', url, JSON.stringify(objD), function name(data) {
|
dxtcRequest('post', url, JSON.stringify(objD), function name(data) {
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
console.log(data);
|
|
||||||
layer.msg('隐藏成功')
|
layer.msg('隐藏成功')
|
||||||
getFileList(ajaxData)
|
getFileList(ajaxData)
|
||||||
} else {
|
} else {
|
||||||
|
@ -1213,9 +1249,10 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td><div class="list-img" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
|
||||||
item.id + '"><img src="image/' + (item.folderType == "0" ?
|
'<td class="onClickLista onClickListOne" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
||||||
|
item.id + '"><img class="list-img"src="./image/icon_30.png"><div class="list-imga"><img src="image/' + (item.folderType == "0" ?
|
||||||
"icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
"icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
|
@ -1252,24 +1289,18 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td>'
|
'<td class="more onClickImga">' +
|
||||||
|
'<img class="list-img" src="./image/icon_30.png">' +
|
||||||
+
|
'<div class="list-imga onClickListTwo" data-if="2" data-click="1" onclick="openIf(this)" data-id="' +
|
||||||
'<div class="more">' +
|
|
||||||
'<span onclick="showBtn(this)">...</span>' +
|
|
||||||
'<div class="more-edit" onclick="hideFile(this)" data-id="' + item
|
|
||||||
.id + '" data-name="' + item.name + '">隐藏</div>' +
|
|
||||||
'</div>' +
|
|
||||||
'<div class="list-img" onclick="openFile(this)" data-id="' +
|
|
||||||
item.id + '" data-name="' + item.name + '" data-type="' + item
|
item.id + '" data-name="' + item.name + '" data-type="' + item
|
||||||
.type + '" data-url="' + item.url + '" data-time="' + item
|
.type + '" data-url="' + item.url + '" data-time="' + item
|
||||||
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
||||||
'.png"><span>' + item.name + '</span></div></td>' +
|
'.png"><span>' + item.name + '</span></td>' +
|
||||||
'<td>' + item.number + '</td>' +
|
'<td>' + item.number + '</td>' +
|
||||||
'<td><div class="list-img"><span>' + item.drafter +
|
'<td><div class="list-imga"><span>' + item.drafter +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td><div class="list-img"><span>' + item.createUser +
|
'<td><div class="list-imga"><span>' + item.createUser +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td>' + item.type + '</td>' +
|
'<td>' + item.type + '</td>' +
|
||||||
'<td>' + item.createTime + '</td>'
|
'<td>' + item.createTime + '</td>'
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -474,7 +486,39 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="history upload">
|
||||||
|
<div class="center-center download-hight">
|
||||||
|
<div class="history-content bg-w">
|
||||||
|
<div class="on-name">
|
||||||
|
<h3 class="font-14">选择文件路径</h3>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:;" class="close"> </a>
|
||||||
|
<form class="p-25 layui-form">
|
||||||
|
|
||||||
|
<!--文件夹-->
|
||||||
|
<div class="con-list bg-w top20 add-border">
|
||||||
|
<div class="namea">
|
||||||
|
<span class="font-14" id="folder-navigationa"><i class="icon-back"></i><a data-id="0" data-name="全部文件">文件可选择路径</a></span>
|
||||||
|
<input type="hidden" id="navigationa" value="0">
|
||||||
|
</div>
|
||||||
|
<div class="con-list-cna">
|
||||||
|
<div class="list-content" id="movefiles">
|
||||||
|
<ul></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 无内容 -->
|
||||||
|
<div class="no-con-lista" style="display: none;">
|
||||||
|
<img src="image/img_02.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--保存-->
|
||||||
|
<div class="upload-form t-r">
|
||||||
|
<button class="flie-btn" type="button" onclick="determineMobileGroup()">移动</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var ajaxData = {
|
var ajaxData = {
|
||||||
createUser: '',
|
createUser: '',
|
||||||
|
@ -492,6 +536,13 @@
|
||||||
editorData: [],
|
editorData: [],
|
||||||
rows: []
|
rows: []
|
||||||
}
|
}
|
||||||
|
var fileAjaxData = {
|
||||||
|
current: '',
|
||||||
|
isPublic: 1,
|
||||||
|
parentFolderId: 0,
|
||||||
|
size: '',
|
||||||
|
isUpload: 1
|
||||||
|
}
|
||||||
function editorButton(obj) {
|
function editorButton(obj) {
|
||||||
if (dataEditor.editorIf) {
|
if (dataEditor.editorIf) {
|
||||||
$(obj).html("取消编辑")
|
$(obj).html("取消编辑")
|
||||||
|
@ -499,8 +550,11 @@
|
||||||
$(obj).html("编辑文件")
|
$(obj).html("编辑文件")
|
||||||
$(".onClickListOne").attr("data-click", "1")
|
$(".onClickListOne").attr("data-click", "1")
|
||||||
$(".onClickListOne").children(".list-img").css("display", "none")
|
$(".onClickListOne").children(".list-img").css("display", "none")
|
||||||
|
$(".onClickListOne").parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
||||||
|
|
||||||
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
||||||
|
$(".onClickListTwo").parent().parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListTwo").attr("data-click", "1")
|
$(".onClickListTwo").attr("data-click", "1")
|
||||||
$(".onClickListTwo").prev().css("display", "none")
|
$(".onClickListTwo").prev().css("display", "none")
|
||||||
}
|
}
|
||||||
|
@ -608,6 +662,31 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
function inita() {
|
||||||
|
//返回事件
|
||||||
|
$('.con-list .namea span .icon-back').off("click").click(function () {
|
||||||
|
var that = $(this)
|
||||||
|
if ($("#navigationa").val() != 0) {
|
||||||
|
fileAjaxData.parentFolderId = $('.con-list .namea span a').eq(-2).attr('data-id')
|
||||||
|
$("#navigationa").val($('.con-list .namea span a').eq(-2).attr('data-id'))
|
||||||
|
$('.con-list .namea span a').eq(-1).remove()
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//路由事件
|
||||||
|
$('#folder-navigationa a').off("click").click(function () {
|
||||||
|
var that = $(this)
|
||||||
|
fileAjaxData.parentFolderId = that.attr('data-id')
|
||||||
|
$('.con-list .namea span a').each(function () {
|
||||||
|
if ($(this).index() >= that.index()) {
|
||||||
|
$('.con-list .namea span a').eq($(this).index()).remove()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$("#navigationa").val(that.attr('data-id'))
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
//返回事件
|
//返回事件
|
||||||
|
@ -721,18 +800,63 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
function moveFiles(params) {
|
||||||
|
if (dataEditor.editorIf) {
|
||||||
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要移动的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
|
return v.folder == true;
|
||||||
|
});
|
||||||
|
if (arr2) {
|
||||||
|
layer.msg("不能移动文件夹")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
$('.upload').show()
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//打开文件夹
|
|
||||||
function openFolder(obj) {
|
|
||||||
dataEditor.editorData = []
|
|
||||||
dataEditor.editorIf = true
|
|
||||||
console.log(obj);
|
|
||||||
ajaxData.parentFolderId = $(obj).attr('data-id')
|
|
||||||
getFileList(ajaxData)
|
|
||||||
$("#navigation").val($(obj).attr('data-id'))
|
|
||||||
$('#folder-navigation').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
|
||||||
serch_flag = false;
|
|
||||||
}
|
}
|
||||||
|
function onClickImg(obj) {
|
||||||
|
$(".onClickImg img").css("display", "none")
|
||||||
|
event.stopPropagation()
|
||||||
|
$(obj).children().show()
|
||||||
|
dataEditor.id = $(obj).attr("data-id")
|
||||||
|
|
||||||
|
}
|
||||||
|
function determineMobileGroup(params) {
|
||||||
|
|
||||||
|
|
||||||
|
// let contentType = "application/json"
|
||||||
|
let arrData = {
|
||||||
|
fileIds: [],
|
||||||
|
fromFolderId: dataEditor.thisId,
|
||||||
|
toFolderId: dataEditor.id
|
||||||
|
}
|
||||||
|
for (let index = 0; index < dataEditor.editorData.length; index++) {
|
||||||
|
arrData.fileIds.push(dataEditor.editorData[index].id)
|
||||||
|
}
|
||||||
|
let url = host + '/ding/file/moveFiles'
|
||||||
|
let contentType = "application/json"
|
||||||
|
dxtcRequest('post', url, JSON.stringify(arrData), function name(data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
console.log(data);
|
||||||
|
getFileList(ajaxData)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
layer.msg(data.msg)
|
||||||
|
}
|
||||||
|
}, contentType)
|
||||||
|
$('.upload').toggle()
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//预览文件
|
//预览文件
|
||||||
function openFile(obj) {
|
function openFile(obj) {
|
||||||
|
@ -764,28 +888,41 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function openIf(data) {
|
function openIf(data) {
|
||||||
console.log(data);
|
|
||||||
if (dataEditor.editorIf) {
|
if (dataEditor.editorIf) {
|
||||||
|
|
||||||
|
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
|
dataEditor.thisId = $(data).attr("data-id")
|
||||||
openFolder(data)
|
openFolder(data)
|
||||||
} else {
|
} else {
|
||||||
openFile(data)
|
openFile(data)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-click") == "1") {
|
if ($(data).attr("data-click") == "1") {//判断去选取还是取消
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {//判断是文件还是文件夹
|
||||||
$(data).children(".list-img").css("display", "block")
|
$(data).children(".list-img").css("display", "block")
|
||||||
$(data).css("background", "#f5f6ff")
|
|
||||||
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: true
|
folder: true
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "block")
|
$(data).prev().css("display", "block")
|
||||||
$(data).parent().css("background", "#f5f6ff")
|
console.log($(data).parent().parent());
|
||||||
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).parent().css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: false
|
folder: false
|
||||||
|
@ -796,27 +933,63 @@
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
$(data).children(".list-img").css("display", "none")
|
$(data).children(".list-img").css("display", "none")
|
||||||
$(data).css("background", "#fff")
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "none")
|
$(data).prev().css("display", "none")
|
||||||
$(data).parent().css("background", "#fff")
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
}
|
}
|
||||||
$(data).attr("data-click", "1")
|
$(data).attr("data-click", "1")
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(dataEditor.editorData);
|
|
||||||
|
|
||||||
|
console.log(dataEditor.editorData);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
function openFolder(obj) {
|
||||||
|
dataEditor.editorData = []
|
||||||
|
dataEditor.editorIf = true
|
||||||
|
|
||||||
|
ajaxData.parentFolderId = $(obj).attr('data-id')
|
||||||
|
getFileList(ajaxData)
|
||||||
|
$("#navigation").val($(obj).attr('data-id'));
|
||||||
|
$('#folder-navigation').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
||||||
|
serch_flag = false;
|
||||||
|
}
|
||||||
|
function openFoldera(obj) {
|
||||||
|
dataEditor.editorIf = true
|
||||||
|
fileAjaxData.parentFolderId = $(obj).attr('data-id')
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
$("#navigationa").val($(obj).attr('data-id'));
|
||||||
|
$('#folder-navigationa').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
||||||
|
serch_flag = false;
|
||||||
|
}
|
||||||
|
|
||||||
// 文件夹重命名
|
// 文件夹重命名
|
||||||
function editorName() {
|
function editorName() {
|
||||||
console.log(dataEditor.rows, "--------------");
|
if (dataEditor.editorIf) {
|
||||||
console.log(dataEditor.editorData, "--------------");
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要重命名的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
return v.folder == true;
|
return v.folder == true;
|
||||||
});
|
});
|
||||||
|
@ -953,6 +1126,14 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function hgiddenFiles(obj) {
|
function hgiddenFiles(obj) {
|
||||||
|
if (dataEditor.editorIf) {
|
||||||
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要隐藏的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
return v.folder == true;
|
return v.folder == true;
|
||||||
});
|
});
|
||||||
|
@ -1027,16 +1208,19 @@
|
||||||
'</li>'
|
'</li>'
|
||||||
|
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td><div class="list-img" data-if="1" data-click="1" onclick="openIf(this)" ondblclick="openIf(this)" data-id="' + item.id + '"><img src="image/' + (item.folderType == "0" ? "icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
|
||||||
|
'<td class="onClickLista onClickListOne" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
||||||
|
item.id + '"><img class="list-img"src="./image/icon_30.png"><div class="list-imga"><img src="image/' + (item.folderType == "0" ?
|
||||||
|
"icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
'<td id="3">内部文件</td>' +
|
'<td>公共文件</td>' +
|
||||||
'<td>' + item.createTime + '</td>' +
|
'<td>' + item.createTime + '</td>' +
|
||||||
'<td></td>'
|
'<td></td>'
|
||||||
//+'<td><a href="javascript:;" class="news-red" data-id="'+item.id+'" onclick="getHistory(this)">历史记录</a></td>'
|
//+'<td><a href="javascript:;" class="news-red" data-groupid="'+item.groupId+'" onclick="getHistory(this)">历史记录</a></td>'
|
||||||
+
|
+
|
||||||
'</tr>'
|
'</tr>'
|
||||||
$('.list-content#tab tbody').append(html2)
|
$('.list-content#tab tbody').append(html2)
|
||||||
|
@ -1059,22 +1243,18 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td>'
|
'<td class="more onClickImga">' +
|
||||||
|
'<img class="list-img" src="./image/icon_30.png">' +
|
||||||
+ '<div class="more">'
|
'<div class="list-imga onClickListTwo" data-if="2" data-click="1" onclick="openIf(this)" data-id="' +
|
||||||
+ '<span onclick="showBtn(this)" >...</span>'
|
|
||||||
+ '<div class="more-edit" onclick="hideFile(this)" data-id="' + item.id + '" data-name="' + item.name + '">隐藏</div>'
|
|
||||||
+ '</div>'
|
|
||||||
+ '<div class="list-img" onclick="openFile(this)" data-id="' +
|
|
||||||
item.id + '" data-name="' + item.name + '" data-type="' + item
|
item.id + '" data-name="' + item.name + '" data-type="' + item
|
||||||
.type + '" data-url="' + item.url + '" data-time="' + item
|
.type + '" data-url="' + item.url + '" data-time="' + item
|
||||||
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
||||||
'.png"><span>' + item.name + '</span></div></td>' +
|
'.png"><span>' + item.name + '</span></td>' +
|
||||||
'<td>' + item.number + '</td>' +
|
'<td>' + item.number + '</td>' +
|
||||||
'<td><div class="list-img"><span>' + item.drafter +
|
'<td><div class="list-imga"><span>' + item.drafter +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td><div class="list-img"><span>' + item.createUser +
|
'<td><div class="list-imga"><span>' + item.createUser +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td>' + item.type + '</td>' +
|
'<td>' + item.type + '</td>' +
|
||||||
'<td>' + item.createTime + '</td>'
|
'<td>' + item.createTime + '</td>'
|
||||||
|
@ -1102,6 +1282,57 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getmovefiles(fileAjaxData) {
|
||||||
|
|
||||||
|
$('.list-content#movefiles ul').empty()
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: host + '/ding/file/getFileList' + '?timetmp=' + Date.parse(new Date()).toString().substr(0,
|
||||||
|
10),
|
||||||
|
headers: {
|
||||||
|
'Blade-Auth': 'bearer ' + localStorage.accessToken
|
||||||
|
},
|
||||||
|
data: fileAjaxData,
|
||||||
|
type: "get",
|
||||||
|
contentType: "application/x-www-form-urlencoded",
|
||||||
|
dataType: "json",
|
||||||
|
success: function (data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
inita()
|
||||||
|
if (data.data.folders.length > 0) {
|
||||||
|
data.data.folders.forEach(function (item) {
|
||||||
|
var html1 =
|
||||||
|
'<li class="list pr" onclick="openFoldera(this)" ondblclick="openFoldera(this)" data-id="' +
|
||||||
|
item.id + '" data-name="' + item.name + '">' +
|
||||||
|
'<div class="onClickImg" data-id="' + item.id + '" onclick="onClickImg(this)"><img src="image/icon_30.png"></div>' +
|
||||||
|
'<div class="img"><img src="image/' + (item.folderType == "0" ?
|
||||||
|
"icon_11.png" : "icon_11_2.png") + '"></div>' +
|
||||||
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
|
'</li>'
|
||||||
|
|
||||||
|
console.log($('#movefiles ul'));
|
||||||
|
$('#movefiles ul').append(html1)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if (data.data.folders.length == 0 && data.data.files.length == 0) {
|
||||||
|
$('.no-con-lista').show()
|
||||||
|
$('.con-list-cna').hide()
|
||||||
|
} else {
|
||||||
|
$('.no-con-lista').hide()
|
||||||
|
$('.con-list-cna').show()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
layer.msg(data.msg)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (data) {
|
||||||
|
console.log(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -220,6 +220,7 @@ if (dd.env.platform !== "notInDingTalk") {
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
|
console.log(data, "123");
|
||||||
dd.config({
|
dd.config({
|
||||||
agentId: data.data.agentId,
|
agentId: data.data.agentId,
|
||||||
corpId: data.data.corpId,
|
corpId: data.data.corpId,
|
||||||
|
@ -247,6 +248,7 @@ if (dd.env.platform !== "notInDingTalk") {
|
||||||
|
|
||||||
//用户信息
|
//用户信息
|
||||||
function userInfo() {
|
function userInfo() {
|
||||||
|
console.log(roleId);
|
||||||
if (roleId == '') {
|
if (roleId == '') {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: host + '/ding/user/getUserInfo',
|
url: host + '/ding/user/getUserInfo',
|
||||||
|
@ -274,6 +276,7 @@ if (dd.env.platform !== "notInDingTalk") {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
var tmpAvatar = localStorage['userAvatar'];
|
var tmpAvatar = localStorage['userAvatar'];
|
||||||
var tmpUserName = localStorage['userName'];
|
var tmpUserName = localStorage['userName'];
|
||||||
if (tmpAvatar != '') {
|
if (tmpAvatar != '') {
|
||||||
|
@ -284,6 +287,58 @@ if (dd.env.platform !== "notInDingTalk") {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//切换用户
|
||||||
|
// "http://flxp6xpc.xiaomy.net"
|
||||||
|
function changeUser(num = 3) {
|
||||||
|
$.ajax({
|
||||||
|
url: host + '/ding/user/changeUser',
|
||||||
|
headers: {
|
||||||
|
'Blade-Auth': 'bearer ' + localStorage.accessToken,
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
toRoleId: num
|
||||||
|
},
|
||||||
|
type: "get",
|
||||||
|
dataType: "json",
|
||||||
|
contentType: "application/x-www-form-urlencoded",
|
||||||
|
success: function (data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
$.ajax({
|
||||||
|
url: host + '/ding/user/getUserInfo',
|
||||||
|
headers: {
|
||||||
|
'Blade-Auth': 'bearer ' + accessToken,
|
||||||
|
},
|
||||||
|
data: {},
|
||||||
|
type: "get",
|
||||||
|
dataType: "json",
|
||||||
|
success: function (data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
localStorage['roleId'] = data.data.roleId
|
||||||
|
localStorage['haveLogin'] = true;
|
||||||
|
$('.head-name .name').text(data.data.username)
|
||||||
|
var tmpAvatar = localStorage['userAvatar'];
|
||||||
|
if (tmpAvatar != '') {
|
||||||
|
$('.head-name .img img').attr('src', localStorage['userAvatar'])
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
layer.msg(data.msg + 'get user info')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (data) {
|
||||||
|
console.log(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
console.log(data);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (data) {
|
||||||
|
console.log(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
changeUser()
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
//getNoticeList(1, '', '')
|
//getNoticeList(1, '', '')
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title id="title"></title>
|
<title id="title"></title>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
<script src="js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
<script src="js/script.js?v=2" type="text/javascript" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="w-100 p-40">
|
<body class="w-100 p-40">
|
||||||
<div class="head p-25">
|
<div class="head p-25">
|
||||||
<div class="head-tit f-l">
|
<div class="head-tit f-l">
|
||||||
|
@ -68,13 +70,23 @@
|
||||||
<img src="image/img_01.png">
|
<img src="image/img_01.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="name color-w f-l">钉钉用户名称</div>
|
<div class="name color-w f-l">钉钉用户名称</div>
|
||||||
|
<div class="xr">
|
||||||
|
<div class="qh">
|
||||||
|
<p>管理员</p>
|
||||||
|
<p>员工</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload=function(){
|
console.log(localStorage['roleId'] == 2, "if");
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
// alert(localStorage.getItem('pubilc')+'2')
|
// alert(localStorage.getItem('pubilc')+'2')
|
||||||
let title=localStorage.getItem('pubilc')
|
|
||||||
|
|
||||||
|
let title = localStorage.getItem('pubilc')
|
||||||
$('#title').html(title)
|
$('#title').html(title)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,6 +103,7 @@
|
||||||
<input type="hidden" id="navigation" value="">
|
<input type="hidden" id="navigation" value="">
|
||||||
<div>
|
<div>
|
||||||
<div class="listBtn">
|
<div class="listBtn">
|
||||||
|
<button type="button" onclick="moveFiles()">移动文件</button>
|
||||||
<button type="button" onclick="editorName()">修改名字</button>
|
<button type="button" onclick="editorName()">修改名字</button>
|
||||||
<button type="button" onclick="hgiddenFiles()">显示文件</button>
|
<button type="button" onclick="hgiddenFiles()">显示文件</button>
|
||||||
<button type="button " onclick="editorButton(this)">编辑文件</button>
|
<button type="button " onclick="editorButton(this)">编辑文件</button>
|
||||||
|
@ -188,7 +189,39 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="history upload">
|
||||||
|
<div class="center-center download-hight">
|
||||||
|
<div class="history-content bg-w">
|
||||||
|
<div class="on-name">
|
||||||
|
<h3 class="font-14">选择文件路径</h3>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:;" class="close"> </a>
|
||||||
|
<form class="p-25 layui-form">
|
||||||
|
|
||||||
|
<!--文件夹-->
|
||||||
|
<div class="con-list bg-w top20 add-border">
|
||||||
|
<div class="namea">
|
||||||
|
<span class="font-14" id="folder-navigationa"><i class="icon-back"></i><a data-id="0" data-name="全部文件">文件可选择路径</a></span>
|
||||||
|
<input type="hidden" id="navigationa" value="0">
|
||||||
|
</div>
|
||||||
|
<div class="con-list-cna">
|
||||||
|
<div class="list-content" id="movefiles">
|
||||||
|
<ul></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 无内容 -->
|
||||||
|
<div class="no-con-lista" style="display: none;">
|
||||||
|
<img src="image/img_02.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--保存-->
|
||||||
|
<div class="upload-form t-r">
|
||||||
|
<button class="flie-btn" type="button" onclick="determineMobileGroup()">移动</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var ajaxData = {
|
var ajaxData = {
|
||||||
|
@ -207,6 +240,13 @@
|
||||||
editorData: [],
|
editorData: [],
|
||||||
rows: []
|
rows: []
|
||||||
}
|
}
|
||||||
|
var fileAjaxData = {
|
||||||
|
current: '',
|
||||||
|
isPublic: 1,
|
||||||
|
parentFolderId: 0,
|
||||||
|
size: '',
|
||||||
|
isUpload: 1
|
||||||
|
}
|
||||||
function editorButton(obj) {
|
function editorButton(obj) {
|
||||||
if (dataEditor.editorIf) {
|
if (dataEditor.editorIf) {
|
||||||
$(obj).html("取消编辑")
|
$(obj).html("取消编辑")
|
||||||
|
@ -214,8 +254,11 @@
|
||||||
$(obj).html("编辑文件")
|
$(obj).html("编辑文件")
|
||||||
$(".onClickListOne").attr("data-click", "1")
|
$(".onClickListOne").attr("data-click", "1")
|
||||||
$(".onClickListOne").children(".list-img").css("display", "none")
|
$(".onClickListOne").children(".list-img").css("display", "none")
|
||||||
|
$(".onClickListOne").parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
||||||
|
|
||||||
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
||||||
|
$(".onClickListTwo").parent().parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListTwo").attr("data-click", "1")
|
$(".onClickListTwo").attr("data-click", "1")
|
||||||
$(".onClickListTwo").prev().css("display", "none")
|
$(".onClickListTwo").prev().css("display", "none")
|
||||||
}
|
}
|
||||||
|
@ -376,6 +419,64 @@
|
||||||
serch_flag = false;
|
serch_flag = false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
function inita() {
|
||||||
|
//返回事件
|
||||||
|
$('.con-list .namea span .icon-back').off("click").click(function () {
|
||||||
|
var that = $(this)
|
||||||
|
if ($("#navigationa").val() != 0) {
|
||||||
|
fileAjaxData.parentFolderId = $('.con-list .namea span a').eq(-2).attr('data-id')
|
||||||
|
$("#navigationa").val($('.con-list .namea span a').eq(-2).attr('data-id'))
|
||||||
|
$('.con-list .namea span a').eq(-1).remove()
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//路由事件
|
||||||
|
$('#folder-navigationa a').off("click").click(function () {
|
||||||
|
var that = $(this)
|
||||||
|
fileAjaxData.parentFolderId = that.attr('data-id')
|
||||||
|
$('.con-list .namea span a').each(function () {
|
||||||
|
if ($(this).index() >= that.index()) {
|
||||||
|
$('.con-list .namea span a').eq($(this).index()).remove()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$("#navigationa").val(that.attr('data-id'))
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function onClickImg(obj) {
|
||||||
|
$(".onClickImg img").css("display", "none")
|
||||||
|
event.stopPropagation()
|
||||||
|
$(obj).children().show()
|
||||||
|
dataEditor.id = $(obj).attr("data-id")
|
||||||
|
|
||||||
|
}
|
||||||
|
function determineMobileGroup(params) {
|
||||||
|
|
||||||
|
|
||||||
|
// let contentType = "application/json"
|
||||||
|
let arrData = {
|
||||||
|
fileIds: [],
|
||||||
|
fromFolderId: dataEditor.thisId,
|
||||||
|
toFolderId: dataEditor.id
|
||||||
|
}
|
||||||
|
for (let index = 0; index < dataEditor.editorData.length; index++) {
|
||||||
|
arrData.fileIds.push(dataEditor.editorData[index].id)
|
||||||
|
}
|
||||||
|
let url = host + '/ding/file/moveFiles'
|
||||||
|
let contentType = "application/json"
|
||||||
|
dxtcRequest('post', url, JSON.stringify(arrData), function name(data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
console.log(data);
|
||||||
|
getFileList(ajaxData)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
layer.msg(data.msg)
|
||||||
|
}
|
||||||
|
}, contentType)
|
||||||
|
$('.upload').toggle()
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//历史记录
|
//历史记录
|
||||||
function getHistory(obj) {
|
function getHistory(obj) {
|
||||||
|
@ -434,23 +535,36 @@
|
||||||
function openIf(data) {
|
function openIf(data) {
|
||||||
if (dataEditor.editorIf) {
|
if (dataEditor.editorIf) {
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
|
dataEditor.thisId = $(data).attr("data-id")
|
||||||
openFolder(data)
|
openFolder(data)
|
||||||
} else {
|
} else {
|
||||||
openFile(data)
|
openFile(data)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-click") == "1") {
|
if ($(data).attr("data-click") == "1") {//判断去选取还是取消
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {//判断是文件还是文件夹
|
||||||
$(data).children(".list-img").css("display", "block")
|
$(data).children(".list-img").css("display", "block")
|
||||||
$(data).css("background", "#f5f6ff")
|
|
||||||
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: true
|
folder: true
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "block")
|
$(data).prev().css("display", "block")
|
||||||
$(data).parent().css("background", "#f5f6ff")
|
console.log($(data).parent().parent());
|
||||||
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).parent().css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: false
|
folder: false
|
||||||
|
@ -461,20 +575,30 @@
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
$(data).children(".list-img").css("display", "none")
|
$(data).children(".list-img").css("display", "none")
|
||||||
$(data).css("background", "#fff")
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "none")
|
$(data).prev().css("display", "none")
|
||||||
$(data).parent().css("background", "#fff")
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
}
|
}
|
||||||
$(data).attr("data-click", "1")
|
$(data).attr("data-click", "1")
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(dataEditor.editorData);
|
|
||||||
|
|
||||||
|
console.log(dataEditor.editorData);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -488,6 +612,15 @@
|
||||||
$('#folder-navigation').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
$('#folder-navigation').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
||||||
serch_flag = false;
|
serch_flag = false;
|
||||||
}
|
}
|
||||||
|
function openFoldera(obj) {
|
||||||
|
dataEditor.editorIf = true
|
||||||
|
fileAjaxData.parentFolderId = $(obj).attr('data-id')
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
$("#navigationa").val($(obj).attr('data-id'));
|
||||||
|
$('#folder-navigationa').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
||||||
|
serch_flag = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//文件下载
|
//文件下载
|
||||||
function downloadfile(obj) {
|
function downloadfile(obj) {
|
||||||
|
@ -575,6 +708,14 @@
|
||||||
|
|
||||||
//隐藏文件
|
//隐藏文件
|
||||||
function hgiddenFiles(obj) {
|
function hgiddenFiles(obj) {
|
||||||
|
if (dataEditor.editorIf) {
|
||||||
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要隐藏的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
return v.folder == true;
|
return v.folder == true;
|
||||||
});
|
});
|
||||||
|
@ -659,8 +800,14 @@
|
||||||
|
|
||||||
//修改文件名
|
//修改文件名
|
||||||
function editorName() {
|
function editorName() {
|
||||||
console.log(dataEditor.rows, "--------------");
|
if (dataEditor.editorIf) {
|
||||||
console.log(dataEditor.editorData, "--------------");
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要重命名的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
return v.folder == true;
|
return v.folder == true;
|
||||||
});
|
});
|
||||||
|
@ -753,9 +900,11 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td><div class="list-img" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
|
||||||
item.id + '"><img src="image/' + (item.folderType == "0" ? "icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
'<td class="onClickLista onClickListOne" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
||||||
|
item.id + '"><img class="list-img"src="./image/icon_30.png"><div class="list-imga"><img src="image/' + (item.folderType == "0" ?
|
||||||
|
"icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
|
@ -788,24 +937,18 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
|
'<td class="more onClickImga">' +
|
||||||
'<td>'
|
'<img class="list-img" src="./image/icon_30.png">' +
|
||||||
|
'<div class="list-imga onClickListTwo" data-if="2" data-click="1" onclick="openIf(this)" data-id="' +
|
||||||
+ '<div class="more">'
|
|
||||||
+ '<span>...</span>'
|
|
||||||
+ '<div class="more-edit" onclick="hideFile(this)" data-id="' + item.id + '" data-name="' + item.name + '">显示</div>'
|
|
||||||
+ '</div>'
|
|
||||||
+
|
|
||||||
'<div class="list-img" onclick="openFile(this)" data-id="' +
|
|
||||||
item.id + '" data-name="' + item.name + '" data-type="' + item
|
item.id + '" data-name="' + item.name + '" data-type="' + item
|
||||||
.type + '" data-url="' + item.url + '" data-time="' + item
|
.type + '" data-url="' + item.url + '" data-time="' + item
|
||||||
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
||||||
'.png"><span>' + item.name + '</span></div></td>' +
|
'.png"><span>' + item.name + '</span></td>' +
|
||||||
'<td>' + item.number + '</td>' +
|
'<td>' + item.number + '</td>' +
|
||||||
'<td><div class="list-img"><span>' + item.drafter +
|
'<td><div class="list-imga"><span>' + item.drafter +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td><div class="list-img"><span>' + item.createUser +
|
'<td><div class="list-imga"><span>' + item.createUser +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td>' + item.type + '</td>' +
|
'<td>' + item.type + '</td>' +
|
||||||
'<td>' + item.createTime + '</td>'
|
'<td>' + item.createTime + '</td>'
|
||||||
|
@ -832,6 +975,77 @@
|
||||||
console.log(data);
|
console.log(data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
function getmovefiles(fileAjaxData) {
|
||||||
|
|
||||||
|
$('.list-content#movefiles ul').empty()
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: host + '/ding/file/getFileList' + '?timetmp=' + Date.parse(new Date()).toString().substr(0,
|
||||||
|
10),
|
||||||
|
headers: {
|
||||||
|
'Blade-Auth': 'bearer ' + localStorage.accessToken
|
||||||
|
},
|
||||||
|
data: fileAjaxData,
|
||||||
|
type: "get",
|
||||||
|
contentType: "application/x-www-form-urlencoded",
|
||||||
|
dataType: "json",
|
||||||
|
success: function (data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
inita()
|
||||||
|
if (data.data.folders.length > 0) {
|
||||||
|
data.data.folders.forEach(function (item) {
|
||||||
|
var html1 =
|
||||||
|
'<li class="list pr" onclick="openFoldera(this)" ondblclick="openFoldera(this)" data-id="' +
|
||||||
|
item.id + '" data-name="' + item.name + '">' +
|
||||||
|
'<div class="onClickImg" data-id="' + item.id + '" onclick="onClickImg(this)"><img src="image/icon_30.png"></div>' +
|
||||||
|
'<div class="img"><img src="image/' + (item.folderType == "0" ?
|
||||||
|
"icon_11.png" : "icon_11_2.png") + '"></div>' +
|
||||||
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
|
'</li>'
|
||||||
|
|
||||||
|
console.log($('#movefiles ul'));
|
||||||
|
$('#movefiles ul').append(html1)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if (data.data.folders.length == 0 && data.data.files.length == 0) {
|
||||||
|
$('.no-con-lista').show()
|
||||||
|
$('.con-list-cna').hide()
|
||||||
|
} else {
|
||||||
|
$('.no-con-lista').hide()
|
||||||
|
$('.con-list-cna').show()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
layer.msg(data.msg)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (data) {
|
||||||
|
console.log(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function moveFiles(params) {
|
||||||
|
if (dataEditor.editorIf) {
|
||||||
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要移动的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
|
return v.folder == true;
|
||||||
|
});
|
||||||
|
if (arr2) {
|
||||||
|
layer.msg("不能移动文件夹")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
$('.upload').show()
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -262,8 +262,11 @@
|
||||||
$(obj).html("编辑文件")
|
$(obj).html("编辑文件")
|
||||||
$(".onClickListOne").attr("data-click", "1")
|
$(".onClickListOne").attr("data-click", "1")
|
||||||
$(".onClickListOne").children(".list-img").css("display", "none")
|
$(".onClickListOne").children(".list-img").css("display", "none")
|
||||||
|
$(".onClickListOne").parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
||||||
|
|
||||||
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
||||||
|
$(".onClickListTwo").parent().parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListTwo").attr("data-click", "1")
|
$(".onClickListTwo").attr("data-click", "1")
|
||||||
$(".onClickListTwo").prev().css("display", "none")
|
$(".onClickListTwo").prev().css("display", "none")
|
||||||
}
|
}
|
||||||
|
@ -513,7 +516,7 @@
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!dataEditor.editorData.length >= 1) {
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
layer.msg("请先选择你要隐藏的文件")
|
layer.msg("请先选择你要移动的文件")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
|
@ -576,18 +579,30 @@
|
||||||
openFile(data)
|
openFile(data)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-click") == "1") {
|
if ($(data).attr("data-click") == "1") {//判断去选取还是取消
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {//判断是文件还是文件夹
|
||||||
$(data).children(".list-img").css("display", "block")
|
$(data).children(".list-img").css("display", "block")
|
||||||
$(data).css("background", "#f5f6ff")
|
|
||||||
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: true
|
folder: true
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "block")
|
$(data).prev().css("display", "block")
|
||||||
$(data).parent().css("background", "#f5f6ff")
|
console.log($(data).parent().parent());
|
||||||
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).parent().css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: false
|
folder: false
|
||||||
|
@ -598,12 +613,22 @@
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
$(data).children(".list-img").css("display", "none")
|
$(data).children(".list-img").css("display", "none")
|
||||||
$(data).css("background", "#fff")
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "none")
|
$(data).prev().css("display", "none")
|
||||||
$(data).parent().css("background", "#fff")
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
}
|
}
|
||||||
|
@ -611,7 +636,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
console.log(dataEditor.editorData);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -770,7 +795,6 @@
|
||||||
}, contentType)
|
}, contentType)
|
||||||
}
|
}
|
||||||
function nameMakeConfirm(params) {
|
function nameMakeConfirm(params) {
|
||||||
|
|
||||||
layer.confirm('确认隐藏这个文件吗?', {
|
layer.confirm('确认隐藏这个文件吗?', {
|
||||||
btn: ['确认', '取消'] //可以无限个按钮
|
btn: ['确认', '取消'] //可以无限个按钮
|
||||||
,
|
,
|
||||||
|
@ -832,7 +856,7 @@
|
||||||
let url = host + '/ding/file/disPlayFiles'
|
let url = host + '/ding/file/disPlayFiles'
|
||||||
dxtcRequest('post', url, JSON.stringify(objD), function name(data) {
|
dxtcRequest('post', url, JSON.stringify(objD), function name(data) {
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
console.log(data);
|
|
||||||
layer.msg('隐藏成功')
|
layer.msg('隐藏成功')
|
||||||
getFileList(ajaxData)
|
getFileList(ajaxData)
|
||||||
} else {
|
} else {
|
||||||
|
@ -923,9 +947,10 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td><div class="list-img" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
|
||||||
item.id + '"><img src="image/' + (item.folderType == "0" ?
|
'<td class="onClickLista onClickListOne" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
||||||
|
item.id + '"><img class="list-img"src="./image/icon_30.png"><div class="list-imga"><img src="image/' + (item.folderType == "0" ?
|
||||||
"icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
"icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
|
@ -962,24 +987,18 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td>'
|
'<td class="more onClickImga">' +
|
||||||
|
'<img class="list-img" src="./image/icon_30.png">' +
|
||||||
+
|
'<div class="list-imga onClickListTwo" data-if="2" data-click="1" onclick="openIf(this)" data-id="' +
|
||||||
'<div class="more">' +
|
|
||||||
'<span onclick="showBtn(this)">...</span>' +
|
|
||||||
'<div class="more-edit" onclick="hideFile(this)" data-id="' + item
|
|
||||||
.id + '" data-name="' + item.name + '">隐藏</div>' +
|
|
||||||
'</div>' +
|
|
||||||
'<div class="list-img" onclick="openFile(this)" data-id="' +
|
|
||||||
item.id + '" data-name="' + item.name + '" data-type="' + item
|
item.id + '" data-name="' + item.name + '" data-type="' + item
|
||||||
.type + '" data-url="' + item.url + '" data-time="' + item
|
.type + '" data-url="' + item.url + '" data-time="' + item
|
||||||
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
||||||
'.png"><span>' + item.name + '</span></div></td>' +
|
'.png"><span>' + item.name + '</span></td>' +
|
||||||
'<td>' + item.number + '</td>' +
|
'<td>' + item.number + '</td>' +
|
||||||
'<td><div class="list-img"><span>' + item.drafter +
|
'<td><div class="list-imga"><span>' + item.drafter +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td><div class="list-img"><span>' + item.createUser +
|
'<td><div class="list-imga"><span>' + item.createUser +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td>' + item.type + '</td>' +
|
'<td>' + item.type + '</td>' +
|
||||||
'<td>' + item.createTime + '</td>'
|
'<td>' + item.createTime + '</td>'
|
||||||
|
|
|
@ -184,7 +184,39 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="history upload">
|
||||||
|
<div class="center-center download-hight">
|
||||||
|
<div class="history-content bg-w">
|
||||||
|
<div class="on-name">
|
||||||
|
<h3 class="font-14">选择文件路径</h3>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:;" class="close"> </a>
|
||||||
|
<form class="p-25 layui-form">
|
||||||
|
|
||||||
|
<!--文件夹-->
|
||||||
|
<div class="con-list bg-w top20 add-border">
|
||||||
|
<div class="namea">
|
||||||
|
<span class="font-14" id="folder-navigationa"><i class="icon-back"></i><a data-id="0" data-name="全部文件">文件可选择路径</a></span>
|
||||||
|
<input type="hidden" id="navigationa" value="0">
|
||||||
|
</div>
|
||||||
|
<div class="con-list-cna">
|
||||||
|
<div class="list-content" id="movefiles">
|
||||||
|
<ul></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 无内容 -->
|
||||||
|
<div class="no-con-lista" style="display: none;">
|
||||||
|
<img src="image/img_02.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--保存-->
|
||||||
|
<div class="upload-form t-r">
|
||||||
|
<button class="flie-btn" type="button" onclick="determineMobileGroup()">移动</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var ajaxData = {
|
var ajaxData = {
|
||||||
createUser: '',
|
createUser: '',
|
||||||
|
@ -202,6 +234,13 @@
|
||||||
editorData: [],
|
editorData: [],
|
||||||
rows: []
|
rows: []
|
||||||
}
|
}
|
||||||
|
var fileAjaxData = {
|
||||||
|
current: '',
|
||||||
|
isPublic: 1,
|
||||||
|
parentFolderId: 0,
|
||||||
|
size: '',
|
||||||
|
isUpload: 1
|
||||||
|
}
|
||||||
function editorButton(obj) {
|
function editorButton(obj) {
|
||||||
if (dataEditor.editorIf) {
|
if (dataEditor.editorIf) {
|
||||||
$(obj).html("取消编辑")
|
$(obj).html("取消编辑")
|
||||||
|
@ -209,8 +248,11 @@
|
||||||
$(obj).html("编辑文件")
|
$(obj).html("编辑文件")
|
||||||
$(".onClickListOne").attr("data-click", "1")
|
$(".onClickListOne").attr("data-click", "1")
|
||||||
$(".onClickListOne").children(".list-img").css("display", "none")
|
$(".onClickListOne").children(".list-img").css("display", "none")
|
||||||
|
$(".onClickListOne").parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
$(".onClickListOne").css("background", "rgba(0,0,0,0)")
|
||||||
|
|
||||||
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
$(".onClickListTwo").parent().css("background", "rgba(0,0,0,0)")
|
||||||
|
$(".onClickListTwo").parent().parent(".tr").css("background", "rgba(0,0,0,0)")
|
||||||
$(".onClickListTwo").attr("data-click", "1")
|
$(".onClickListTwo").attr("data-click", "1")
|
||||||
$(".onClickListTwo").prev().css("display", "none")
|
$(".onClickListTwo").prev().css("display", "none")
|
||||||
}
|
}
|
||||||
|
@ -318,6 +360,31 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
function inita() {
|
||||||
|
//返回事件
|
||||||
|
$('.con-list .namea span .icon-back').off("click").click(function () {
|
||||||
|
var that = $(this)
|
||||||
|
if ($("#navigationa").val() != 0) {
|
||||||
|
fileAjaxData.parentFolderId = $('.con-list .namea span a').eq(-2).attr('data-id')
|
||||||
|
$("#navigationa").val($('.con-list .namea span a').eq(-2).attr('data-id'))
|
||||||
|
$('.con-list .namea span a').eq(-1).remove()
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//路由事件
|
||||||
|
$('#folder-navigationa a').off("click").click(function () {
|
||||||
|
var that = $(this)
|
||||||
|
fileAjaxData.parentFolderId = that.attr('data-id')
|
||||||
|
$('.con-list .namea span a').each(function () {
|
||||||
|
if ($(this).index() >= that.index()) {
|
||||||
|
$('.con-list .namea span a').eq($(this).index()).remove()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$("#navigationa").val(that.attr('data-id'))
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
//返回事件
|
//返回事件
|
||||||
|
@ -431,18 +498,63 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
function moveFiles(params) {
|
||||||
|
if (dataEditor.editorIf) {
|
||||||
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要移动的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
|
return v.folder == true;
|
||||||
|
});
|
||||||
|
if (arr2) {
|
||||||
|
layer.msg("不能移动文件夹")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
$('.upload').show()
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//打开文件夹
|
|
||||||
function openFolder(obj) {
|
|
||||||
dataEditor.editorData = []
|
|
||||||
dataEditor.editorIf = true
|
|
||||||
console.log(obj);
|
|
||||||
ajaxData.parentFolderId = $(obj).attr('data-id')
|
|
||||||
getFileList(ajaxData)
|
|
||||||
$("#navigation").val($(obj).attr('data-id'))
|
|
||||||
$('#folder-navigation').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
|
||||||
serch_flag = false;
|
|
||||||
}
|
}
|
||||||
|
function onClickImg(obj) {
|
||||||
|
$(".onClickImg img").css("display", "none")
|
||||||
|
event.stopPropagation()
|
||||||
|
$(obj).children().show()
|
||||||
|
dataEditor.id = $(obj).attr("data-id")
|
||||||
|
|
||||||
|
}
|
||||||
|
function determineMobileGroup(params) {
|
||||||
|
|
||||||
|
|
||||||
|
// let contentType = "application/json"
|
||||||
|
let arrData = {
|
||||||
|
fileIds: [],
|
||||||
|
fromFolderId: dataEditor.thisId,
|
||||||
|
toFolderId: dataEditor.id
|
||||||
|
}
|
||||||
|
for (let index = 0; index < dataEditor.editorData.length; index++) {
|
||||||
|
arrData.fileIds.push(dataEditor.editorData[index].id)
|
||||||
|
}
|
||||||
|
let url = host + '/ding/file/moveFiles'
|
||||||
|
let contentType = "application/json"
|
||||||
|
dxtcRequest('post', url, JSON.stringify(arrData), function name(data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
console.log(data);
|
||||||
|
getFileList(ajaxData)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
layer.msg(data.msg)
|
||||||
|
}
|
||||||
|
}, contentType)
|
||||||
|
$('.upload').toggle()
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//预览文件
|
//预览文件
|
||||||
function openFile(obj) {
|
function openFile(obj) {
|
||||||
|
@ -474,28 +586,41 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function openIf(data) {
|
function openIf(data) {
|
||||||
console.log(data);
|
|
||||||
if (dataEditor.editorIf) {
|
if (dataEditor.editorIf) {
|
||||||
|
|
||||||
|
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
|
dataEditor.thisId = $(data).attr("data-id")
|
||||||
openFolder(data)
|
openFolder(data)
|
||||||
} else {
|
} else {
|
||||||
openFile(data)
|
openFile(data)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-click") == "1") {
|
if ($(data).attr("data-click") == "1") {//判断去选取还是取消
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {//判断是文件还是文件夹
|
||||||
$(data).children(".list-img").css("display", "block")
|
$(data).children(".list-img").css("display", "block")
|
||||||
$(data).css("background", "#f5f6ff")
|
|
||||||
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: true
|
folder: true
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "block")
|
$(data).prev().css("display", "block")
|
||||||
$(data).parent().css("background", "#f5f6ff")
|
console.log($(data).parent().parent());
|
||||||
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#f5f6ff")
|
||||||
|
} else {
|
||||||
|
$(data).parent().css("background", "#f5f6ff")
|
||||||
|
|
||||||
|
}
|
||||||
dataEditor.editorData.push({
|
dataEditor.editorData.push({
|
||||||
id: $(data).attr("data-id"),
|
id: $(data).attr("data-id"),
|
||||||
folder: false
|
folder: false
|
||||||
|
@ -506,27 +631,63 @@
|
||||||
} else {
|
} else {
|
||||||
if ($(data).attr("data-if") == 1) {
|
if ($(data).attr("data-if") == 1) {
|
||||||
$(data).children(".list-img").css("display", "none")
|
$(data).children(".list-img").css("display", "none")
|
||||||
$(data).css("background", "#fff")
|
if ($(data).parent(".tr").length >= 1) {
|
||||||
|
$(data).parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
} else {
|
} else {
|
||||||
$(data).prev().css("display", "none")
|
$(data).prev().css("display", "none")
|
||||||
$(data).parent().css("background", "#fff")
|
if ($(data).parent().parent(".tr").length >= 1) {
|
||||||
|
$(data).parent().parent(".tr").css("background", "#fff")
|
||||||
|
} else {
|
||||||
|
$(data).css("background", "#fff")
|
||||||
|
|
||||||
|
}
|
||||||
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
let ina = screening(dataEditor.editorData, $(data).attr("data-id"))
|
||||||
dataEditor.editorData.splice(ina, 1)
|
dataEditor.editorData.splice(ina, 1)
|
||||||
}
|
}
|
||||||
$(data).attr("data-click", "1")
|
$(data).attr("data-click", "1")
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(dataEditor.editorData);
|
|
||||||
|
|
||||||
|
console.log(dataEditor.editorData);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
function openFolder(obj) {
|
||||||
|
dataEditor.editorData = []
|
||||||
|
dataEditor.editorIf = true
|
||||||
|
|
||||||
|
ajaxData.parentFolderId = $(obj).attr('data-id')
|
||||||
|
getFileList(ajaxData)
|
||||||
|
$("#navigation").val($(obj).attr('data-id'));
|
||||||
|
$('#folder-navigation').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
||||||
|
serch_flag = false;
|
||||||
|
}
|
||||||
|
function openFoldera(obj) {
|
||||||
|
dataEditor.editorIf = true
|
||||||
|
fileAjaxData.parentFolderId = $(obj).attr('data-id')
|
||||||
|
getmovefiles(fileAjaxData)
|
||||||
|
$("#navigationa").val($(obj).attr('data-id'));
|
||||||
|
$('#folder-navigationa').append('<a data-id="' + $(obj).attr('data-id') + '"> > ' + $(obj).text() + '</a>');
|
||||||
|
serch_flag = false;
|
||||||
|
}
|
||||||
|
|
||||||
// 文件夹重命名
|
// 文件夹重命名
|
||||||
function editorName() {
|
function editorName() {
|
||||||
console.log(dataEditor.rows, "--------------");
|
if (dataEditor.editorIf) {
|
||||||
console.log(dataEditor.editorData, "--------------");
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要重命名的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
return v.folder == true;
|
return v.folder == true;
|
||||||
});
|
});
|
||||||
|
@ -663,6 +824,14 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function hgiddenFiles(obj) {
|
function hgiddenFiles(obj) {
|
||||||
|
if (dataEditor.editorIf) {
|
||||||
|
layer.msg("请先获取编辑权限")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!dataEditor.editorData.length >= 1) {
|
||||||
|
layer.msg("请先选择你要隐藏的文件")
|
||||||
|
return
|
||||||
|
}
|
||||||
var arr2 = dataEditor.editorData.some(function (v) {
|
var arr2 = dataEditor.editorData.some(function (v) {
|
||||||
return v.folder == true;
|
return v.folder == true;
|
||||||
});
|
});
|
||||||
|
@ -737,16 +906,19 @@
|
||||||
'</li>'
|
'</li>'
|
||||||
|
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td><div class="list-img" data-if="1" data-click="1" onclick="openIf(this)" ondblclick="openIf(this)" data-id="' + item.id + '"><img src="image/' + (item.folderType == "0" ? "icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
|
||||||
|
'<td class="onClickLista onClickListOne" data-if="1" data-click="1" onclick="openIf(this)" ondblclick ="openIf(this)" data-id="' +
|
||||||
|
item.id + '"><img class="list-img"src="./image/icon_30.png"><div class="list-imga"><img src="image/' + (item.folderType == "0" ?
|
||||||
|
"icon_11.png" : "icon_11_2.png") + '"><span>' + item.name +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
'<td></td>' +
|
'<td></td>' +
|
||||||
'<td id="3">内部文件</td>' +
|
'<td>公共文件</td>' +
|
||||||
'<td>' + item.createTime + '</td>' +
|
'<td>' + item.createTime + '</td>' +
|
||||||
'<td></td>'
|
'<td></td>'
|
||||||
//+'<td><a href="javascript:;" class="news-red" data-id="'+item.id+'" onclick="getHistory(this)">历史记录</a></td>'
|
//+'<td><a href="javascript:;" class="news-red" data-groupid="'+item.groupId+'" onclick="getHistory(this)">历史记录</a></td>'
|
||||||
+
|
+
|
||||||
'</tr>'
|
'</tr>'
|
||||||
$('.list-content#tab tbody').append(html2)
|
$('.list-content#tab tbody').append(html2)
|
||||||
|
@ -769,22 +941,18 @@
|
||||||
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
'</li>'
|
'</li>'
|
||||||
$('.list-content#Chart ul').append(html1)
|
$('.list-content#Chart ul').append(html1)
|
||||||
var html2 = '<tr>' +
|
var html2 = '<tr class="tr">' +
|
||||||
'<td>'
|
'<td class="more onClickImga">' +
|
||||||
|
'<img class="list-img" src="./image/icon_30.png">' +
|
||||||
+ '<div class="more">'
|
'<div class="list-imga onClickListTwo" data-if="2" data-click="1" onclick="openIf(this)" data-id="' +
|
||||||
+ '<span onclick="showBtn(this)" >...</span>'
|
|
||||||
+ '<div class="more-edit" onclick="hideFile(this)" data-id="' + item.id + '" data-name="' + item.name + '">隐藏</div>'
|
|
||||||
+ '</div>'
|
|
||||||
+ '<div class="list-img" onclick="openFile(this)" data-id="' +
|
|
||||||
item.id + '" data-name="' + item.name + '" data-type="' + item
|
item.id + '" data-name="' + item.name + '" data-type="' + item
|
||||||
.type + '" data-url="' + item.url + '" data-time="' + item
|
.type + '" data-url="' + item.url + '" data-time="' + item
|
||||||
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
.createTime + '" ><img src="image/icon-file/icon_' + item.type +
|
||||||
'.png"><span>' + item.name + '</span></div></td>' +
|
'.png"><span>' + item.name + '</span></td>' +
|
||||||
'<td>' + item.number + '</td>' +
|
'<td>' + item.number + '</td>' +
|
||||||
'<td><div class="list-img"><span>' + item.drafter +
|
'<td><div class="list-imga"><span>' + item.drafter +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td><div class="list-img"><span>' + item.createUser +
|
'<td><div class="list-imga"><span>' + item.createUser +
|
||||||
'</span></div></td>' +
|
'</span></div></td>' +
|
||||||
'<td>' + item.type + '</td>' +
|
'<td>' + item.type + '</td>' +
|
||||||
'<td>' + item.createTime + '</td>'
|
'<td>' + item.createTime + '</td>'
|
||||||
|
@ -812,6 +980,57 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getmovefiles(fileAjaxData) {
|
||||||
|
|
||||||
|
$('.list-content#movefiles ul').empty()
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: host + '/ding/file/getFileList' + '?timetmp=' + Date.parse(new Date()).toString().substr(0,
|
||||||
|
10),
|
||||||
|
headers: {
|
||||||
|
'Blade-Auth': 'bearer ' + localStorage.accessToken
|
||||||
|
},
|
||||||
|
data: fileAjaxData,
|
||||||
|
type: "get",
|
||||||
|
contentType: "application/x-www-form-urlencoded",
|
||||||
|
dataType: "json",
|
||||||
|
success: function (data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
inita()
|
||||||
|
if (data.data.folders.length > 0) {
|
||||||
|
data.data.folders.forEach(function (item) {
|
||||||
|
var html1 =
|
||||||
|
'<li class="list pr" onclick="openFoldera(this)" ondblclick="openFoldera(this)" data-id="' +
|
||||||
|
item.id + '" data-name="' + item.name + '">' +
|
||||||
|
'<div class="onClickImg" data-id="' + item.id + '" onclick="onClickImg(this)"><img src="image/icon_30.png"></div>' +
|
||||||
|
'<div class="img"><img src="image/' + (item.folderType == "0" ?
|
||||||
|
"icon_11.png" : "icon_11_2.png") + '"></div>' +
|
||||||
|
'<div class="text-two-hide list-hight">' + item.name + '</div>' +
|
||||||
|
'</li>'
|
||||||
|
|
||||||
|
console.log($('#movefiles ul'));
|
||||||
|
$('#movefiles ul').append(html1)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if (data.data.folders.length == 0 && data.data.files.length == 0) {
|
||||||
|
$('.no-con-lista').show()
|
||||||
|
$('.con-list-cna').hide()
|
||||||
|
} else {
|
||||||
|
$('.no-con-lista').hide()
|
||||||
|
$('.con-list-cna').show()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
layer.msg(data.msg)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (data) {
|
||||||
|
console.log(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue