修改静态代码的问题

This commit is contained in:
wenc000 2020-04-23 14:45:13 +08:00
parent 73cabe873c
commit 9e37db05ca
5 changed files with 25 additions and 20 deletions

View File

@ -325,6 +325,7 @@
</div>
</div>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<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>
@ -521,7 +522,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files);
});
@ -572,7 +573,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, function(fileName) {
viewerObj[fileName].update();
@ -620,7 +621,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, initVideo);
});
@ -666,7 +667,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files);
});

View File

@ -327,6 +327,7 @@
</div>
</div>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<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>
@ -541,7 +542,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files);
});
@ -592,7 +593,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, function(fileName) {
viewerObj[fileName].update();
@ -640,7 +641,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, initVideo);
});
@ -686,7 +687,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files);
});

View File

@ -458,7 +458,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files);
});
@ -505,7 +505,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, function(fileName) {
viewerObj[fileName].update();
@ -549,7 +549,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, initVideo);
});
@ -591,7 +591,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files);
});

View File

@ -483,7 +483,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, function() {});
});
@ -530,7 +530,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, function(fileName) {
viewerObj[fileName].update();
@ -574,7 +574,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, initVideo);
});
@ -616,7 +616,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files);
});

View File

@ -306,6 +306,8 @@
<input type="hidden" id="joinKey" th:value="${joinKey}"/>
<input type="hidden" id="joinId" th:value="${joinId}"/>
<script src="assets/js/vendor/wangEditor/wangEditor.min.js"></script>
<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 th:inline="javascript">
layui.config({
@ -321,6 +323,7 @@
var wangEditor = window.wangEditor;
var wangEditorArray = [];
var formFieldList = [[${dynamicFormFormShowFieldDTOList}]];
var viewerObj = {};
function closeBox() {
parent.layer.close(parent.layer.getFrameIndex(window.name));
@ -479,7 +482,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, function() {});
});
@ -526,7 +529,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, function(fileName) {
viewerObj[fileName].update();
@ -570,7 +573,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files, initVideo);
});
@ -612,7 +615,7 @@
files = files.substring(1);
}
if(files.charAt(files.length - 1) == ',') {
files = files.substring(0, files.length - 2);
files = files.substring(0, files.length - 1);
}
initFileList(name, files);
});