diff --git a/application/chengji/view/index/index - 副本.html b/application/chengji/view/index/index - 副本.html new file mode 100644 index 00000000..7f0820f1 --- /dev/null +++ b/application/chengji/view/index/index - 副本.html @@ -0,0 +1,214 @@ + +{extend name="common@list" /} +{block name="jsset"} + +{/block} +{block name="nav"} + + 系统管理 + 单位管理 + 单位列表 + +{/block} +{block name="search"} + + + +{/block} +{block name="table"} +
+
+{/block} +{block name="myjs"} + + + + + + +{/block} \ No newline at end of file diff --git a/application/chengji/view/index/index.html b/application/chengji/view/index/index.html index dea24bb9..95b43cc2 100644 --- a/application/chengji/view/index/index.html +++ b/application/chengji/view/index/index.html @@ -5,14 +5,12 @@ {/block} {block name="nav"} - 系统管理 - 单位管理 - 单位列表 + 成绩管理 + 成绩列表 {/block} {block name="search"} - - - {/block} {block name="table"}
-
{/block} {block name="myjs"} - + {/block} \ No newline at end of file diff --git a/application/common/view/list.html b/application/common/view/list.html index d2bd38bc..2375be83 100644 --- a/application/common/view/list.html +++ b/application/common/view/list.html @@ -32,13 +32,21 @@

筛选

+
{block name="search"}{/block} +
+ +
+
{block name="table"}{/block} + @@ -47,23 +55,50 @@ layui.config({ base: "__STATIC__/xadmin/js/" //假设这是你存放拓展模块的根目录 }); - - // 提交表单 - function clickSearchButton(formname='#search',tableID='mytable'){ - layui.use(['cjgl'],function(){ - var cjgl = layui.cjgl; - cjgl.reLoadTable(formname,tableID); - }); - } - - // 获取搜索框文字 - $('#searchval').bind("keyup",function(){ - var searchval = $('#searchval').val(); - if($.trim(searchval)!="" || searchval==""){ - clickSearchButton(); - } - }) + // 声明表格,和表格参数变量 + var userTable,options; + // 设置表格初始变量 + options = { + elem: '#tabledemo', + toolbar: '#toolbarDemo', + url:"{:url('ajaxdata1')}", + cols:[[ //表头 + {type:'checkbox', fixed: 'left'}, + {field: 'school', title: '学校',sort: true}, + {field: 'nianji', title: '年级 ', minWidth:100,sort: true}, + {field: "banji",title: '班级',sort: true}, + {field: "student",title: '学生姓名',sort: true}, + {field: 'status', title: '状态',templet:'#status', sort: true}, + {field: 'id', title: '操作',toolbar: '#barDemo',minWidth:140} + ]] + }; {block name="myjs"}{/block} + + \ No newline at end of file