benzhan 5 years ago
parent
commit
c27dfd7fca

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/_*

+ 6 - 6
SUMMARY.md

@@ -3,14 +3,14 @@
 * [简介](README.md)
 * [简介](README.md)
 
 
 ---
 ---
-*  [基础用法](chapter1.md)
-  *  [数据库配置](chapter1/database-setting.md)
-  *  [页面配置管理](chapter1/page-setting.md)
-  *  [查询条件配置](chapter1/query-condition-setting.md)
-  *  [字典配置](chapter1/dictionary-setting.md)
+*  基础用法
+  *  [数据库配置](base/database-setting.md)
+  *  [页面配置管理](base/page-setting.md)
+  *  [查询条件配置](base/query-condition-setting.md)
+  *  [字典配置](base/dictionary-setting.md)
 
 
 ---
 ---
-*  [其他补充](other.md)
+*  其他补充
   *  [分组统计](other/group-ads.md)
   *  [分组统计](other/group-ads.md)
   *  [图表功能](other/table.md)
   *  [图表功能](other/table.md)
   *  [注入和回调](other/inject-callback.md)
   *  [注入和回调](other/inject-callback.md)

BIN
base/._database-setting.md


BIN
base/._dictionary-setting.md


BIN
base/._page-setting.md


BIN
base/._query-condition-setting.md


+ 5 - 5
chapter1/database-setting.md → base/database-setting.md

@@ -10,9 +10,9 @@
 配置添加完成以后需要点击发布,发布到各个服务器上。
 配置添加完成以后需要点击发布,发布到各个服务器上。
 
 
 ## 数据表规范
 ## 数据表规范
-- 字段备注:字段要有COMMENT备注,枚举类的注释有一般的格式:  ```简介:key:value(,key:value)...``` 如(状态:1:启用,2:关闭)<font color="red">(注:简介后面的冒号为中文冒号)</font>,在后面的数据库字段配置中的字段枚举会自动被加载为{"1":"启用","2":"关闭"}
+- 字段备注:字段要有COMMENT备注,枚举类的注释有一般的格式:  ```简介:key:value(,key:value)...``` 如(状态:1:启用,2:关闭)<font color="red">(注:简介后面的冒号为中文冒号,其他为英文符号)</font>,在后面的数据库字段配置中的字段枚举会自动被加载为{"1":"启用","2":"关闭"}
 - 字段名规范(时间、日期、图片),以下面前缀或后缀的字段在后面的数据库字段配置会字段识别其字段类型
 - 字段名规范(时间、日期、图片),以下面前缀或后缀的字段在后面的数据库字段配置会字段识别其字段类型
->   图片  _icon _bg  图片
->   是否  is_   自动当做枚举 {"1":"有效","0":"无效"}
->   日期  day 日期
->   时间  times  时间
+>   图片:\*\_icon,icon\_\*,\*\_bg,bg\_\*,\*\_img,img\_\*,\*\_image,image\_\*      
+>   开关:is\_\*,enable    自动当做枚举 {"1":"有效","0":"无效"}  
+>   日期:\*day\*,\*date\* 日期  
+>   时间:\*time\*,\*times\*  时间  

+ 1 - 0
chapter1/dictionary-setting.md → base/dictionary-setting.md

@@ -18,4 +18,5 @@
 - 键名:关联的字段名
 - 键名:关联的字段名
 - 值名:被关联内容的字段名
 - 值名:被关联内容的字段名
 - 值名可以根据展示需要使用sql修改,如:<font color="red">concat('\[',gid,'\]\[',game_name,'\]') </font>  展示效果 =><font color="red"> \[1\]\[魔域\]</font>
 - 值名可以根据展示需要使用sql修改,如:<font color="red">concat('\[',gid,'\]\[',game_name,'\]') </font>  展示效果 =><font color="red"> \[1\]\[魔域\]</font>
+- 字段过滤:用于过滤查询条件,例如:enable = 1
 
 

+ 13 - 1
chapter1/page-setting.md → base/page-setting.md

@@ -14,7 +14,19 @@
 ![add_config](../src/img/add_config.png)
 ![add_config](../src/img/add_config.png)
 - 页面标题:推荐使用项目名-自定义名称的格式命名,eg:27小程序-库存游戏
 - 页面标题:推荐使用项目名-自定义名称的格式命名,eg:27小程序-库存游戏
 - 页面尺寸:控制数据分页时每页的数据数量
 - 页面尺寸:控制数据分页时每页的数据数量
-- 内嵌Css或Js:为页面注入css和js
+- 内嵌Css或Js:为页面注入css和js,例如:
+
+```html
+<script>
+$(document).on('diy_load_table', function() {
+   ...
+});
+</script>
+
+<style>
+body {color:#fff;}
+</style>
+```
 - 数据操作:提供后台功能的重用操作
 - 数据操作:提供后台功能的重用操作
 >   - 可编辑:提供可以编辑功能
 >   - 可编辑:提供可以编辑功能
 >   - 可导出:可将页面结果导出一份Excel表
 >   - 可导出:可将页面结果导出一份Excel表

+ 0 - 0
chapter1/query-condition-setting.md → base/query-condition-setting.md


+ 0 - 10
chapter1.md

@@ -1,10 +0,0 @@
-## 基础用法
-
-*  [数据库配置](/chapter1/database-setting.md)
-*  [页面配置管理](/chapter1/page-setting.md)
-*  [查询条件配置](/chapter1/query-conditiom-setting.md)
-*  [字典配置](/chapter1/dictionary-setting.md)
-
-
-
-

+ 0 - 7
other.md

@@ -1,7 +0,0 @@
-## 其他补充
-
-* [分组统计](other/group-ads.md)
-* [图表功能](/other/table.md)
-* [注入和回调](/other/inject-callback.md)
-* [通用统计](/other/common-query.md)
-