更新最新代码

This commit is contained in:
2024-03-21 20:32:50 +08:00
parent 1ec018ca90
commit 7d756bcfa4
52 changed files with 38968 additions and 51 deletions
+2
View File
@@ -15,10 +15,12 @@ urlpatterns = [
path('2_d', to_detail), # 跳转详情界面
path('s_2_d', share_to_detail), # 从分享链接跳转详细界面
path('2_share', to_share), # 到分享界面
path('2_baiban',to_baiban), # 到协作白板
path('2_echart',to_echarts), # 到图标界面
path('chat_room',to_chat_room), # 到聊天室界面
path('reng_wu',to_rengwu), # 到任务界面
path('ke_cheng',to_kecheng), # 到课程界面
path('2_write',to_write), # 到协同边界页面
path('2_star', to_star), # 到收藏界面
path('2_recycle', to_recycle), # 回收站
+1 -39
View File
@@ -2,42 +2,4 @@ CODE_SUCCESS = 0
CODE_FAILED = -1
DUPLICATE = 1
SNAPSHOT_JSON_DATA = """{
"id": "root",
"topic": "想法",
"children": [{"id": "guoan",
"topic": "guoan",
"direction": "left",
"expanded": true,
"children": [
{"id": "看法", "topic": "看法"},
{"id": "依据", "topic": "依据"},
{"id": "中立", "topic": "中立"},
{"id": "反对", "topic": "反对"}
]
},
{
"id": "组员1",
"topic": "组员1",
"direction": "right",
"expanded": true,
"children": [
{"id": "看法1", "topic": "看法"},
{"id": "依据1", "topic": "依据"},
{"id": "中立1", "topic": "中立"},
{"id": "反对1", "topic": "反对"}
]
},
{
"id": "组员2",
"topic": "组员2",
"direction": "lift",
"expanded": true,
"children": [
{"id": "看法2", "topic": "看法"},
{"id": "依据2", "topic": "依据"},
{"id": "中立2", "topic": "中立"},
{"id": "反对2", "topic": "反对"}
]
}
]}"""
SNAPSHOT_JSON_DATA = """{"id":"root","topic":"空白模板","expanded":true}"""
+15 -1
View File
@@ -7,6 +7,12 @@ def to_dashboard(request):
param = {"page": "b9b101e"}
return render(request, "html/dashboard.html", param)
def to_baiban(request):
"""
协作白板
"""
param = {"page": "share"}
return render(request, "html/baiban.html", param)
def to_share(request):
"""
@@ -25,7 +31,8 @@ def to_chat_room(request):
"""
聊天室页面
"""
param = {"page": "chat_room"}
param = {"page": "chat_room",
"username":request.user.username}
return render(request, "html/wechat_2.html", param)
def to_rengwu(request):
"""
@@ -42,6 +49,13 @@ def to_kecheng(request):
param = {"page": "chat_room"}
return render(request, "html/kecheng.html", param)
def to_write(request):
"""
协同编辑页面
"""
param = {"page": "write"}
return render(request, "html/write_2.html", param)
def to_star(request):
"""
收藏页面
+1
View File
@@ -78,6 +78,7 @@ class JsMindView(LoginRequiredJSONMixin, ListAPIView):
coop_mind_name = request.data.get('mind_name')
coop_mind_id = request.data.get('coop_mind_id')
op_type = request.data.get('op_type')
if op_type == "delete_cancel":
CooperationMind.objects.filter(id=coop_mind_id, creator_user_id=user.id).update(deleted=False)
return build_response()