mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-18 17:48:00 +08:00
实现文档历史
This commit is contained in:
@@ -199,3 +199,31 @@ function showSuccess($msg,$id) {
|
||||
$($id).addClass("success-message").removeClass("error-message").text($msg);
|
||||
return true;
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$("#documentHistoryModal").on("shown.bs.modal",function () {
|
||||
var historyVue = new Vue({
|
||||
el : "#documentHistoryModal",
|
||||
data : {
|
||||
lists : []
|
||||
},
|
||||
delimiters : ['${','}'],
|
||||
methods : {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
url : window.historyURL,
|
||||
data : { "identify" : window.book.identify,"doc_id" : window.selectNode.id },
|
||||
dataType :"json",
|
||||
success : function (res) {
|
||||
if(res.errcode === 0){
|
||||
historyVue.lists = res.data.lists;
|
||||
}else{
|
||||
alert(res.message);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
@@ -61,7 +61,7 @@ $(function () {
|
||||
if(name === "attachment"){
|
||||
$("#uploadAttachModal").modal("show");
|
||||
}else if(name === "history"){
|
||||
|
||||
$("#documentHistoryModal").modal("show");
|
||||
}else if(name === "save"){
|
||||
saveDocument(false);
|
||||
|
||||
|
Reference in New Issue
Block a user