优化pdf生成逻辑

This commit is contained in:
Minho
2017-05-13 12:12:37 +08:00
parent 0f0b110a49
commit 837d0da991
15 changed files with 1028 additions and 212 deletions

View File

@@ -332,7 +332,7 @@ h6 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #7e888b
color: #444
}
.manual-article .article-content{
min-width: 980px;
@@ -350,6 +350,11 @@ h6 {
min-height: 90px;
padding: 5px;
}
.manual-article .article-content .article-body .attach-list{
list-style: none;
border-top: 1px solid #DDDDDD;
padding-top: 15px;
}
.m-manual .manual-progress {
position: fixed;
top: 54px;

View File

@@ -33,11 +33,12 @@ body{
width: 280px;
position: fixed;
border-top: 1px solid #DDDDDD;
bottom: 15px;
bottom: 0px;
top: 40px;
background-color: #FAFAFA;
left: 0;
right: 0;
padding-bottom: 15px;
overflow-y:auto;
}
.manual-category .manual-nav {

View File

@@ -145,17 +145,12 @@ function pushDocumentCategory($node) {
* @param $lists
*/
function pushVueLists($lists) {
for(var i in window.vueApp.lists){
var item = window.vueApp.lists[i];
window.vueApp.lists.$remove(item);
}
window.vueApp.lists = [];
for(var j in $lists){
var item = $lists[j];
window.vueApp.lists.push(item);
}
console.log(window.vueApp.lists)
$("#attachInfo").text(" " + window.vueApp.lists.length + " 个附件")
}
//实现小提示

View File

@@ -52,8 +52,6 @@ $(function () {
resetEditorChanged(true);
}
});
editormd.loadPlugin("/static/editor.md/plugins/file-dialog/file-dialog");
/**
* 实现标题栏操作
@@ -61,7 +59,7 @@ $(function () {
$("#editormd-tools").on("click","a[class!='disabled']",function () {
var name = $(this).find("i").attr("name");
if(name === "attachment"){
window.editor.fileDialog();
$("#uploadAttachModal").modal("show");
}else if(name === "history"){
}else if(name === "save"){
@@ -145,7 +143,7 @@ $(function () {
var node = { "id" : res.data.doc_id,'parent' : res.data.parent_id === 0 ? '#' : res.data.parent_id ,"text" : res.data.doc_name,"identify" : res.data.identify,"version" : res.data.version};
pushDocumentCategory(node);
window.selectNode = node;
pushVueLists(res.data.attach);
}else{
layer.msg("文档加载失败");
}