update
This commit is contained in:
+4
-4
@@ -12,16 +12,17 @@ urlpatterns = [
|
||||
|
||||
# ---------------------------------------------------
|
||||
path('', to_dashboard), # 跳转列表界面
|
||||
path('detail', to_detail), # 跳转详情界面
|
||||
path('2_d', to_detail), # 跳转详情界面
|
||||
path('s_2_d', share_to_detail), # 从分享链接跳转详细界面
|
||||
path(r'jsmind_op', JsMindLogView.as_view()), # 更新快照,get日志操作
|
||||
|
||||
# ---------------------------------------------------
|
||||
path('create', JsMindView.as_view()), # 创建思维导图
|
||||
path('list', JsMindView.as_view()), # 查询思维导图
|
||||
path('d', JsMindView.as_view()), # 获得导图详情
|
||||
path('s_d', JsMindShareView.as_view()), # 获得导图详情
|
||||
path('delete', JsMindView.as_view()), # 删除思维导图
|
||||
path('share', JsMindShareView.as_view()), # 分享思维导图
|
||||
path('s_t_d', share_to_detail), # 从分享链接进入详细界面
|
||||
path('4cbcb74630898f41fd0a', JsMindShareView.as_view()), # 获得导图详情
|
||||
|
||||
# ---------------------------------------------------
|
||||
path('register', MindUserView.as_view()), # 用户注册
|
||||
@@ -29,5 +30,4 @@ urlpatterns = [
|
||||
path('logout', LogoutView.as_view()), # 用户登出
|
||||
|
||||
# ---------------------------------------------------
|
||||
|
||||
]
|
||||
|
||||
@@ -94,14 +94,14 @@
|
||||
<div class="card-body">
|
||||
<div class="card-title" style="margin-bottom: 0px;font-weight:bold;text-overflow:ellipsis;white-space:nowrap;overflow: hidden;">${item.coop_mind_name}</div>
|
||||
<hr style="margin: 0">
|
||||
<img src="/static/pic/demo_icon.png" class="card-img-top" style="margin-top: 8px;cursor: pointer;" onclick="window.open('detail?id=${item.id}')">
|
||||
<img src="/static/pic/demo_icon.png" class="card-img-top" style="margin-top: 8px;cursor: pointer;" onclick="window.open('2_d?id=${item.id}')">
|
||||
<div style="text-align:right;font-size: 0.8rem;margin-top: 5px;font-family: inherit;">
|
||||
<div class="btn-group btn-group-sm" role="group">
|
||||
<button id="btnGroupDrop1" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
操作
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="window.open('detail?id=${item.id}')">编辑</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="window.open('2_d?id=${item.id}')">编辑</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>
|
||||
</div>
|
||||
@@ -178,7 +178,7 @@
|
||||
data: {'id': mind_id},
|
||||
dataType: "json",
|
||||
success: function (resp) {
|
||||
const url = `s_t_d?u=${resp.data.u}&h=${resp.data.h}`
|
||||
const url = `s_2_d?u=${resp.data.u}&h=${resp.data.h}`
|
||||
$('#share_mind_modal .modal-body').html(`分享成功,请复制以下链接进行分享:<div>${window.location.protocol}//${window.location.host}/${url}</div>`)
|
||||
$('#share_mind_modal_a').click()
|
||||
},
|
||||
@@ -341,7 +341,7 @@
|
||||
/**新页面打开*/
|
||||
setTimeout(function () {
|
||||
const id = resp.data
|
||||
window.open('detail?id=' + id)
|
||||
window.open('2_d?id=' + id)
|
||||
}, 500)
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<link rel="stylesheet" type="text/css" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css">
|
||||
<style>
|
||||
#jsmind_container {
|
||||
width: calc(100rem);
|
||||
height: calc(100%);
|
||||
width: 100%;
|
||||
height: 800px;
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/jquery-1.11.3.min.js"></script>
|
||||
@@ -51,7 +51,7 @@
|
||||
let h = `{{ h }}`;
|
||||
const me = this;
|
||||
const from_share = id.length === 0;
|
||||
const url = from_share ? `4cbcb74630898f41fd0a?u=${u}&h=${h}` : 'list?id=' + id;
|
||||
const url = from_share ? `s_d?u=${u}&h=${h}` : 'd?id=' + id;
|
||||
$.get(url, function (resp) {
|
||||
if (resp.code === -1) {
|
||||
common_alert(resp.msg)
|
||||
|
||||
Reference in New Issue
Block a user