提交 5b478b82 编写于 作者: L LAPTOP-NDCM9L6Q\王丽雅

Merge branch 'company_server' of https://gitee.com/doc_wei01/skyeye into company_server

......@@ -16,8 +16,8 @@ layui.config({
var assetReportCheckType = isNull(parent.adminAssistantUtil.assetReportCheckType) ? false : parent.adminAssistantUtil.assetReportCheckType;
// 设置提示信息
var s = '资产明细选择规则:';
if(assetReportCheckType){
var s = '资产明细选择规则:仅加载未领用的资产信息。<br>';
if (assetReportCheckType) {
s += '1.多选;如没有查到要选择的资产信息,请检查资产信息是否满足当前规则。';
var ids = [];
$.each(parent.adminAssistantUtil.checkAssetReportMation, function(i, item) {
......
// 以下两个参数开启团队权限时有值
var objectId = '', objectKey = '';
// 根据以下两个参数判断:工作流的判断是否要根据serviceClassName的判断
var serviceClassName;
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery'], function (exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
var id = GetUrlParam("id");
// 资产采购订单转资产采购入库
AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryDepotLevelValById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) {
let data = json.bean;
// 仓库级别的值的【编辑布局】
dsFormUtil.initEditPageForStatic('content', 'FP2024071200008', data, {
savePreParams: function (params) {
params.parentId=data.parentId
params.depotId=data.depotId
},
saveData: function (params) {
// 保存数据
AjaxPostUtil.request({url: sysMainMation.erpBasePath + "writeDepotLevelVal", params: params, type: 'json', method: "POST", callback: function(json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
},
// loadComponentCallback: function () {
// // $("div[controlType='assetPurchasePutFromType']").remove();
// },
tableAddRowCallback: function (tableId) {
$("#addRow" + tableId).remove();
// $("div[controlType='simpleTable']").find(".assetId").prop('disabled', true);
// $("div[controlType='simpleTable']").find(".fromId").prop('disabled', true);
// $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true);
// $("div[controlType='simpleTable']").find(".chooseAssetBtn").prop('disabled', true);
}
});
}});
});
\ No newline at end of file
var folderId = "2";//当前所在目录的位置
var operaterId = "";//即将进行删除,重命名等操作的id
var folderTemplate;
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'dropdown', 'fsCommon', 'fsTree', 'viewer', 'contextMenu', 'ClipboardJS', 'colorpicker', 'jqueryUI', 'webuploader','tableTreeDj'], function (exports) {
}).define(['window', 'jquery', 'winui', 'dropdown', 'fsCommon', 'fsTree', 'table', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
fsTree = layui.fsTree,
fsCommon = layui.fsCommon,
colorpicker = layui.colorpicker,
device = layui.device(),
tableTree = layui.tableTreeDj;
var currentUserId = "";
// 获取当前登录员工信息
systemCommonUtil.getSysCurrentLoginUserMation(function (data) {
currentUserId = data.bean.id;
});
//遮罩层显示
$(".fileconsole-mask").show();
matchingLanguage();
form = layui.form,
table = layui.table;
var ztree;
//下拉按钮
// 下拉按钮
var dropdown = new Dropdown();
dropdown.render();
var ztree = null;
//获取所有仓库queryAllStoreHouseList queryDepotLevelValList
/********* tree 处理 start *************/
fsTree.render({
id: "treeDemo",
url: sysMainMation.diskCloudBasePath + "fileconsole001",
url: sysMainMation.erpBasePath + "queryDepotLevelById",
checkEnable: false,
loadEnable: true,//异步加载
showLine: false,
showIcon: true,
addDiyDom: addDiyDom,
clickCallback: zTreeOnClick,
addDiyDom: ztreeUtil.addDiyDom,
clickCallback: onClickTree,
onRightClick: onRightClick,
onDblClick: function(){},
onAsyncSuccess: function(id){}
}, function(id){
onDblClick: function() {},
onAsyncSuccess: function(id) {}
}, function(id) {
ztree = $.fn.zTree.getZTreeObj(id);
loadThisFolderChild();
fuzzySearch(id, '#name', null, true);
initLoadTable();
ztreeUtil.initEventListener(id);
});
function addDiyDom(treeId, treeNode) {
// css样式以及位置调整
var spaceWidth = 8;
var switchObj = $("#" + treeNode.tId + "_switch"),
icoObj = $("#" + treeNode.tId + "_ico");
switchObj.remove();
icoObj.before(switchObj);
if (treeNode.level >= 1) {
var spaceStr = "<span style='display: inline-block;width:" + (spaceWidth * treeNode.level) + "px'></span>";
switchObj.before(spaceStr);
//异步加载的方法
function onClickTree(event, treeId, treeNode) {
if(treeNode == undefined) {
dictTypeId = "";
} else {
dictTypeId = treeNode.id;
}
loadTable();
}
function initLoadTable() {
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: sysMainMation.erpBasePath + 'queryDepotLevelValList',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], rowspan: '2', type: 'numbers' },
// { field: 'name', title: '名称', rowspan: '2', align: 'left', width: 300, templet: function (d) {
// return '<a lay-event="details" class="notice-title-click">' + d.name + '</a>';
// }},
{ field: 'number', title: '编号', rowspan: '2', align: 'left', width: 350 },
// { field: 'warehousing', title: '仓储费', rowspan: '2', align: 'left', width: 150 },
// { field: 'truckage', title: '搬运费', rowspan: '2', align: 'left', width: 150 },
// // { field: 'isDefault', title: '是否默认', rowspan: '2', align: 'left', width: 100 },
// { field: 'isDefault', title: '是否默认', width: 100, align: "center", templet: function (d) {
// // return shopUtil.getMealOrderWhetherGiveName(d);
// return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("commonIsDefault", 'id', d.isDefault, 'name');
// }},
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], rowspan: '2', align: 'left', width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], rowspan: '2', align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], rowspan: '2', align: 'left', width: 120 },
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], rowspan: '2', align: 'center', width: 150 },
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入编号", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
});
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'edit') { //编辑
edit(data);
} else if (layEvent === 'details'){ //详情
details(data);
} else if (layEvent === 'del') { //删除
del(data);
}
});
}
// 添加
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: systemCommonUtil.getUrl('FP2024071200007', null),
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "warehouseLevelValueAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
// 编辑
function edit(data) {
_openNewWindows({
url: systemCommonUtil.getUrl('FP2024071200008&id=' + data.id, null),
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "warehouseLevelValueEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
}
// 操作数据
var aObj = $("#" + treeNode.tId + "_a");
if ($("#diyBtn_" + treeNode.id).length > 0) return;
aObj.after("");
aObj.addClass("tree_a");
aObj.attr("ztreerowid", treeNode.id);
// 详情
function details(data) {
_openNewWindows({
url: systemCommonUtil.getUrl('FP2024071200009&id=' + data.id, null),
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "warehouseLevelValueDetails",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
}});
}
// 删除
function del(data) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: sysMainMation.admBasePath + "deleteDepotLevelValById", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
}
// 树节点右键
function onRightClick(event, treeId, treeNode) {
folderId = treeNode.id;
......@@ -80,9 +156,7 @@ layui.config({
name: treeNode.name
};
$("#treeRight").html(getDataUseHandlebars($("#treeRightTemplate").html(), {bean: par}));
{
showRMenu('root', event.clientX, event.clientY);
}
showRMenu('root', event.clientX, event.clientY);
}
// 展示树节点右键菜单
......@@ -110,238 +184,61 @@ layui.config({
}
}
// 刷新树指定节点
function refreshTreePointNode(){
// 刷新节点
var nownode = ztree.getNodesByParam("id", folderId, null);
ztree.reAsyncChildNodes(nownode[0], "refresh");
}
// 树的动画效果
$("body").on("mouseover", "#treeDemo a", function (e) {
$("#treeDemo").find("a").removeClass('mouseOver');
$(this).addClass('mouseOver');
});
$("body").on("mouseleave", "#treeDemo", function (e) {
$("#treeDemo").find("a").removeClass('mouseOver');
});
// 设置选中节点
function chooseNodeSelect(nodeId){
var selNode = ztree.getNodeByParam("id", nodeId, null);
ztree.selectNode(selNode);
}
// 右侧内容右键操作
$("body").on("contextmenu", "#file-content .file", function (e) {
var _this = $(this);
operaterId = _this.attr("rowid");
// 1.加载右侧右键内容
initFileContentRight(_this, e);
// 2.加载选中
setChooseFileContent(_this);
});
// 加载右侧右键内容
function initFileContentRight(_this, e) {
var par = {
id: _this.attr("rowid"),
name: _this.find(".title").html(),
fileType: _this.attr("filetype")
};
$("#fileRightMenu").show();
$("#fileRightMenu").html(getDataUseHandlebars($("#fileRightMenuTemplate").html(), {bean: par}));
$("#fileRightMenu").css({top: e.clientY + "px", left: e.clientX + "px", visibility: "visible", position: "absolute"});
if ($.inArray(_this.attr("filetype"), officeType) == -1) {
$(".openByOnlyOffice").hide();
$(".openByMicrosoftOffice").hide();
}
}
// 加载选中
function setChooseFileContent(_this){
$(".select-op-more").find("button[class*='btn-custom']").show();
$(".select-op-more").find("li[class*='is-file']").show();
$(".select-op-more").show();
$("#file-content").find("div").removeClass("active");
// 获取创建人
var createId = _this.attr("createId");
// 权限控制
authControllerFile(createId);
// 其他选中取消
$("#file-content .menu-folder .item-select .item-check").find("input:checkbox[name='checkFile']:checked").prop("checked", false);
// 添加选中样式
_this.addClass("active");
// 设置当前选中
_this.children(".item-select").children(".item-check").find("input:checkbox[name='checkFile']").prop("checked", true);
}
// 树节点点击事件
function zTreeOnClick(event, treeId, treeNode) {
var folderName = getFilePath(treeNode);
$(".yarnball").html('<li class="yarnlet first"><a title="/">/</a></li>' + folderName);
if(treeNode.id != folderId){
folderId = treeNode.id;
loadThisFolderChild();
}
// 如果节点不展开,则展开
if(!treeNode.open){
ztree.expandNode(treeNode);
}
};
function getFileMation(id, callback) {
AjaxPostUtil.request({url: sysMainMation.diskCloudBasePath + "queryFileConsoleById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) {
if (typeof callback == "function") {
callback(json.bean)
}
}});
}
// 文件夹或者文件重命名
$("body").on("click", ".fileReName", function (e) {
reNameSpecially();
$(".layui-dropdown-menu").hide();
});
// 文件名保存
$("body").on("click", ".filename-edit-save", function (e) {
if(isNull($(this).parent().find('textarea').val())) {
winui.window.msg('请填写文件名', {icon: 2, time: 2000});
} else {
$(this).parent().parent().css({"z-index": 0});
editFolderById($(this).parent());
}
});
// 文件名取消修改
$("body").on("click", ".filename-edit-cancle", function (e) {
$(this).parent().parent().css({"z-index": 0});
$(this).parent().parent().find("div[class='filename']").show();
$(this).parent().hide();
});
// 文件夹或者文件删除
$("body").on("click", ".deleteFolderAndChild", function (e) {
// 树操作--文件夹或者文件删除
$("body").on("click", ".treedeleteFolderAndChild", function (e) {
hideRMenu();
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
var checkItems = $("#file-content .menu-folder .item-select .item-check").find("input:checkbox[name='checkFile']:checked");
var deleteArray = new Array();
$.each(checkItems, function(i, item) {
var checkFile = $(item).parent().parent().parent();
deleteArray.push({
id: checkFile.attr("rowid"),
fileType: checkFile.attr("filetype")
});
});
$(".layui-dropdown-menu").hide();
$(".select-op-more").hide();
//如果选中项为空
if(deleteArray.length == 0){
winui.window.msg('请选择要删除的文件或文件夹', {icon: 2, time: 2000});
return false;
}
deleteFolderAndChild(deleteArray, function() {
// 刷新节点
refreshTreePointNode();
// 加载该目录下的文件
loadThisFolderChild();
});
clickType = 'folder';
deleteFileOrNote(folderId);
});
});
// // 删除文件夹以及该文件夹下的所有子内容
// function deleteFolderAndChild(deleteArray, callBack){
// AjaxPostUtil.request({url: sysMainMation.diskCloudBasePath + "fileconsole004", params: {fileList: JSON.stringify(deleteArray)}, type: 'json', method: 'POST', callback: function (json) {
// winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
// callBack();
// }});
// }
// 新建
$("body").on("click", "#createNewFolder", function (e) {
hideRMenu();
createFolder(folderId, refreshTreePointNode, initMenuToBox, currentUserId);
});
// 删除指定文件夹或笔记
function deleteFileOrNote(id){
AjaxPostUtil.request({url: sysMainMation.erpBasePath + "deleteDepotLevelById", params: {id: id}, type: 'json', method: 'DELETE', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
var selNode = ztree.getNodeByParam("id", id, null);
ztree.selectNode(selNode.getParentNode());// 设置选中节点
// 重置folderid
folderId = selNode.getParentNode().id;
ztree.removeNode(selNode);// 移除节点
// showListById();// 获取文件夹和笔记列表
}});
}
// 树操作--新建
$("body").on("click", ".treecreateNewFolder", function (e) {
hideRMenu();
loadThisFolderChild();
createFolder(folderId, refreshTreePointNode, initMenuToBox, currentUserId);
// 打开一个新建布局
_openNewWindows({
url: "../../tpl/turnIocatorManage/addWarehouseLevel.html?id=" + data.id,
title: "新增仓库级别",
pageId: "addWarehouseLevel",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
// 树操作--刷新
$("body").on("click", ".treerefreshContent", function (e) {
refreshTreePointNode();
loadThisFolderChild();
form.render();
$("body").on("click", "#reloadTable", function() {
loadTable();
});
// 默认初始化树
var initTreeSel = false;
initRightMenu();
//初始化右键
function initRightMenu() {
$("body").contextMenu({
width: 190, // width
itemHeight: 30, // 菜单项height
bgColor: "#FFFFFF", // 背景颜色
color: "#0A0A0A", // 字体颜色
fontSize: 12, // 字体大小
hoverBgColor: "#99CC66", // hover背景颜色
target: function(ele) { // 当前元素
},
menu: [{
text: "新建",
img: "../../assets/images/icon/create-folder-icon.png",
callback: function() {
createFolder(folderId, refreshTreePointNode, initMenuToBox, currentUserId);
}
}, { // 菜单项
text: "新建文件",
img: "../../assets/images/my-file-icon.png",
children: [{
text: "txt文件",
img: "../../assets/images/txt-icon.png",
callback: function() {
createNumpyFile("txt", folderId, loadThisFolderChild());
}
}, {
text: "html文件",
img: "../../assets/images/icon/html-icon.png",
callback: function() {
createNumpyFile("html", folderId, loadThisFolderChild());
}
}, {
text: "--"
}]
}, {
text: "--"
}, {
text: "--"
}, {
text: "刷新",
img: "../../assets/images/refresh-icon.png",
callback: function() {
loadThisFolderChild();
}
}
]
});
function loadTable() {
tableTree.reload("messageTable", {where: getTableParams()});
}
// 负责view的销毁
function removeOneFile(file) {
var $li = $('#' + file.id);
delete percentages[file.id];
updateAllTotalProgress();
$li.off().find('.file-panel').off().end().remove();
function getTableParams() {
return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('turnIocatorManage', {});
......
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
<div id="content"></div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" type="button" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<!-- <button class="winui-btn" lay-submit lay-filter="formSaveDraft" id="formSaveDraft">保存为草稿</button>-->
<button class="winui-btn" lay-submit lay-filter="formWriteBean" id="formWriteBean">提交</button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/turnIocatorManage/'}).use('addWarehouseLevel');
</script>
</body>
</html>
\ No newline at end of file
......@@ -8,728 +8,63 @@
<link href="../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" />
<link href="../../assets/lib/layui/css/file-tree.css" rel="stylesheet" />
<link href="../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css" rel="stylesheet" />
<style type="text/css" id="showListStyle">
</style>
<!-- 颜色选择器样式 -->
<style type="text/css">
.layui-colorpicker{
width: 28px;
height: 20px;
border: 0px;
padding: 0px;
}
.select-box-dashed {
position: absolute;
display: none;
width: 0px;
height: 0px;
padding: 0px;
margin: 0px;
border: 1px dashed #0099ff;
background-color: #c3d5ed;
opacity: 0.5;
filter: alpha(opacity=50);
font-size: 0px;
z-index: 99999;
}
</style>
<style type="text/css" id="fontColorStyleCss">
</style>
</head>
<body style="-webkit-user-select:none; overflow: hidden; -moz-user-select:none; -ms-user-select:none; user-select:none;">
<div class="fileconsole-mask">
<div class="cent">
<i class="fa fa-spin fa-spinner fa-fw"></i><br><br>
<font>加载中</font>
</div>
</div>
<div class="txtcenter manage-console">
<div class="manage-console-left">
<div class="resize-bar"></div>
<div class="resize-line"></div>
<div class="left-top-is-tree">
<ul id="treeDemo" class="ztree fsTree" method="get" isRoot="0"
treeIdKey="id" inputs="parentId" treePIdKey="pId" clickCallbackInputs="parentId:$id" treeName="name"></ul>
</div>
<div class="left-bottom-is-memory">
<div class="memory-top">
<div class="memory-scolor">
</div>
<div class="memory-num">
0KB
</div>
</div>
</div>
</div>
<div class="manage-console-right">
<!-- 目录 -->
<div class="right-top-is-route">
<div class="layui-btn-group doc-op">
<button class="btn-custom my-document" title="我的文档">
<img alt="" src="../../assets/images/icon/home_icon.png">
</button>
<div class="doc-op-input-div">
<ul class="yarnball">
<li class="yarnlet first">
<a title="/">/</a>
</li>
<li class="yarnlet folderName" rowid="2">
<a title="我的文档/">我的文档/</a>
</li>
</ul>
</div>
<input class="doc-op-input" value="/"/>
<button class="btn-custom" title="添加到收藏夹">
<i class="fa fa-star"></i>
</button>
</div>
<div class="layui-btn-group doc-search-op">
<input class="doc-search-input" value=""/>
<button class="btn-custom" title="搜索">
<i class="fa fa-search"></i>
</button>
</div>
</div>
<!-- 操作 -->
<div class="right-top2-is-operation">
<div class="create-new">
<button type="button" class="btn-custom" id="createNewFolder">
<i class="fa fa-folder-open"></i>新建文件夹
</button>
<div class="layui-btn-dropdown">
<button type="button" data-toggle="dropdown">
<i class="fa fa-arrow-down" style="font-size: 14px"></i>
</button>
<ul class="layui-dropdown-menu">
<li class="is-file" id="createTXTFile">
<a href="javascript:;">
<img alt="" src="../../assets/images/txt-icon.png" />
<span>txt文件</span>
</a>
</li>
<li class="is-file" id="createHtmlFile">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/html-icon.png" />
<span>html文件</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file" id="createWordFile">
<a href="javascript:;">
<img alt="" src="../../assets/images/word-icon.png" />
<span>Word docx 文件</span>
</a>
</li>
<li class="is-file" id="createExcelFile">
<a href="javascript:;">
<img alt="" src="../../assets/images/excel-icon.png" />
<span>Excel xlsx 文件</span>
</a>
</li>
<li class="is-file" id="createPPTFile">
<a href="javascript:;">
<img alt="" src="../../assets/images/ppt-icon.png" />
<span>PowerPoint pptx 文件</span>
</a>
</li>
</ul>
</div>
</div>
<div class="upload-file">
<button type="button" class="btn-custom uploadFileBtn">
<i class="fa fa-upload"></i>上传
</button>
<div class="layui-btn-dropdown">
<button type="button" data-toggle="dropdown">
<i class="fa fa-arrow-down" style="font-size: 14px"></i>
</button>
<ul class="layui-dropdown-menu">
<li class="is-file uploadFileBtn">
<a href="javascript:;">
<img alt="" src="../../assets/images/cloud/file-icon.png" />
<span>文件</span>
</a>
</li>
<li class="is-file uploadFileFolderBtn">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/folder-icon.png" />
<span>文件夹</span>
</a>
</li>
</ul>
</div>
</div>
<div class="select-op-more" style="display: none;">
<button class="btn-custom shareFileBtn" title="分享">
<img alt="" src="../../assets/images/icon/fx-icon.png"/>
<span>分享</span>
</button>
<button class="btn-custom fileDownLoad" title="下载">
<img alt="" src="../../assets/images/download-icon.png"/>
<span>下载</span>
</button>
<button class="btn-custom fileReName" title="重命名">
<img alt="" src="../../assets/images/rename-icon.png"/>
<span>重命名</span>
</button>
<button class="btn-custom deleteFolderAndChild" title="删除">
<img alt="" src="../../assets/images/icon/delete-icon.png"/>
<span>删除</span>
</button>
<button class="btn-custom cancleChoose" title="取消选中">
<img alt="" src="../../assets/images/cloud/cut-icon.png"/>
<span>取消选中</span>
</button>
<div class="layui-btn-dropdown">
<button type="button" data-toggle="dropdown">
<i class="fa fa-ellipsis-h" style="font-size: 14px"></i>
更多<i class="fa fa-arrow-down" style="font-size: 14px"></i>
</button>
<ul class="layui-dropdown-menu">
<li class="is-file refreshContent">
<a href="javascript:;">
<img alt="" src="../../assets/images/refresh-icon.png" />
<span>刷新</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file createDuplicate">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/create-copy-icon.png" />
<span>创建副本</span>
</a>
</li>
<li class="is-file">
<a href="javascript:;">
<img alt="" src="../../assets/images/favorites-icon.png" />
<span>添加到收藏夹</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file packageOpteare unzipToTheCurrent">
<a href="javascript:;">
<img alt="" src="../../assets/images/decompression-now.png" />
<span>解压到当前</span>
</a>
</li>
<li class="is-file packageOpteare">
<a href="javascript:;">
<img alt="" src="../../assets/images/cloud/decompression-win.png" />
<span>解压到文件夹</span>
</a>
</li>
<li class="is-file createComPackage">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/create-package-icon.png" />
<span>创建压缩包</span>
</a>
</li>
<li class="is-file filePropertyMation">
<a href="javascript:;">
<img alt="" src="../../assets/images/attribute-icon.png" />
<span>属性</span>
</a>
</li>
</ul>
</div>
</div>
<div class="select-optearor">
<div class="layui-btn-dropdown">
<button class="btn-custom" title="排序" data-toggle="dropdown" style="border-radius: 5px 0px 0px 5px;">
<i class="fa fa-sort-amount-asc"></i>
</button>
<ul class="layui-dropdown-menu">
<li class="is-file orderBy" data-type="1">
<a href="javascript:;">
<img alt="" src="" style="display: none"/>
<span>名称</span>
</a>
</li>
<li class="is-file orderBy" data-type="2">
<a href="javascript:;">
<img alt="" src="" style="display: none"/>
<span>上传时间</span>
</a>
</li>
<li class="is-file orderBy" data-type="3">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/icon_choose.png" />
<span>类型</span>
</a>
</li>
<li class="is-file orderBy" data-type="4">
<a href="javascript:;">
<img alt="" src="" style="display: none"/>
<span>大小</span>
</a>
</li>
</ul>
</div>
<div class="layui-btn-dropdown">
<button class="btn-custom" title="展示" data-toggle="dropdown" id="showTypeChoose" style="border-radius: 0px">
<i class="fa fa-th-large"></i>
</button>
<ul class="layui-dropdown-menu">
<li class="is-file showFileType" data-type="1">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/icon_choose.png" />
<span>图标排列</span>
</a>
</li>
<li class="is-file showFileType" data-type="2">
<a href="javascript:;">
<img alt="" src="" style="display: none"/>
<span>列表排列</span>
</a>
</li>
</ul>
</div>
<button class="btn-custom" title="字体颜色" id="fontColorStyleBox">
<div id="fontColorStyle"></div>
</button>
<button class="btn-custom" title="在线预览类型" id="showFileInLine" style="border-radius: 0px 5px 5px 0px;">
<i class="fa fa-low-vision"></i>
</button>
</div>
</div>
<!-- 内容 -->
<div class="right-center-is-content" id="file-content">
</div>
<!-- 项目数量 -->
<div class="right-bottom-is-num">
<span class="item-num"></span>
</div>
</div>
</div>
<div class="file-panel-upload">
<ul class="filelist"></ul>
<div class="statusBar" style="display:none;">
<div class="progress">
<span class="text">0%</span>
<span class="percentage"></span>
</div>
<div class="info"></div>
<div class="btns">
<div class="closeBtn">关闭</div>
<div id="filePicker2"></div>
<div class="uploadBtn">开始上传</div>
</div>
</div>
</div>
<ul class="layui-dropdown-menu" id="treeRight">
</ul>
<ul class="layui-dropdown-menu" id="fileRightMenu">
</ul>
<script type="text/x-handlebars-template" id="treeRightTemplate">
{{#bean}}
<li class="is-file treeShareFolderAndChild">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/fx-icon.png" />
<span>分享</span>
</a>
</li>
<li class="is-file treerefreshContent">
<a href="javascript:;">
<img alt="" src="../../assets/images/refresh-icon.png" />
<span>刷新</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file copyUrl" data-clipboard-text="{'id':'{{id}}', 'name': '{{name}}', 'fileType': 'folder', 'type': '1'}">
<a href="javascript:;">
<img alt="" src="../../assets/images/cloud/copy-icon.png" />
<span>复制</span>
</a>
</li>
<li class="is-file cutUrl" data-clipboard-text="{'id':'{{id}}', 'name': '{{name}}', 'fileType': 'folder', 'type': '2'}">
<a href="javascript:;">
<img alt="" src="../../assets/images/cloud/cut-icon.png" />
<span>剪切</span>
</a>
</li>
<li class="is-file treePaste">
<a href="javascript:;">
<img alt="" src="../../assets/images/paste-icon.png" />
<span>粘贴</span>
</a>
</li>
<li class="is-file treedeleteFolderAndChildToRecycle">
<a href="javascript:;">
<img alt="" src="../../assets/images/rececyl-icon.png"/>
<span>回收站</span>
</a>
</li>
<li class="is-file treedeleteFolderAndChild">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/delete-icon.png" />
<span>删除</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file treecreateNewFolder">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/create-folder-icon.png" />
<span>新建文件夹</span>
</a>
</li>
<li class="is-file treeAddToFavorites">
<a href="javascript:;">
<img alt="" src="../../assets/images/favorites-icon.png" />
<span>添加到收藏夹</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file treeFilePropertyMation">
<a href="javascript:;">
<img alt="" src="../../assets/images/attribute-icon.png" />
<span>属性</span>
</a>
</li>
{{/bean}}
</script>
<script type="text/x-handlebars-template" id="fileRightMenuTemplate">
{{#bean}}
<li class="is-file shareFileBtn">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/fx-icon.png"/>
<span>分享</span>
</a>
</li>
<li class="is-file fileDownLoad">
<a href="javascript:;">
<img alt="" src="../../assets/images/download-icon.png"/>
<span>下载</span>
</a>
</li>
<li class="is-file openByOnlyOffice">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/icon_onlyoffice.png"/>
<span>Onlyoffice在线编辑</span>
</a>
</li>
<li class="is-file openByMicrosoftOffice">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/icon_officelive.png"/>
<span>OfficeLive预览</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file copyUrl" data-clipboard-text="{'id':'{{id}}', 'name': '{{name}}', 'fileType': '{{fileType}}', 'type': '1'}">
<a href="javascript:;">
<img alt="" src="../../assets/images/cloud/copy-icon.png"/>
<span>复制</span>
</a>
</li>
<li class="is-file cutUrl" data-clipboard-text="{'id':'{{id}}', 'name': '{{name}}', 'fileType': '{{fileType}}', 'type': '2'}">
<a href="javascript:;">
<img alt="" src="../../assets/images/cloud/cut-icon.png"/>
<span>剪切</span>
</a>
</li>
<li class="is-file fileReName">
<a href="javascript:;">
<img alt="" src="../../assets/images/rename-icon.png"/>
<span>重命名</span>
</a>
</li>
<li class="is-file deleteFolderAndChildToRecycle">
<a href="javascript:;">
<img alt="" src="../../assets/images/rececyl-icon.png"/>
<span>回收站</span>
</a>
</li>
<li class="is-file deleteFolderAndChild">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/delete-icon.png"/>
<span>删除</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file cancleChoose">
<a href="javascript:;">
<img alt="" src="../../assets/images/cloud/cut-icon.png"/>
<span>取消选中</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file filePropertyMation">
<a href="javascript:;">
<img alt="" src="../../assets/images/attribute-icon.png" />
<span>属性</span>
</a>
</li>
{{/bean}}
</script>
<!-- folderTemplate.tpl -->
<script type="text/x-handlebars-template" id="folderTemplate">
{{#bean}}
<div class="file folder-box menu-folder" title="名称:{{name}}&#10;上传时间:{{createTime}}&#10;操作人:{{createName}}" rowid="{{id}}" filetype="folder" createId="{{createId}}">
<div class="item-select">
<div class="item-check">
<input type="checkbox" id="check{{id}}" class="checkFile" name="checkFile"/>
<label for="check{{id}}" class="checkLabel"></label>
</div>
</div>
<div class="ico">
<img alt="" src="{{icon}}">
<div class="meta-info path-self-share" style="display: {{isShow}}">
<i class="fa fa-share-alt"></i>
</div>
</div>
<div class="filename">
<span class="title db-click-rename">{{name}}</span>
</div>
<div class="filename-edit">
<textarea class="layui-textarea filename-edit-text" style="min-height: 40px; padding: 4px;">{{name}}</textarea>
<img src="../../assets/images/save-icon.png" title="保存" class="filename-edit-save" />
<img src="../../assets/images/icon/cancle-icon.png" title="取消" class="filename-edit-cancle" />
</div>
<div class="uploadtime" style="display: none">
<span>{{createTime}}</span>
</div>
</div>
{{/bean}}
</script>
<!-- imagesTemplate.tpl -->
<script type="text/x-handlebars-template" id="imagesTemplate">
{{#bean}}
<div class="file images-box menu-folder" title="名称:{{name}}&#10;大小:{{fileSize}}&#10;上传时间:{{createTime}}&#10;操作人:{{createName}}" rowid="{{id}}" filetype="{{type}}" createId="{{createId}}">
<div class="item-select">
<div class="item-check">
<input type="checkbox" id="check{{id}}" class="checkFile" name="checkFile"/>
<label for="check{{id}}" class="checkLabel"></label>
</div>
</div>
<div class="ico">
<img alt="{{name}}" src="{{fileBasePath}}{{icon}}" data-original="{{icon}}">
<div class="meta-info path-self-share" style="display: {{isShow}}">
<i class="fa fa-share-alt"></i>
</div>
</div>
<div class="filename">
<span class="title db-click-rename">{{name}}</span>
</div>
<div class="filename-edit">
<textarea class="layui-textarea filename-edit-text" style="min-height: 40px; padding: 4px;">{{name}}</textarea>
<img src="../../assets/images/save-icon.png" title="保存" class="filename-edit-save" />
<img src="../../assets/images/icon/cancle-icon.png" title="取消" class="filename-edit-cancle" />
</div>
<div class="uploadtime" style="display: none">
<span>{{createTime}}</span>
<body>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1656776769966"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
</div>
</div>
{{/bean}}
</script>
<!-- officeTemplate.tpl -->
<script type="text/x-handlebars-template" id="officeTemplate">
{{#bean}}
<div class="file office-box menu-folder" title="名称:{{name}}&#10;大小:{{fileSize}}&#10;上传时间:{{createTime}}&#10;操作人:{{createName}}" rowid="{{id}}" filetype="{{type}}" createId="{{createId}}">
<div class="item-select">
<div class="item-check">
<input type="checkbox" id="check{{id}}" class="checkFile" name="checkFile"/>
<label for="check{{id}}" class="checkLabel"></label>
</div>
</div>
<div class="ico">
<img alt="" src="{{icon}}">
<div class="meta-info path-self-share" style="display: {{isShow}}">
<i class="fa fa-share-alt"></i>
</div>
</div>
<div class="filename">
<span class="title db-click-rename">{{name}}</span>
</div>
<div class="filename-edit">
<textarea class="layui-textarea filename-edit-text" style="min-height: 40px; padding: 4px;">{{name}}</textarea>
<img src="../../assets/images/save-icon.png" title="保存" class="filename-edit-save" />
<img src="../../assets/images/icon/cancle-icon.png" title="取消" class="filename-edit-cancle" />
</div>
<div class="uploadtime" style="display: none">
<span>{{createTime}}</span>
</div>
</div>
{{/bean}}
</script>
<!-- vedioTemplate.tpl -->
<script type="text/x-handlebars-template" id="vedioTemplate">
{{#bean}}
<div class="file vedio-box menu-folder" title="名称:{{name}}&#10;大小:{{fileSize}}&#10;上传时间:{{createTime}}&#10;操作人:{{createName}}" rowid="{{id}}" filetype="{{type}}" createId="{{createId}}">
<div class="item-select">
<div class="item-check">
<input type="checkbox" id="check{{id}}" class="checkFile" name="checkFile"/>
<label for="check{{id}}" class="checkLabel"></label>
</div>
</div>
<div class="ico">
<img alt="{{name}}" src="{{fileBasePath}}{{icon}}">
<div class="meta-info path-self-share" style="display: {{isShow}}">
<i class="fa fa-share-alt"></i>
</div>
</div>
<div class="filename">
<span class="title db-click-rename">{{name}}</span>
</div>
<div class="filename-edit">
<textarea class="layui-textarea filename-edit-text" style="min-height: 40px; padding: 4px;">{{name}}</textarea>
<img src="../../assets/images/save-icon.png" title="保存" class="filename-edit-save" />
<img src="../../assets/images/icon/cancle-icon.png" title="取消" class="filename-edit-cancle" />
</div>
<div class="uploadtime" style="display: none">
<span>{{createTime}}</span>
</div>
</div>
{{/bean}}
</script>
<!-- packageTemplate.tpl -->
<script type="text/x-handlebars-template" id="packageTemplate">
{{#bean}}
<div class="file package-box menu-folder" title="名称:{{name}}&#10;大小:{{fileSize}}&#10;上传时间:{{createTime}}&#10;操作人:{{createName}}" rowid="{{id}}" filetype="{{type}}" createId="{{createId}}">
<div class="item-select">
<div class="item-check">
<input type="checkbox" id="check{{id}}" class="checkFile" name="checkFile"/>
<label for="check{{id}}" class="checkLabel"></label>
</div>
</div>
<div class="ico">
<img alt="{{name}}" src="{{icon}}">
<div class="meta-info path-self-share" style="display: {{isShow}}">
<i class="fa fa-share-alt"></i>
</div>
</div>
<div class="filename">
<span class="title db-click-rename">{{name}}</span>
</div>
<div class="filename-edit">
<textarea class="layui-textarea filename-edit-text" style="min-height: 40px; padding: 4px;">{{name}}</textarea>
<img src="../../assets/images/save-icon.png" title="保存" class="filename-edit-save" />
<img src="../../assets/images/icon/cancle-icon.png" title="取消" class="filename-edit-cancle" />
</div>
<div class="uploadtime" style="display: none">
<span>{{createTime}}</span>
</div>
</div>
{{/bean}}
</script>
<!-- aceTemplate.tpl -->
<script type="text/x-handlebars-template" id="aceTemplate">
{{#bean}}
<div class="file ace-box menu-folder" title="名称:{{name}}&#10;大小:{{fileSize}}&#10;上传时间:{{createTime}}&#10;操作人:{{createName}}" rowid="{{id}}" filetype="{{type}}" createId="{{createId}}">
<div class="item-select">
<div class="item-check">
<input type="checkbox" id="check{{id}}" class="checkFile" name="checkFile"/>
<label for="check{{id}}" class="checkLabel"></label>
</div>
</div>
<div class="ico">
<img alt="{{name}}" src="{{icon}}">
<div class="meta-info path-self-share" style="display: {{isShow}}">
<i class="fa fa-share-alt"></i>
</div>
</div>
<div class="filename">
<span class="title db-click-rename">{{name}}</span>
</div>
<div class="filename-edit">
<textarea class="layui-textarea filename-edit-text" style="min-height: 40px; padding: 4px;">{{name}}</textarea>
<img src="../../assets/images/save-icon.png" title="保存" class="filename-edit-save" />
<img src="../../assets/images/icon/cancle-icon.png" title="取消" class="filename-edit-cancle" />
</div>
<div class="uploadtime" style="display: none">
<span>{{createTime}}</span>
</div>
</div>
{{/bean}}
</script>
<!-- otherTemplate.tpl -->
<script type="text/x-handlebars-template" id="otherTemplate">
{{#bean}}
<div class="file other-box menu-folder" title="名称:{{name}}&#10;大小:{{fileSize}}&#10;上传时间:{{createTime}}&#10;操作人:{{createName}}" rowid="{{id}}" filetype="{{type}}" createId="{{createId}}">
<div class="item-select">
<div class="item-check">
<input type="checkbox" id="check{{id}}" class="checkFile" name="checkFile"/>
<label for="check{{id}}" class="checkLabel"></label>
</div>
</div>
<div class="ico">
<img alt="{{name}}" src="{{icon}}">
<div class="meta-info path-self-share" style="display: {{isShow}}">
<i class="fa fa-share-alt"></i>
</div>
</div>
<div class="filename">
<span class="title db-click-rename">{{name}}</span>
</div>
<div class="filename-edit">
<textarea class="layui-textarea filename-edit-text" style="min-height: 40px; padding: 4px;">{{name}}</textarea>
<img src="../../assets/images/save-icon.png" title="保存" class="filename-edit-save" />
<img src="../../assets/images/icon/cancle-icon.png" title="取消" class="filename-edit-cancle" />
</div>
<div class="uploadtime" style="display: none">
<span>{{createTime}}</span>
</div>
</div>
{{/bean}}
</script>
<!-- epubTemplate.tpl -->
<script type="text/x-handlebars-template" id="epubTemplate">
{{#bean}}
<div class="file epub-box menu-folder" title="名称:{{name}}&#10;大小:{{fileSize}}&#10;上传时间:{{createTime}}&#10;操作人:{{createName}}" rowid="{{id}}" filetype="{{type}}" createId="{{createId}}">
<div class="item-select">
<div class="item-check">
<input type="checkbox" id="check{{id}}" class="checkFile" name="checkFile"/>
<label for="check{{id}}" class="checkLabel"></label>
</div>
<div class="layui-row" style="height: calc(100% - 50px);">
<div style="width: 240px; float: left; height: 100%; overflow: auto; padding: 5px;">
<input type="text" id="name" name="name" placeholder="请输入要搜索的节点" class="layui-input" />
<ul id="treeDemo" class="ztree fsTree" method="get" isRoot="1"
treeIdKey="id" inputs="parentId" treePIdKey="pId" clickCallbackInputs="parentId:$id" treeName="name"></ul>
</div>
<div class="ico">
<img alt="{{name}}" src="{{icon}}">
<div class="meta-info path-self-share" style="display: {{isShow}}">
<i class="fa fa-share-alt"></i>
<div style="width: calc(100% - 250px); float: left;">
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
</div>
</div>
<div class="filename">
<span class="title db-click-rename">{{name}}</span>
</div>
<div class="filename-edit">
<textarea class="layui-textarea filename-edit-text" style="min-height: 40px; padding: 4px;">{{name}}</textarea>
<img src="../../assets/images/save-icon.png" title="保存" class="filename-edit-save" />
<img src="../../assets/images/icon/cancle-icon.png" title="取消" class="filename-edit-cancle" />
</div>
<div class="uploadtime" style="display: none">
<span>{{createTime}}</span>
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/jquery-min.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.exhide.min.js"></script>
<script src="../../js/commonFile/fileConsoleListCommon.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/fileconsole/'}).use('fileconsolelist');
</script>
<script type="text/html" id="tableBar">
{{# if(auth('1720752315835')){ }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1720752347259')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
<script type="text/x-handlebars-template" id="treeRightTemplate">
{{#bean}}
<li class="is-file treedeleteFolderAndChild">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/delete-icon.png" />
<span>删除</span>
</a>
</li>
<li class="divider"></li>
<li class="is-file treecreateNewFolder">
<a href="javascript:;">
<img alt="" src="../../assets/images/icon/create-folder-icon.png" />
<span>新建</span>
</a>
</li>
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/jquery-min.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.exhide.min.js"></script>
<script src="../../js/commonFile/fileConsoleListCommon.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/turnIocatorManage/'}).use('turnIocatorManage');
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册