update
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ from django.urls import path
|
|||||||
from server.views import *
|
from server.views import *
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('list', list),
|
path('', list),
|
||||||
path('detail', detail),
|
path('detail', detail),
|
||||||
path('jsmind_op', JsMindCallbackView.as_view()),
|
path('jsmind_op', JsMindCallbackView.as_view()),
|
||||||
]
|
]
|
||||||
|
|||||||
+2
-2
@@ -10,14 +10,14 @@ def list(request):
|
|||||||
"""
|
"""
|
||||||
列表界面
|
列表界面
|
||||||
"""
|
"""
|
||||||
return render(request, "list.html")
|
return render(request, "html/list.html")
|
||||||
|
|
||||||
|
|
||||||
def detail(request):
|
def detail(request):
|
||||||
"""
|
"""
|
||||||
详情页面
|
详情页面
|
||||||
"""
|
"""
|
||||||
return render(request, "detail.html")
|
return render(request, "html/detail.html")
|
||||||
|
|
||||||
|
|
||||||
class JsMindLogView(GenericAPIView):
|
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 |
@@ -3,14 +3,25 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<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">
|
<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">
|
<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/layui-v2.6.8/layui/layui.js"></script>
|
||||||
|
<script src="/static/js/jquery-1.11.3.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
let layer //弹层
|
||||||
|
, laypage //分页
|
||||||
|
, laydate //日期
|
||||||
|
, table //表格
|
||||||
|
, carousel //轮播
|
||||||
|
, upload //上传
|
||||||
|
, element //元素操作
|
||||||
|
, slider //滑块
|
||||||
|
, dropdown //下拉菜单
|
||||||
//加载模块
|
//加载模块
|
||||||
layui.use(function () { //亦可加载特定模块:layui.use(['layer', 'laydate', function(){
|
layui.use(function () { //亦可加载特定模块:layui.use(['layer', 'laydate', function(){
|
||||||
//得到各种内置组件
|
//得到各种内置组件
|
||||||
const layer = layui.layer //弹层
|
layer = layui.layer //弹层
|
||||||
, laypage = layui.laypage //分页
|
, laypage = layui.laypage //分页
|
||||||
, laydate = layui.laydate //日期
|
, laydate = layui.laydate //日期
|
||||||
, table = layui.table //表格
|
, table = layui.table //表格
|
||||||
@@ -20,9 +31,16 @@
|
|||||||
, slider = layui.slider //滑块
|
, slider = layui.slider //滑块
|
||||||
, dropdown = layui.dropdown //下拉菜单
|
, dropdown = layui.dropdown //下拉菜单
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
layer.msg('ppp')
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div style="margin-top: 5px;">
|
||||||
|
<button type="button" class="layui-btn">创建导图</button>
|
||||||
|
</div>
|
||||||
<table class="layui-table">
|
<table class="layui-table">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col width="150">
|
<col width="150">
|
||||||
Reference in New Issue
Block a user