添加协同编辑模块
This commit is contained in:
@@ -106,7 +106,8 @@
|
||||
if (page_tag === 'b9b101e') {
|
||||
sub_btn = `<a class="dropdown-item" href="javascript:void(0);" onclick="window.open('2_d?id=${item.id}&s_p=b9b101e')">编辑</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.del_mind(${item.id},'card_${uuid}')">删除</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.share_mind(${item.id})">分享</a>`
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.share_mind(${item.id})">分享</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.open_bianji(${item.id})">协同编辑</a>`
|
||||
} else if (page_tag === 'share') {
|
||||
sub_btn = `<a class="dropdown-item" href="javascript:void(0);" onclick="mind.share_cancel(${item.id})">取消分享</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.fetch_share_info(${item.id})">查看分享链接</a>`
|
||||
@@ -215,6 +216,22 @@
|
||||
async: false
|
||||
});
|
||||
},
|
||||
/**分享脑图*/
|
||||
open_bianji: function (mind_id) {
|
||||
const me = this
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "bianji",
|
||||
headers: {"X-CSRFToken": $.cookie("csrftoken")},
|
||||
data: {'id': mind_id},
|
||||
dataType: "json",
|
||||
success: function (resp) {
|
||||
window.location.href = resp.data;
|
||||
console.log(resp)
|
||||
},
|
||||
async: false
|
||||
});
|
||||
},
|
||||
/**取消分享*/
|
||||
share_cancel: function (mind_id) {
|
||||
const me = this
|
||||
|
||||
Reference in New Issue
Block a user