|
@@ -26,10 +26,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','editable'], function
|
|
$(".min_total").text(data.defen.min);
|
|
$(".min_total").text(data.defen.min);
|
|
|
|
|
|
var task_tr = '';
|
|
var task_tr = '';
|
|
- console.log(data.tongji.one_static.length+'###')
|
|
|
|
|
|
+ // console.log(data.tongji.one_static.length+'###')
|
|
for (i=0;i<data.tongji.one_static.length;++i){
|
|
for (i=0;i<data.tongji.one_static.length;++i){
|
|
var one_data = data.tongji.one_static[i];
|
|
var one_data = data.tongji.one_static[i];
|
|
- console.log(one_data+[i]);
|
|
|
|
|
|
+ // console.log(one_data+[i]);
|
|
var epercent = '';
|
|
var epercent = '';
|
|
if(one_data.epercent!='undefined' && one_data.epercent != undefined){
|
|
if(one_data.epercent!='undefined' && one_data.epercent != undefined){
|
|
epercent = one_data.epercent;
|
|
epercent = one_data.epercent;
|
|
@@ -87,15 +87,27 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','editable'], function
|
|
// {field: 'exam_status', title: __('Exam_status'),searchList: {"0":"未登录","1":"已登录","2":"模拟器检查并下发故障中","3":"模拟器正常","4":"答题中","5":"已交卷","6":"计算成绩中","7":"获取到成绩报告","80":"教师标记缺考","81":"登录未开始答题","90":"模拟器异常结束"},formatter: Table.api.formatter.simexamstatus},
|
|
// {field: 'exam_status', title: __('Exam_status'),searchList: {"0":"未登录","1":"已登录","2":"模拟器检查并下发故障中","3":"模拟器正常","4":"答题中","5":"已交卷","6":"计算成绩中","7":"获取到成绩报告","80":"教师标记缺考","81":"登录未开始答题","90":"模拟器异常结束"},formatter: Table.api.formatter.simexamstatus},
|
|
{field: 'exam_collection_name', title: __('考试名称'),operate: 'like'},
|
|
{field: 'exam_collection_name', title: __('考试名称'),operate: 'like'},
|
|
{field: 'sim_type', title: __('Sim_type'),searchList:{"0001":"FZD04B型侦毒器","0002":"FZB006型毒剂报警器","0003":"防化兵用毒剂报警器"},formatter: Table.api.formatter.simtype},
|
|
{field: 'sim_type', title: __('Sim_type'),searchList:{"0001":"FZD04B型侦毒器","0002":"FZB006型毒剂报警器","0003":"防化兵用毒剂报警器"},formatter: Table.api.formatter.simtype},
|
|
- // {
|
|
|
|
- // field: 'user_depart_id',
|
|
|
|
- // title: __('Department'),
|
|
|
|
- // visible: false,
|
|
|
|
- // addclass: 'selectpage',
|
|
|
|
- // extend: 'data-source="department/index/index" data-field="name"',
|
|
|
|
- // operate: Config.groupIds !=8 ? 'in':false,
|
|
|
|
- // formatter: Table.api.formatter.search
|
|
|
|
|
|
+ {
|
|
|
|
+ field: 'user_depart_id',
|
|
|
|
+ title: __('区队'),
|
|
|
|
+ visible: false,
|
|
|
|
+ addclass: 'selectpage',
|
|
|
|
+ extend: 'data-source="department/index/index" data-field="name"',
|
|
|
|
+ operate: Config.groupIds !=8 ? 'in':false,
|
|
|
|
+ formatter:function (value, row, index) {
|
|
|
|
+ console.log(value+'#@#@#')
|
|
|
|
+ return value.toString().replace(/(&|&)nbsp;/g, ' ');
|
|
|
|
+ }
|
|
|
|
+ // formatter: Table.api.formatter.search
|
|
|
|
+ },
|
|
|
|
+ // {field: 'name', title: __('Name'), align: 'left', formatter:function (value, row, index) {
|
|
|
|
+ // return value.toString().replace(/(&|&)nbsp;/g, ' ');
|
|
|
|
+ // }
|
|
// },
|
|
// },
|
|
|
|
+ {field: 'task_id', title: __('训练任务'),visible:false,
|
|
|
|
+ operate:'=',
|
|
|
|
+ searchList: $.getJSON("teacher/task/selectlist")
|
|
|
|
+ },
|
|
{field: 'total_score', title: __('Total_score'),operate:false},
|
|
{field: 'total_score', title: __('Total_score'),operate:false},
|
|
// {field: 'deduction_total_score', title: __('Deduction_total_score')},
|
|
// {field: 'deduction_total_score', title: __('Deduction_total_score')},
|
|
{field: 'starttime', title: __('开始考试时间'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
|
|
{field: 'starttime', title: __('开始考试时间'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
|