1、实现文章阅读、附件功能

2、实现与关联项目同步功能
3、实现附件删除功能
This commit is contained in:
lifei6671
2018-07-18 17:10:24 +08:00
parent 86637ef581
commit 2416af4528
15 changed files with 653 additions and 31 deletions

View File

@@ -14,7 +14,7 @@
window.fileUploadURL = "";
window.blogId = {{.Model.BlogId}};
window.blogVersion = {{.Model.Version}};
window.removeAttachURL = "{{urlfor "DocumentController.RemoveAttachment"}}";
window.removeAttachURL = "{{urlfor "BlogController.RemoveAttachment" ":id" .Model.BlogId}}";
</script>
<!-- Bootstrap -->
<link href="{{cdncss "/static/bootstrap/css/bootstrap.min.css"}}" rel="stylesheet">
@@ -223,7 +223,7 @@
<script src="{{cdnjs "/static/js/blog.js"}}" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
window.vueApp.lists = {{.AttachList}};
$("#attachInfo").on("click",function () {
$("#uploadAttachModal").modal("show");
});