正在显示
8 个修改的文件
包含
11 行增加
和
81 行删除
@@ -2,8 +2,8 @@ | @@ -2,8 +2,8 @@ | ||
2 | 2 | ||
3 | return [ | 3 | return [ |
4 | 'Title' => '校区名称', | 4 | 'Title' => '校区名称', |
5 | - 'School_id' => '校区id', | ||
6 | - 'Activity_id' => '活动id', | 5 | + 'School_id' => '学校名称', |
6 | + 'Activity_id' => '活动名称', | ||
7 | 'Date' => '举办日期', | 7 | 'Date' => '举办日期', |
8 | 'Createtime' => '创建时间', | 8 | 'Createtime' => '创建时间', |
9 | 'Updatetime' => '更新时间', | 9 | 'Updatetime' => '更新时间', |
@@ -3,11 +3,11 @@ | @@ -3,11 +3,11 @@ | ||
3 | return [ | 3 | return [ |
4 | 'Campus_id' => '所属校区', | 4 | 'Campus_id' => '所属校区', |
5 | 'Ronda_id' => '所属场次', | 5 | 'Ronda_id' => '所属场次', |
6 | - 'Title' => '名称', | 6 | + 'Title' => '项目名称', |
7 | 'Radar_id' => '所属维度', | 7 | 'Radar_id' => '所属维度', |
8 | 'User_id' => '所属老师', | 8 | 'User_id' => '所属老师', |
9 | - 'Details' => '详情', | ||
10 | - 'Score' => '积分', | 9 | + 'Details' => '项目详情', |
10 | + 'Score' => '可获积分', | ||
11 | 'Createtime' => '创建时间', | 11 | 'Createtime' => '创建时间', |
12 | 'Updatetime' => '更新时间', | 12 | 'Updatetime' => '更新时间', |
13 | 'User.username' => '用户名', | 13 | 'User.username' => '用户名', |
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | return [ | 3 | return [ |
4 | - 'Campus_id' => '校区id', | 4 | + 'Campus_id' => '所属校区', |
5 | 'Title' => '场次名称', | 5 | 'Title' => '场次名称', |
6 | 'Holdtime' => '举办日期', | 6 | 'Holdtime' => '举办日期', |
7 | - 'Images' => '图片', | ||
8 | - 'Details' => '详情', | 7 | + 'Images' => '场次图片', |
8 | + 'Details' => '场次详情', | ||
9 | 'Createtime' => '创建时间', | 9 | 'Createtime' => '创建时间', |
10 | 'Updatetime' => '更新时间', | 10 | 'Updatetime' => '更新时间', |
11 | 'Campus.title' => '校区名称' | 11 | 'Campus.title' => '校区名称' |
@@ -6,12 +6,6 @@ | @@ -6,12 +6,6 @@ | ||
6 | <input id="c-title" class="form-control" name="row[title]" type="text"> | 6 | <input id="c-title" class="form-control" name="row[title]" type="text"> |
7 | </div> | 7 | </div> |
8 | </div> | 8 | </div> |
9 | - <div class="form-group"> | ||
10 | - <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label> | ||
11 | - <div class="col-xs-12 col-sm-8"> | ||
12 | - <input id="c-weigh" class="form-control" name="row[weigh]" type="number"> | ||
13 | - </div> | ||
14 | - </div> | ||
15 | <div class="form-group layer-footer"> | 9 | <div class="form-group layer-footer"> |
16 | <label class="control-label col-xs-12 col-sm-2"></label> | 10 | <label class="control-label col-xs-12 col-sm-2"></label> |
17 | <div class="col-xs-12 col-sm-8"> | 11 | <div class="col-xs-12 col-sm-8"> |
@@ -6,12 +6,6 @@ | @@ -6,12 +6,6 @@ | ||
6 | <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}"> | 6 | <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}"> |
7 | </div> | 7 | </div> |
8 | </div> | 8 | </div> |
9 | - <div class="form-group"> | ||
10 | - <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label> | ||
11 | - <div class="col-xs-12 col-sm-8"> | ||
12 | - <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}"> | ||
13 | - </div> | ||
14 | - </div> | ||
15 | <div class="form-group layer-footer"> | 9 | <div class="form-group layer-footer"> |
16 | <label class="control-label col-xs-12 col-sm-2"></label> | 10 | <label class="control-label col-xs-12 col-sm-2"></label> |
17 | <div class="col-xs-12 col-sm-8"> | 11 | <div class="col-xs-12 col-sm-8"> |
@@ -34,7 +34,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | @@ -34,7 +34,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | ||
34 | {field: 'id', title: __('ID')}, | 34 | {field: 'id', title: __('ID')}, |
35 | {field: 'title', title: __('Title'), operate: 'LIKE'}, | 35 | {field: 'title', title: __('Title'), operate: 'LIKE'}, |
36 | {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | 36 | {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, |
37 | - {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | 37 | + //{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, |
38 | {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | 38 | {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} |
39 | ] | 39 | ] |
40 | ] | 40 | ] |
1 | -define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { | ||
2 | - | ||
3 | - var Controller = { | ||
4 | - index: function () { | ||
5 | - // 初始化表格参数配置 | ||
6 | - Table.api.init({ | ||
7 | - extend: { | ||
8 | - index_url: 'study_score_log/index' + location.search, | ||
9 | - add_url: 'study_score_log/add', | ||
10 | - edit_url: 'study_score_log/edit', | ||
11 | - del_url: 'study_score_log/del', | ||
12 | - multi_url: 'study_score_log/multi', | ||
13 | - import_url: 'study_score_log/import', | ||
14 | - table: 'study_score_log', | ||
15 | - } | ||
16 | - }); | ||
17 | - | ||
18 | - var table = $("#table"); | ||
19 | - | ||
20 | - // 初始化表格 | ||
21 | - table.bootstrapTable({ | ||
22 | - url: $.fn.bootstrapTable.defaults.extend.index_url, | ||
23 | - pk: 'id', | ||
24 | - sortName: 'id', | ||
25 | - columns: [ | ||
26 | - [ | ||
27 | - {checkbox: true}, | ||
28 | - {field: 'id', title: __('Id')}, | ||
29 | - {field: 'campus_id', title: __('Campus_id')}, | ||
30 | - {field: 'item_id', title: __('Item_id')}, | ||
31 | - {field: 'study_id', title: __('Study_id')}, | ||
32 | - {field: 'team_id', title: __('Team_id')}, | ||
33 | - {field: 'score', title: __('Score'), operate:'BETWEEN'}, | ||
34 | - {field: 'memo', title: __('Memo'), operate: 'LIKE'}, | ||
35 | - {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | ||
36 | - {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime}, | ||
37 | - {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} | ||
38 | - ] | ||
39 | - ] | ||
40 | - }); | ||
41 | - | ||
42 | - // 为表格绑定事件 | ||
43 | - Table.api.bindevent(table); | ||
44 | - }, | ||
45 | - add: function () { | ||
46 | - Controller.api.bindevent(); | ||
47 | - }, | ||
48 | - edit: function () { | ||
49 | - Controller.api.bindevent(); | ||
50 | - }, | ||
51 | - api: { | ||
52 | - bindevent: function () { | ||
53 | - Form.api.bindevent($("form[role=form]")); | ||
54 | - } | ||
55 | - } | ||
56 | - }; | ||
57 | - return Controller; | ||
58 | -}); |
-
请 注册 或 登录 后发表评论