This commit is contained in:
aqu415
2022-02-12 21:37:49 +08:00
parent d11f9e0591
commit b70416b5d8
6 changed files with 23 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ from django.urls import path
from server.views import *
urlpatterns = [
path('list', list),
path('', list),
path('detail', detail),
path('jsmind_op', JsMindCallbackView.as_view()),
]
+2 -2
View File
@@ -10,14 +10,14 @@ def list(request):
"""
列表界面
"""
return render(request, "list.html")
return render(request, "html/list.html")
def detail(request):
"""
详情页面
"""
return render(request, "detail.html")
return render(request, "html/detail.html")
class JsMindLogView(GenericAPIView):
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+20 -2
View File
@@ -3,14 +3,25 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>导图列表</title>
<title>思维导图列表</title>
<link rel="shortcut icon" href="/static/favicon.ico"/>
<link rel="stylesheet" href="/static/layui-v2.6.8/layui/css/layui.css" media="all">
<script src="/static/layui-v2.6.8/layui/layui.js"></script>
<script src="/static/js/jquery-1.11.3.min.js"></script>
<script>
let layer //弹层
, laypage //分页
, laydate //日期
, table //表格
, carousel //轮播
, upload //上传
, element //元素操作
, slider //滑块
, dropdown //下拉菜单
//加载模块
layui.use(function () { //亦可加载特定模块:layui.use(['layer', 'laydate', function(){
//得到各种内置组件
const layer = layui.layer //弹层
layer = layui.layer //弹层
, laypage = layui.laypage //分页
, laydate = layui.laydate //日期
, table = layui.table //表格
@@ -20,9 +31,16 @@
, slider = layui.slider //滑块
, dropdown = layui.dropdown //下拉菜单
});
$(function () {
layer.msg('ppp')
})
</script>
</head>
<body>
<div style="margin-top: 5px;">
<button type="button" class="layui-btn">创建导图</button>
</div>
<table class="layui-table">
<colgroup>
<col width="150">