mirror of
https://github.com/hequan2017/seal.git
synced 2026-04-25 19:20:47 +08:00
修复 3个小bug
This commit is contained in:
@@ -8,7 +8,11 @@
|
||||
|
||||
> 因本项目开始时间为3月1日,是 国际海豹日,故项目起名为 海豹 seal
|
||||
|
||||
> 主要为 django 基础开发平台, MVC 模式 开发.(非前后端分离) ,可以拿来直接开发 django项目。作者会在周末进行开发、更新。
|
||||
> 主要为 django 基础开发平台, MVC 模式 开发.支持 非前后端分离 和 前后端分离模式 。 可以拿来直接开发 django项目。
|
||||
|
||||
> vue 前端地址 https://github.com/hequan2017/seal-vue 持续开发中
|
||||
|
||||
> 作者会在周末进行开发、更新。
|
||||
|
||||
|
||||
## 介绍
|
||||
@@ -17,7 +21,7 @@
|
||||
* 会尽量多加一些注释
|
||||
* 采用cbv开发方式,提高开发效率
|
||||
* 增加 drf api 例子
|
||||
* vue版本前端 https://github.com/hequan2017/seal-vue 持续开发中(重点)
|
||||
* 前端 vue版本
|
||||
|
||||
|
||||
## DEMO
|
||||
|
||||
@@ -78,7 +78,6 @@ class EcsListView(LoginRequiredMixin, PermissionRequiredMixin, ListView):
|
||||
|
||||
context = {
|
||||
"ecs_list": ecs_list,
|
||||
'ecs_count': self.queryset.count() if self.queryset != '' else 0,
|
||||
"filter_dict": self.filter_dict # 把查询条件返回给前端
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700");
|
||||
@import url("https://fonts.googleapis.com/css?family=Roboto:400,300,500,700");
|
||||
@import url("https://fonts.lug.ustc.edu.cn/css?family=Open+Sans:300,400,600,700");
|
||||
@import url("https://fonts.lug.ustc.edu.cn/css?family=Roboto:400,300,500,700");
|
||||
/*
|
||||
*
|
||||
* INSPINIA - Responsive Admin Theme
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<link rel=stylesheet href="../../doc/docs.css">
|
||||
|
||||
<link rel="stylesheet" href="../../lib/codemirror.css">
|
||||
<link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet" type="text/css">
|
||||
<link href="http://fonts.lug.ustc.edu.cn/css?family=Inconsolata" rel="stylesheet" type="text/css">
|
||||
<script src="../../lib/codemirror.js"></script>
|
||||
<script src="vb.js"></script>
|
||||
<script type="text/javascript" src="../../addon/runmode/runmode.js"></script>
|
||||
@@ -44,7 +44,7 @@ function test(golden, text) {
|
||||
}
|
||||
i++;
|
||||
}
|
||||
CodeMirror.runMode(text, "text/x-vb",callback);
|
||||
CodeMirror.runMode(text, "text/x-vb",callback);
|
||||
|
||||
if (ok) return "Tests OK";
|
||||
}
|
||||
@@ -88,7 +88,7 @@ function init() {
|
||||
function runTest() {
|
||||
document.getElementById('testresult').innerHTML = testAll();
|
||||
initText(editor);
|
||||
|
||||
|
||||
}
|
||||
document.body.onload = init;
|
||||
</script>
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
{% for page in ecs_list.pages %}
|
||||
{% if page %}
|
||||
{% ifequal page ecs_list.number %}
|
||||
<li class="active"><a href="?{{ page.querystring }}">{{ page }}</a>
|
||||
<li class="active" ><a style="background-color: #E0E0E0" href="?{{ page.querystring }}">{{ page }}</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li><a href="?{{ page.querystring }}" class="page">{{ page }}</a>
|
||||
@@ -200,7 +200,7 @@
|
||||
style="color: #0a0a0a">总: {{ ecs_list.paginator.num_pages }} 页</span>
|
||||
</li>
|
||||
<li><span
|
||||
style="color: #0a0a0a"> 数量: {{ ecs_count }}</span>
|
||||
style="color: #0a0a0a"> 数量: {{ ecs_list.paginator.count }}</span>
|
||||
</li>
|
||||
</nav>
|
||||
</div>
|
||||
@@ -277,4 +277,4 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -20,4 +20,12 @@
|
||||
<link href="{% static "css/plugins/toastr/toastr.min.css" %}" rel="stylesheet">
|
||||
<link href="{% static "css/plugins/steps/jquery.steps.css" %}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.select2-container .select2-selection--single {
|
||||
height: 32px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{% block page-content %}
|
||||
<div class="wrapper wrapper-content">
|
||||
|
||||
|
||||
欢迎使用本项目!
|
||||
|
||||
</div>
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
|
||||
{% block footer-js %}
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user