Commit 80aebf15 authored by liangjf's avatar liangjf

fix: ppt左边显示问题及部署文档

parent 600dc349
......@@ -5,8 +5,8 @@
var ratio = 0.75;
var pages;
var slideUrls = new Array();
var slideThumbUrls = new Array();
var slideUrls = [];
var slideThumbUrls = [];
var curSlide = 1;
var totalSize = 1; // PPT当前获取到的总页数
var slideCount = 1; // PPT文件总页数
......@@ -17,11 +17,11 @@ $(document).ready(function() {
$.get('onlinePreview?' , params, function(data, status) {
var data = JSON.parse(data);
var code = data.code;
if (1 == code) {
if (1 === code) {
uuid = data.uuid;
pages = data.data;
totalSize = pages.length;
slideCount = data.totalSize;
slideCount = totalSize;
// title
$('.container-fluid:first .btn:first').after('<a class="brand lnk-file-title" style="text-decoration: none;" href="' + contextPath + '/doc/download/' + uuid + (!!queryStr ? '?' + queryStr : '') + '" title="' + data.name + '">' + data.name + '</a>');
......
......@@ -17,7 +17,7 @@
"text": null,
"url": "${img}",
"destFile": null,
"viewCount": 0,
"viewCount": 1,
"downloadCount": 0,
"ctime": null,
"thumbUrl": "${img}",
......
# 部署fileview
1. 拉取/更新代码
http://139.159.244.151:2900/liangjf/slm-fileview
2. 本地打包
> mvn clean install
3. 创建/进入文件夹 /root/filePreview
4. 将./Dockerfile ./fonts ./server/target/kkFileView-*.tar.gz复制进/root/filePreview
5. 生成镜像 docker build -t slm/fileview .
6. 关闭旧容器并启动 docker run -it -d -p 8012:8012 slm/fileview
- 测试,开发环境映射8012端口到preview.sycdev.com
- 生产环境用preview.shengyc.com
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment