1、替换页面文件相关接口
2、树形插件 替换
This commit is contained in:
parent
141271f8c1
commit
f9c2aadfc1
9
pom.xml
9
pom.xml
@ -91,7 +91,14 @@
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>ink.wgink</groupId>
|
||||
<artifactId>service-core</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<!-- <dependency>
|
||||
<groupId>ink.wgink</groupId>
|
||||
<artifactId>service-position</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
@ -107,7 +114,7 @@
|
||||
<groupId>ink.wgink</groupId>
|
||||
<artifactId>service-role</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>ink.wgink</groupId>
|
||||
|
@ -178,7 +178,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="activityImageRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -286,7 +286,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -218,7 +218,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="activityImageRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -391,7 +391,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -219,7 +219,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="activityImageRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -333,7 +333,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -79,7 +79,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -81,7 +81,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -97,7 +97,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -99,7 +99,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -187,7 +187,7 @@
|
||||
if(downloadFile.length > 0) {
|
||||
downloadFile += ' | ';
|
||||
}
|
||||
downloadFile += '<a href="route/file/downloadfile/false/'+ item +'" target="_blank">点击下载</a>'
|
||||
downloadFile += '<a href="route/file/download/false/'+ item +'" target="_blank">点击下载</a>'
|
||||
}
|
||||
return downloadFile;
|
||||
}
|
||||
@ -213,7 +213,7 @@
|
||||
if(downloadFile.length > 0) {
|
||||
downloadFile += ' | ';
|
||||
}
|
||||
downloadFile += '<a href="route/file/downloadfile/false/'+ item +'" target="_blank">点击下载</a>'
|
||||
downloadFile += '<a href="route/file/download/false/'+ item +'" target="_blank">点击下载</a>'
|
||||
}
|
||||
return downloadFile;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="picturesRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -419,7 +419,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -37,7 +37,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="picturesRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -459,7 +459,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -113,7 +113,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -121,7 +121,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -182,12 +182,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor-fullscreen-plugin.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -195,6 +196,8 @@
|
||||
var wangEditor = window.wangEditor;
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -334,7 +337,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -371,6 +374,68 @@
|
||||
});
|
||||
}
|
||||
|
||||
// 初始化非遗目录
|
||||
function initDirectories(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'directoriesName',
|
||||
url: 'api/intangibledirectories/listztreeintangibledirectories',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#libraryDirectoriesId').val(), name: $('#directoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#libraryDirectoriesId').val('');
|
||||
$('#directoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#libraryDirectoriesId').val(selectedNode.id);
|
||||
$('#directoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 初始化所在地区
|
||||
function initArea(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'libraryArea',
|
||||
url: 'api/area/listztree',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
defaultParams: {id: 110889},
|
||||
selectedData: {id: $('#libraryAreaId').val(), name: $('#libraryArea').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#libraryAreaId').val('');
|
||||
$('#libraryArea').val('');
|
||||
return;
|
||||
}
|
||||
$('#libraryAreaId').val(selectedNode.id);
|
||||
$('#libraryArea').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化内容
|
||||
function initData() {
|
||||
top.restAjax.get(top.restAjax.path('api/intangiblelibrary/getcurrentuseridinfo', []), {}, null, function(code, data) {
|
||||
@ -379,6 +444,8 @@
|
||||
libraryOpenDateRadio();
|
||||
libraryTypeRadio();
|
||||
libraryCoverUploadFile();
|
||||
initDirectories();
|
||||
initArea();
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
@ -418,6 +485,7 @@
|
||||
});
|
||||
return false;
|
||||
});
|
||||
/*
|
||||
|
||||
$(document).on('click', '#directoriesName', function() {
|
||||
top.dialog.tree({
|
||||
@ -452,8 +520,11 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
||||
$(document).on('click', '#libraryArea', function() {
|
||||
|
||||
|
||||
/* $(document).on('click', '#libraryArea', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择所在地区',
|
||||
apiUri: top.restAjax.path('api/dataarea/listztreearea', []),
|
||||
@ -491,7 +562,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
$('.close').on('click', function() {
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -182,12 +182,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor-fullscreen-plugin.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -196,6 +197,8 @@
|
||||
var wangEditor = window.wangEditor;
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -312,7 +315,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -381,6 +384,69 @@
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 初始化非遗目录
|
||||
function initDirectories(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'directoriesName',
|
||||
url: 'api/intangibledirectories/listztreeintangibledirectories',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#libraryDirectoriesId').val(), name: $('#directoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#libraryDirectoriesId').val('');
|
||||
$('#directoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#libraryDirectoriesId').val(selectedNode.id);
|
||||
$('#directoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 初始化所在地区
|
||||
function initArea(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'libraryArea',
|
||||
url: 'api/area/listztree',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
defaultParams: {id: 110889},
|
||||
selectedData: {id: $('#libraryAreaId').val(), name: $('#libraryArea').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#libraryAreaId').val('');
|
||||
$('#libraryArea').val('');
|
||||
return;
|
||||
}
|
||||
$('#libraryAreaId').val(selectedNode.id);
|
||||
$('#libraryArea').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化内容
|
||||
function initData() {
|
||||
var loadLayerIndex;
|
||||
@ -397,6 +463,8 @@
|
||||
libraryOpenDateRadio(data['libraryOpenDate']);
|
||||
libraryTypeRadio(data['libraryType']);
|
||||
libraryCoverUploadFile();
|
||||
initDirectories()
|
||||
initArea()
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
@ -437,7 +505,7 @@
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).on('click', '#directoriesName', function() {
|
||||
/* $(document).on('click', '#directoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择非遗名录',
|
||||
apiUri: top.restAjax.path('api/intangibledirectories/listztreeintangibledirectories', []),
|
||||
@ -509,7 +577,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
$('.close').on('click', function() {
|
||||
closeBox();
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryDataCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -115,7 +115,7 @@
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-image-box" style="width: auto; height: auto; padding-left: 25px; padding-top: 25px;">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{jItem.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{jItem.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="libraryDataImage1RemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -211,7 +211,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -331,7 +331,7 @@
|
||||
});
|
||||
|
||||
function initLibraryDataImageFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryDataCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -114,7 +114,7 @@
|
||||
{{# var files = iItem.fileValues; }}
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-audio-box" style="width: auto; height: auto; padding-left: 35px; padding-top: 35px;">
|
||||
<audio src="route/file/downloadfile/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<audio src="route/file/download/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-audio" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="libraryDataImage1RemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
@ -209,7 +209,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -329,7 +329,7 @@
|
||||
});
|
||||
|
||||
function initLibraryDataImageFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
|
@ -36,7 +36,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryDataCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -162,7 +162,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryDataCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -210,7 +210,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -371,7 +371,7 @@
|
||||
}
|
||||
ids += jItem;
|
||||
}
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, {iItem: iItem}, function (code, data, args) {
|
||||
initVideo(args.iItem.fileId, data);
|
||||
@ -490,7 +490,7 @@
|
||||
}
|
||||
|
||||
function initLibraryDataImageFileByRemove(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryDataCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -116,7 +116,7 @@
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{jItem.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{jItem.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="libraryDataImage1RemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -211,7 +211,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -328,7 +328,7 @@
|
||||
});
|
||||
|
||||
function initLibraryDataImageFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
|
@ -125,7 +125,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryDataCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -115,7 +115,7 @@
|
||||
{{# var files = iItem.fileValues; }}
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-audio-box" style="width: auto; height: auto; padding-left: 35px; padding-top: 35px;">
|
||||
<audio src="route/file/downloadfile/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<audio src="route/file/download/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-audio" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="libraryDataImage1RemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
@ -209,7 +209,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -326,7 +326,7 @@
|
||||
});
|
||||
|
||||
function initLibraryDataImageFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
|
@ -37,7 +37,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryDataCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -162,7 +162,7 @@
|
||||
return;
|
||||
}
|
||||
console.log(ids);
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="libraryDataCoverRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -210,7 +210,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -367,7 +367,7 @@
|
||||
ids += jItem;
|
||||
}
|
||||
console.log(ids);
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, {iItem: iItem}, function (code, data, args) {
|
||||
initVideo(args.iItem.fileId, data);
|
||||
@ -483,7 +483,7 @@
|
||||
}
|
||||
|
||||
function initLibraryDataImageFileByRemove(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
|
@ -100,7 +100,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -102,7 +102,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -142,7 +142,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -143,7 +143,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -98,7 +98,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -100,7 +100,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -133,7 +133,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -135,7 +135,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -91,7 +91,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -93,7 +93,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -165,7 +165,7 @@
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{jItem.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{jItem.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="newsFileRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -219,12 +219,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -233,6 +234,9 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -303,7 +307,7 @@
|
||||
});
|
||||
}
|
||||
function initNewsFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -401,7 +405,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -445,7 +449,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -477,7 +481,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -582,6 +616,7 @@
|
||||
initNewsFileUploadFile();
|
||||
initContentCoverIdUploadFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -164,7 +164,7 @@
|
||||
{{# var files = iItem.fileValues; }}
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-audio-box" style="width: auto; height: auto; padding-left: 35px; padding-top: 35px;">
|
||||
<audio src="route/file/downloadfile/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<audio src="route/file/download/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-audio" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="newsFileRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
@ -217,12 +217,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -231,6 +232,9 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -301,7 +305,7 @@
|
||||
});
|
||||
}
|
||||
function initNewsFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -399,7 +403,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -443,7 +447,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -475,7 +479,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -580,6 +614,7 @@
|
||||
initNewsFileUploadFile();
|
||||
initContentCoverIdUploadFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -219,12 +219,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -233,6 +234,9 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -303,7 +307,7 @@
|
||||
});
|
||||
}
|
||||
function initNewsFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -401,7 +405,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -445,7 +449,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -477,7 +481,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -582,6 +616,7 @@
|
||||
initNewsFileUploadFile();
|
||||
initContentCoverIdUploadFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -36,7 +36,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -169,12 +169,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor-fullscreen-plugin.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -183,6 +184,9 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -210,7 +214,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -269,7 +273,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -301,7 +305,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -414,6 +448,7 @@
|
||||
initContentCoverIdUploadFile();
|
||||
initNewsContentContentRichText(data.newsContentContent);
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -36,7 +36,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -169,12 +169,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor-fullscreen-plugin.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -183,6 +184,9 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -210,7 +214,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -269,7 +273,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -301,7 +305,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -377,6 +411,7 @@
|
||||
form.render(null, 'dataForm');
|
||||
initContentCoverIdUploadFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -219,12 +219,13 @@
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -234,6 +235,9 @@
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -392,7 +396,7 @@
|
||||
}
|
||||
ids += jItem;
|
||||
}
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, {iItem: iItem}, function (code, data, args) {
|
||||
initVideo(args.iItem.fileId, data);
|
||||
@ -418,7 +422,7 @@
|
||||
return fileValues;
|
||||
}
|
||||
function initNewsFileByRemove(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -510,7 +514,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -555,7 +559,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -588,7 +592,36 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
*/
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
var files = $('#contentCoverId').val();
|
||||
@ -688,6 +721,7 @@
|
||||
initContentCoverIdUploadFile();
|
||||
initNewsFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -77,12 +77,13 @@
|
||||
</script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/'
|
||||
}).extend({
|
||||
index: 'lib/index'
|
||||
}).use(['index', 'table', 'laydate','laytpl','form','common'], function() {
|
||||
}).use(['index', 'table', 'laydate','laytpl','form','common','ztree'], function() {
|
||||
var $ = layui.$;
|
||||
var $win = $(window);
|
||||
var table = layui.table;
|
||||
@ -95,6 +96,8 @@
|
||||
var viewerObj = {};
|
||||
var tableUrl = 'api/newscontent/listpagenewscontent';
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function initNewsContentType() {
|
||||
var data = ['文章新闻','图文新闻','音频新闻','视频新闻','PDF阅读','网络新闻'];
|
||||
laytpl(document.getElementById('newsContentTypeTemplate').innerHTML).render(data, function(html){
|
||||
@ -148,7 +151,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -177,7 +180,39 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 初始化表格
|
||||
function initTable() {
|
||||
@ -418,6 +453,7 @@
|
||||
}
|
||||
initTable();
|
||||
initDate();
|
||||
initSelectNewsDir();
|
||||
// 事件 - 页面变化
|
||||
$win.on('resize', function() {
|
||||
clearTimeout(resizeTimeout);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -66,7 +66,7 @@
|
||||
<label class="layui-form-label">新闻版块<span style="color: red">*</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="hidden" id="newsDirectoriesId" name="newsDirectoriesId" lay-verify="require">
|
||||
<input type="text" id="newsDirectoriesName" name="newsDirectoriesName" lay-verify="require" placeholder="请选择新闻版块" class="layui-input" style="cursor:pointer;">
|
||||
<input readonly type="text" id="newsDirectoriesName" name="newsDirectoriesName" lay-verify="require" placeholder="请选择新闻版块" class="layui-input" style="cursor:pointer;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-lg6">
|
||||
@ -164,7 +164,7 @@
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-image-box" style="width: auto; height: auto; padding-left: 25px; padding-top: 25px;">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{jItem.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{jItem.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="newsFileRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -220,19 +220,22 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
var laydate = layui.laydate;
|
||||
var ztree = layui.ztree;
|
||||
var wangEditor = window.wangEditor;
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
var newsContentType = top.restAjax.params(window.location.href).newsContentType;
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
@ -309,7 +312,7 @@
|
||||
});
|
||||
}
|
||||
function initNewsFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -408,7 +411,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -445,39 +448,74 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
width: '400px',
|
||||
height: '400px',
|
||||
defaultParams: {id: 0},
|
||||
selectedNodes: [
|
||||
{
|
||||
id: $('#newsDirectoriesId').val(),
|
||||
name: $('#newsDirectoriesName').val(),
|
||||
title: $('#newsDirectoriesName').val()
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
],
|
||||
onClose: function() {
|
||||
var selectNodes = top.dialog.dialogTreeData.selectedNodes;
|
||||
if(typeof(selectNodes) != 'undefined' && selectNodes != null) {
|
||||
if(selectNodes.length > 0) {
|
||||
form.val('dataForm', {
|
||||
newsDirectoriesId: selectNodes[0].id,
|
||||
newsDirectoriesName: selectNodes[0].name
|
||||
});
|
||||
} else {
|
||||
form.val('dataForm', {
|
||||
newsDirectoriesId: '',
|
||||
newsDirectoriesName: ''
|
||||
});
|
||||
}
|
||||
form.render(null, 'dataForm');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
|
||||
|
||||
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
width: '400px',
|
||||
height: '400px',
|
||||
defaultParams: {id: 0},
|
||||
selectedNodes: [
|
||||
{
|
||||
id: $('#newsDirectoriesId').val(),
|
||||
name: $('#newsDirectoriesName').val(),
|
||||
title: $('#newsDirectoriesName').val()
|
||||
}
|
||||
],
|
||||
onClose: function() {
|
||||
var selectNodes = top.dialog.dialogTreeData.selectedNodes;
|
||||
if(typeof(selectNodes) != 'undefined' && selectNodes != null) {
|
||||
if(selectNodes.length > 0) {
|
||||
form.val('dataForm', {
|
||||
newsDirectoriesId: selectNodes[0].id,
|
||||
newsDirectoriesName: selectNodes[0].name
|
||||
});
|
||||
} else {
|
||||
form.val('dataForm', {
|
||||
newsDirectoriesId: '',
|
||||
newsDirectoriesName: ''
|
||||
});
|
||||
}
|
||||
form.render(null, 'dataForm');
|
||||
}
|
||||
}
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -549,6 +587,7 @@
|
||||
initLibraryDataDateDate();
|
||||
// initNewsContentLabelSelect();
|
||||
initNewsFileUploadFile();
|
||||
initSelectNewsDir();
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -66,7 +66,7 @@
|
||||
<label class="layui-form-label">新闻版块<span style="color: red">*</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="hidden" id="newsDirectoriesId" name="newsDirectoriesId" lay-verify="require">
|
||||
<input type="text" id="newsDirectoriesName" name="newsDirectoriesName" lay-verify="require" placeholder="请选择新闻版块" class="layui-input" style="cursor:pointer;">
|
||||
<input readonly type="text" id="newsDirectoriesName" name="newsDirectoriesName" lay-verify="require" placeholder="请选择新闻版块" class="layui-input" style="cursor:pointer;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-lg6">
|
||||
@ -163,7 +163,7 @@
|
||||
{{# var files = iItem.fileValues; }}
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-audio-box" style="width: auto; height: auto; padding-left: 35px; padding-top: 35px;">
|
||||
<audio src="route/file/downloadfile/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<audio src="route/file/download/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-audio" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="newsFileRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
@ -218,12 +218,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl','ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -232,6 +233,8 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentType = top.restAjax.params(window.location.href).newsContentType;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -307,7 +310,7 @@
|
||||
});
|
||||
}
|
||||
function initNewsFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -406,7 +409,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -443,6 +446,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
@ -476,6 +480,39 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -547,6 +584,7 @@
|
||||
initLibraryDataDateDate();
|
||||
// initNewsContentLabelSelect();
|
||||
initNewsFileUploadFile();
|
||||
initSelectNewsDir();
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
|
@ -145,7 +145,7 @@
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl','ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -154,6 +154,8 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -181,7 +183,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -220,12 +220,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -234,6 +235,8 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentType = top.restAjax.params(window.location.href).newsContentType;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -309,7 +312,7 @@
|
||||
});
|
||||
}
|
||||
function initNewsFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -408,7 +411,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -445,7 +448,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -477,7 +480,38 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -549,6 +583,7 @@
|
||||
initLibraryDataDateDate();
|
||||
// initNewsContentLabelSelect();
|
||||
initNewsFileUploadFile();
|
||||
initSelectNewsDir();
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
|
@ -170,6 +170,7 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor-fullscreen-plugin.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
|
||||
var newsTypesettingCode = "1";
|
||||
@ -182,7 +183,7 @@
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl' , 'jquery'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl' , 'jquery', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -193,6 +194,8 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentType = top.restAjax.params(window.location.href).newsContentType;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -220,7 +223,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -273,7 +276,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -305,9 +308,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -416,6 +447,7 @@
|
||||
initNewsContentContentRichText();
|
||||
initLibraryDataDateDate();
|
||||
// initNewsContentLabelSelect();
|
||||
initSelectNewsDir();
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
|
@ -37,7 +37,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -170,6 +170,7 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor-fullscreen-plugin.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
|
||||
var newsTypesettingCode = "1";
|
||||
@ -182,7 +183,7 @@
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl' , 'jquery'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl' , 'jquery' , 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -193,6 +194,8 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentType = top.restAjax.params(window.location.href).newsContentType;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -220,7 +223,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -273,7 +276,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -305,7 +308,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -378,6 +411,7 @@
|
||||
initContentCoverIdUploadFile();
|
||||
initLibraryDataDateDate();
|
||||
// initNewsContentLabelSelect();
|
||||
initSelectNewsDir();
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -219,12 +219,13 @@
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -233,6 +234,7 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentType = top.restAjax.params(window.location.href).newsContentType;
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -394,7 +396,7 @@
|
||||
}
|
||||
ids += jItem;
|
||||
}
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, {iItem: iItem}, function (code, data, args) {
|
||||
initVideo(args.iItem.fileId, data);
|
||||
@ -420,7 +422,7 @@
|
||||
return fileValues;
|
||||
}
|
||||
function initNewsFileByRemove(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -510,7 +512,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -547,7 +549,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -579,7 +581,38 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -651,6 +684,7 @@
|
||||
initLibraryDataDateDate();
|
||||
//initNewsContentLabelSelect();
|
||||
initNewsFileUploadFile();
|
||||
initSelectNewsDir();
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -165,7 +165,7 @@
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{jItem.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{jItem.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="newsFileRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -219,12 +219,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -233,6 +234,7 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -303,7 +305,7 @@
|
||||
});
|
||||
}
|
||||
function initNewsFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -401,7 +403,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -445,6 +447,37 @@
|
||||
});
|
||||
});
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
/*
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
@ -477,7 +510,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -582,6 +615,7 @@
|
||||
initNewsFileUploadFile();
|
||||
initContentCoverIdUploadFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -164,7 +164,7 @@
|
||||
{{# var files = iItem.fileValues; }}
|
||||
{{# for(var j = 0, jItem; jItem = files[j++];) { }}
|
||||
<div class="upload-audio-box" style="width: auto; height: auto; padding-left: 35px; padding-top: 35px;">
|
||||
<audio src="route/file/downloadfile/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<audio src="route/file/download/false/{{jItem.fileId}}" controls="controls">您的浏览器不支持 audio 标签。</audio>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-audio" href="javascript:void(0);" lay-form-button data-id="{{jItem.fileId}}" data-name="{{fileId}}" lay-filter="newsFileRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
@ -217,12 +217,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -231,6 +232,7 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -301,7 +303,7 @@
|
||||
});
|
||||
}
|
||||
function initNewsFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -399,7 +401,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -443,7 +445,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -476,7 +478,36 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
*/
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
var files = $('#contentCoverId').val();
|
||||
@ -580,6 +611,7 @@
|
||||
initNewsFileUploadFile();
|
||||
initContentCoverIdUploadFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -219,12 +219,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -233,6 +234,7 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -303,7 +305,7 @@
|
||||
});
|
||||
}
|
||||
function initNewsFile(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -401,7 +403,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -445,7 +447,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -477,7 +479,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -582,6 +614,7 @@
|
||||
initNewsFileUploadFile();
|
||||
initContentCoverIdUploadFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -36,7 +36,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -169,12 +169,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor-fullscreen-plugin.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -183,6 +184,7 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -210,7 +212,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -268,7 +270,7 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
@ -301,7 +303,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -414,6 +446,7 @@
|
||||
initContentCoverIdUploadFile();
|
||||
initNewsContentContentRichText(data.newsContentContent);
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir()
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -36,7 +36,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -169,12 +169,13 @@
|
||||
<script src="assets/js/vendor/wangEditor/wangEditor-fullscreen-plugin.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -183,6 +184,7 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -210,7 +212,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -269,7 +271,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -301,7 +303,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -377,6 +409,7 @@
|
||||
form.render(null, 'dataForm');
|
||||
initContentCoverIdUploadFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir()
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -219,12 +219,13 @@
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -234,6 +235,8 @@
|
||||
var viewerObj = {};
|
||||
var newsContentId = top.restAjax.params(window.location.href).newsContentId;
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -392,7 +395,7 @@
|
||||
}
|
||||
ids += jItem;
|
||||
}
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, {iItem: iItem}, function (code, data, args) {
|
||||
initVideo(args.iItem.fileId, data);
|
||||
@ -418,7 +421,7 @@
|
||||
return fileValues;
|
||||
}
|
||||
function initNewsFileByRemove(name, fileValues) {
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: fileValues
|
||||
}, null, function(code, data) {
|
||||
// 找到FileId对应的对象
|
||||
@ -510,7 +513,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -555,7 +558,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '#newsDirectoriesName', function() {
|
||||
/* $(document).on('click', '#newsDirectoriesName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择新闻版块',
|
||||
apiUri: top.restAjax.path('api/newsdirectories/ztreeselect', []),
|
||||
@ -587,7 +590,37 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectNewsDir(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'newsDirectoriesName',
|
||||
url: 'api/newsdirectories/ztreeselect',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#newsDirectoriesId').val(), name: $('#newsDirectoriesName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#newsDirectoriesId').val('');
|
||||
$('#newsDirectoriesName').val('');
|
||||
return;
|
||||
}
|
||||
$('#newsDirectoriesId').val(selectedNode.id);
|
||||
$('#newsDirectoriesName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化封面图片集图片上传
|
||||
function initContentCoverIdUploadFile() {
|
||||
@ -688,6 +721,7 @@
|
||||
initContentCoverIdUploadFile();
|
||||
initNewsFile();
|
||||
initLibraryDataDateDate();
|
||||
initSelectNewsDir();
|
||||
// initNewsContentLabelSelect(data['newsContentLabel']);
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
|
@ -85,7 +85,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -87,7 +87,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -133,7 +133,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -135,7 +135,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -97,7 +97,7 @@
|
||||
if(downloadFile.length > 0) {
|
||||
downloadFile += ' | ';
|
||||
}
|
||||
downloadFile += '<a href="route/file/downloadfile/false/'+ item +'" target="_blank">点击下载</a>'
|
||||
downloadFile += '<a href="route/file/download/false/'+ item +'" target="_blank">点击下载</a>'
|
||||
}
|
||||
return downloadFile;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -109,7 +109,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="contentCoverIdRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -111,7 +111,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -103,7 +103,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -105,7 +105,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -85,7 +85,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -87,7 +87,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -41,7 +41,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="directoriesPhotoRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -181,7 +181,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -41,7 +41,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="directoriesPhotoRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -182,7 +182,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -104,7 +104,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -106,7 +106,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -97,7 +97,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -99,7 +99,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -74,7 +74,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<span class="layui-btn-group">
|
||||
<div class="upload-file-box">
|
||||
<a class="upload-file-a" href="route/file/downloadfile/false/{{item.fileId}}" title="{{item.fileName}} - 点击下载">
|
||||
<a class="upload-file-a" href="route/file/download/false/{{item.fileId}}" title="{{item.fileName}} - 点击下载">
|
||||
{{# if(item.fileType == 'doc' || item.fileType == 'docx') { }}
|
||||
<img src="assets/images/filetype/word.png"/>
|
||||
{{# } else if(item.fileType == 'xls' || item.fileType == 'xlsx') { }}
|
||||
@ -172,7 +172,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -74,7 +74,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<span class="layui-btn-group">
|
||||
<div class="upload-file-box">
|
||||
<a class="upload-file-a" href="route/file/downloadfile/false/{{item.fileId}}" title="{{item.fileName}} - 点击下载">
|
||||
<a class="upload-file-a" href="route/file/download/false/{{item.fileId}}" title="{{item.fileName}} - 点击下载">
|
||||
{{# if(item.fileType == 'doc' || item.fileType == 'docx') { }}
|
||||
<img src="assets/images/filetype/word.png"/>
|
||||
{{# } else if(item.fileType == 'xls' || item.fileType == 'xlsx') { }}
|
||||
@ -174,7 +174,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -115,7 +115,7 @@ d<!doctype html>
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -117,7 +117,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -95,7 +95,7 @@
|
||||
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
||||
return '-';
|
||||
}
|
||||
var img = '<img id="' + rowData + '" src="route/file/downloadfile/false/' + rowData + '" align="加载失败" lay-event="newsTypesettingImageEvent">';
|
||||
var img = '<img id="' + rowData + '" src="route/file/download/false/' + rowData + '" align="加载失败" lay-event="newsTypesettingImageEvent">';
|
||||
if(initImageTimeout) {
|
||||
clearTimeout(initImageTimeout);
|
||||
}
|
||||
|
@ -76,7 +76,7 @@
|
||||
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
||||
return '-';
|
||||
}
|
||||
var img = '<img id="' + rowData + '" src="route/file/downloadfile/false/' + rowData + '" align="加载失败" lay-event="newsTypesettingImageEvent">';
|
||||
var img = '<img id="' + rowData + '" src="route/file/download/false/' + rowData + '" align="加载失败" lay-event="newsTypesettingImageEvent">';
|
||||
if(initImageTimeout) {
|
||||
clearTimeout(initImageTimeout);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="typesettingImageRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -144,7 +144,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -46,7 +46,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="typesettingImageRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -146,7 +146,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -45,7 +45,7 @@
|
||||
{{# var dataItemFileId = iItem.dataItemFileId; }}
|
||||
<div class="upload-image-box" style="width: auto; height: auto; padding-left: 25px; padding-top: 25px;">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{dataItemFileId}}" align="加载失败" title="素材图片">
|
||||
<img src="route/file/download/false/{{dataItemFileId}}" align="加载失败" title="素材图片">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{dataItemFileId}}" data-name="{{showDataItemId}}" lay-filter="removePhotoFileEvent">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
|
@ -44,7 +44,7 @@
|
||||
{{# if(iItem.dataItemFileId) { }}
|
||||
{{# var dataItemFileId = iItem.dataItemFileId; }}
|
||||
<div class="upload-audio-box" style="width: auto; height: auto; padding-left: 35px; padding-top: 55px;">
|
||||
<audio src="route/file/downloadfile/false/{{dataItemFileId}}" controls="controls" title="素材音乐">您的浏览器不支持 audio 标签。</audio>
|
||||
<audio src="route/file/download/false/{{dataItemFileId}}" controls="controls" title="素材音乐">您的浏览器不支持 audio 标签。</audio>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-audio" href="javascript:void(0);" lay-form-button data-id="{{dataItemFileId}}" data-name="{{showDataItemId}}" lay-filter="removeMusicFileEvent">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
@ -64,7 +64,7 @@
|
||||
{{# var dataItemPhotoId = iItem.dataItemPhotoId; }}
|
||||
<div class="upload-image-box" style="width: auto; height: auto; padding-left: 25px; padding-top: 25px;">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{dataItemPhotoId}}" align="加载失败" title="素材封面">
|
||||
<img src="route/file/download/false/{{dataItemPhotoId}}" align="加载失败" title="素材封面">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{dataItemPhotoId}}" data-name="{{showDataItemId}}" lay-filter="removePhotoFileEvent">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
|
@ -64,7 +64,7 @@
|
||||
{{# var dataItemPhotoId = iItem.dataItemPhotoId; }}
|
||||
<div class="upload-image-box" style="width: auto; height: auto; padding-left: 25px; padding-top: 65px;">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{dataItemPhotoId}}" align="加载失败" title="素材封面">
|
||||
<img src="route/file/download/false/{{dataItemPhotoId}}" align="加载失败" title="素材封面">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{dataItemPhotoId}}" data-name="{{showDataItemId}}" lay-filter="removePhotoFileEvent">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
|
@ -53,7 +53,7 @@
|
||||
{{# var dataItemFileId = iItem.dataItemFileId; }}
|
||||
<div class="upload-image-box" style="width: auto; height: auto; padding-left: 25px; padding-top: 25px;">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{dataItemFileId}}" align="加载失败" title="素材图片">
|
||||
<img src="route/file/download/false/{{dataItemFileId}}" align="加载失败" title="素材图片">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{dataItemFileId}}" data-name="{{showDataItemId}}" lay-filter="removePhotoFileEvent">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
|
@ -44,7 +44,7 @@
|
||||
{{# if(iItem.dataItemFileId) { }}
|
||||
{{# var dataItemFileId = iItem.dataItemFileId; }}
|
||||
<div class="upload-audio-box" style="width: auto; height: auto; padding-left: 35px; padding-top: 55px;">
|
||||
<audio src="route/file/downloadfile/false/{{dataItemFileId}}" controls="controls" title="素材音乐">您的浏览器不支持 audio 标签。</audio>
|
||||
<audio src="route/file/download/false/{{dataItemFileId}}" controls="controls" title="素材音乐">您的浏览器不支持 audio 标签。</audio>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-audio" href="javascript:void(0);" lay-form-button data-id="{{dataItemFileId}}" data-name="{{showDataItemId}}" lay-filter="removeMusicFileEvent">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
@ -64,7 +64,7 @@
|
||||
{{# var dataItemPhotoId = iItem.dataItemPhotoId; }}
|
||||
<div class="upload-image-box" style="width: auto; height: auto; padding-left: 25px; padding-top: 25px;">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{dataItemPhotoId}}" align="加载失败" title="素材封面">
|
||||
<img src="route/file/download/false/{{dataItemPhotoId}}" align="加载失败" title="素材封面">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{dataItemPhotoId}}" data-name="{{showDataItemId}}" lay-filter="removePhotoFileEvent">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
|
@ -64,7 +64,7 @@
|
||||
{{# var dataItemPhotoId = iItem.dataItemPhotoId; }}
|
||||
<div class="upload-image-box" style="width: auto; height: auto; padding-left: 25px; padding-top: 65px;">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{dataItemPhotoId}}" align="加载失败" title="封面图片">
|
||||
<img src="route/file/download/false/{{dataItemPhotoId}}" align="加载失败" title="封面图片">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{dataItemPhotoId}}" data-name="{{showDataItemId}}" lay-filter="removePhotoFileEvent">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
|
@ -103,7 +103,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -105,7 +105,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -94,7 +94,7 @@
|
||||
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
||||
return '-';
|
||||
}
|
||||
var img = '<img id="' + rowData + '" src="route/file/downloadfile/false/' + rowData + '" align="加载失败" lay-event="showDataTypesettingPhotoImageEvent">';
|
||||
var img = '<img id="' + rowData + '" src="route/file/download/false/' + rowData + '" align="加载失败" lay-event="showDataTypesettingPhotoImageEvent">';
|
||||
if(initImageTimeout) {
|
||||
clearTimeout(initImageTimeout);
|
||||
}
|
||||
|
@ -91,7 +91,7 @@
|
||||
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
||||
return '-';
|
||||
}
|
||||
var img = '<img id="' + rowData + '" src="route/file/downloadfile/false/' + rowData + '" align="加载失败" lay-event="showDataTypesettingPhotoImageEvent">';
|
||||
var img = '<img id="' + rowData + '" src="route/file/download/false/' + rowData + '" align="加载失败" lay-event="showDataTypesettingPhotoImageEvent">';
|
||||
if(initImageTimeout) {
|
||||
clearTimeout(initImageTimeout);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="dataTypesettingPhotoRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -202,7 +202,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -35,7 +35,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="dataTypesettingPhotoRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -212,7 +212,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="devicePhotoRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -198,12 +198,13 @@
|
||||
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -212,6 +213,8 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -258,7 +261,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -295,7 +298,47 @@
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('click', '#venueName', function() {
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectVenue(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'venueName',
|
||||
url: 'api/showvenue/listztree',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#venueId').val(), name: $('#venueName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#venueId').val('');
|
||||
$('#venueName').val('');
|
||||
return;
|
||||
}
|
||||
if(selectedNode.title == 1) {
|
||||
layer.msg("请选择具体楼层")
|
||||
$('#venueId').val('');
|
||||
$('#venueName').val('');
|
||||
return;
|
||||
}
|
||||
|
||||
$('#venueId').val(selectedNode.id);
|
||||
$('#venueName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* $(document).on('click', '#venueName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择场馆位置',
|
||||
apiUri: top.restAjax.path('api/showvenue/listztree', []),
|
||||
@ -331,7 +374,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
// 初始化平面图图片上传
|
||||
@ -393,6 +436,7 @@
|
||||
initDeviceInstallTimeDate();
|
||||
initDevicePhotoUploadFile();
|
||||
initDate();
|
||||
initSelectVenue();
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{# for(var i = 0, item = files[i]; item = files[i++];) { }}
|
||||
<div class="upload-image-box">
|
||||
<span class="upload-image-span">
|
||||
<img src="route/file/downloadfile/false/{{item.fileId}}" align="加载失败">
|
||||
<img src="route/file/download/false/{{item.fileId}}" align="加载失败">
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger text-danger remove-image" href="javascript:void(0);" lay-form-button data-id="{{item.fileId}}" data-name="{{fileName}}" lay-filter="devicePhotoRemoveFile">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
@ -198,12 +198,13 @@
|
||||
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
|
||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script src="assets/js/common/layui-input-tree.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
||||
}).use(['index', 'form', 'laydate', 'laytpl', 'ztree'], function(){
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var laytpl = layui.laytpl;
|
||||
@ -214,6 +215,8 @@
|
||||
var wangEditorObj = {};
|
||||
var viewerObj = {};
|
||||
|
||||
var layuiInputTree = new LayuiInputTree(layui);
|
||||
|
||||
function closeBox() {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
}
|
||||
@ -262,7 +265,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
@ -298,7 +301,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('click', '#venueName', function() {
|
||||
/* $(document).on('click', '#venueName', function() {
|
||||
top.dialog.tree({
|
||||
title: '选择场馆位置',
|
||||
apiUri: top.restAjax.path('api/showvenue/listztree', []),
|
||||
@ -330,7 +333,45 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
// 初始化新闻版块
|
||||
function initSelectVenue(){
|
||||
layuiInputTree.initSelect({
|
||||
id: 'venueName',
|
||||
url: 'api/showvenue/listztree',
|
||||
key: {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
title: 'title',
|
||||
pId: 'pId',
|
||||
checked: 'checked',
|
||||
children: 'subs',
|
||||
isParent: 'isParent',
|
||||
isHidden: 'isHidden',
|
||||
url: 'url',
|
||||
},
|
||||
selectedData: {id: $('#venueId').val(), name: $('#venueName').val()},
|
||||
onConfirm: function(zTree, selectedNode) {
|
||||
if(!selectedNode) {
|
||||
$('#venueId').val('');
|
||||
$('#venueName').val('');
|
||||
return;
|
||||
}
|
||||
if(selectedNode.title == 1) {
|
||||
layer.msg("请选择具体楼层")
|
||||
$('#venueId').val('');
|
||||
$('#venueName').val('');
|
||||
return;
|
||||
}
|
||||
|
||||
$('#venueId').val(selectedNode.id);
|
||||
$('#venueName').val(selectedNode.name);
|
||||
},
|
||||
onClear: function(zTree) {}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化平面图图片上传
|
||||
function initDevicePhotoUploadFile() {
|
||||
@ -400,6 +441,7 @@
|
||||
form.render(null, 'dataForm');
|
||||
initDeviceInstallTimeDate();
|
||||
initDevicePhotoUploadFile();
|
||||
initSelectVenue();
|
||||
}, function(code, data) {
|
||||
top.dialog.msg(data.msg);
|
||||
}, function() {
|
||||
|
@ -91,7 +91,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -93,7 +93,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -112,7 +112,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -114,7 +114,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -106,7 +106,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -90,7 +90,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
@ -115,7 +115,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), {
|
||||
top.restAjax.get(top.restAjax.path('api/file/list', []), {
|
||||
ids: ids
|
||||
}, null, function(code, data) {
|
||||
refreshDownloadTemplet(fileName, data);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user