forked from mirror/MrDoc
优化文档编辑器附件选择窗口跳转附件管理的链接
This commit is contained in:
parent
ea6f743648
commit
e1b5146a5b
@ -118,7 +118,7 @@
|
||||
<span>* 仅支持 {% if attachment_suffix and attachment_suffix != '' %}{{attachment_suffix}}{% else %}zip{% endif %} 格式文件,文件大小不超过 {% if attachment_size and attachment_size != '' %}{{attachment_size}}{% else %}50{% endif %}MB</span>
|
||||
<div style="margin: 10px 0 0 10px;">
|
||||
<button class="layui-btn layui-btn-primary layui-btn-sm" id="upload_attachment"><i class="layui-icon layui-icon-upload"></i> 上传附件</button>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-sm" href="{% url 'manage_attachment' %}" target="_blank"><i class="fa fa-cubes"></i> 管理附件</a>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-sm" href="{% url 'user_center' %}?tab=manage_attachment" target="_blank"><i class="fa fa-cubes"></i> 管理附件</a>
|
||||
</div>
|
||||
<table class="layui-table" id="attach_table" style="margin: 10px;width:90%;">
|
||||
<thead>
|
||||
|
@ -190,6 +190,9 @@
|
||||
case 'manage_doctemp':
|
||||
layui.tab.addTabOnlyByElem("content",{id:"doc_template",title:"文档模板管理",url:"{% url 'manage_doctemp' %}",close:"true"})
|
||||
break;
|
||||
case 'manage_attachment':
|
||||
layui.tab.addTabOnlyByElem("content",{id:"my_attachment",title:"我的附件",url:"{% url 'manage_attachment' %}",close:"true"})
|
||||
break;
|
||||
}
|
||||
}
|
||||
setTimeout(tabRedict,100)
|
||||
|
Loading…
Reference in New Issue
Block a user