diff --git a/README.md b/README.md index 46a596a..2a0b785 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/assets/views.py b/assets/views.py index 790e193..c32132d 100644 --- a/assets/views.py +++ b/assets/views.py @@ -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 # 把查询条件返回给前端 } diff --git a/static/css/style.css b/static/css/style.css index 4f815a5..d788e6c 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -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 diff --git a/static/js/plugins/codemirror/mode/vb/index.html b/static/js/plugins/codemirror/mode/vb/index.html index adcc44f..730f7b2 100644 --- a/static/js/plugins/codemirror/mode/vb/index.html +++ b/static/js/plugins/codemirror/mode/vb/index.html @@ -5,7 +5,7 @@ - + @@ -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; diff --git a/templates/assets/ecs-list.html b/templates/assets/ecs-list.html index 5a56ae0..f28b2e8 100644 --- a/templates/assets/ecs-list.html +++ b/templates/assets/ecs-list.html @@ -178,7 +178,7 @@ {% for page in ecs_list.pages %} {% if page %} {% ifequal page ecs_list.number %} -
  • {{ page }} +
  • {{ page }}
  • {% else %}
  • {{ page }} @@ -200,7 +200,7 @@ style="color: #0a0a0a">总:  {{ ecs_list.paginator.num_pages }} 页
  • 数量: {{ ecs_count }} + style="color: #0a0a0a"> 数量: {{ ecs_list.paginator.count }}
  • @@ -277,4 +277,4 @@ {% endblock %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/base/_css.html b/templates/base/_css.html index 2a1fab2..f32e462 100644 --- a/templates/base/_css.html +++ b/templates/base/_css.html @@ -20,4 +20,12 @@ + diff --git a/templates/system/index.html b/templates/system/index.html index 1b3a295..fcebc8d 100644 --- a/templates/system/index.html +++ b/templates/system/index.html @@ -11,7 +11,7 @@ {% block page-content %}
    - +欢迎使用本项目!
    @@ -21,4 +21,4 @@ {% block footer-js %} -{% endblock %} \ No newline at end of file +{% endblock %}