|
@@ -1,4 +1,4 @@
|
|
-define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
|
|
|
|
|
|
+define(['jquery', 'bootstrap', 'backend', 'table', 'form','editable'], function ($, undefined, Backend, Table, Form,editable) {
|
|
|
|
|
|
var Controller = {
|
|
var Controller = {
|
|
index: function () {
|
|
index: function () {
|
|
@@ -26,6 +26,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
fixedColumns: true,
|
|
fixedColumns: true,
|
|
fixedRightNumber: 1,
|
|
fixedRightNumber: 1,
|
|
searchFormVisible:true,
|
|
searchFormVisible:true,
|
|
|
|
+ singleSelect : true, //
|
|
columns: [
|
|
columns: [
|
|
[
|
|
[
|
|
{checkbox: true},
|
|
{checkbox: true},
|
|
@@ -107,7 +108,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
Table.api.init({
|
|
Table.api.init({
|
|
extend: {
|
|
extend: {
|
|
index_url: 'teacher/exams/persent' + location.search,
|
|
index_url: 'teacher/exams/persent' + location.search,
|
|
|
|
+ edit_url: 'teacher/exams/editscore',
|
|
indexed_url: 'teacher/exams/examing' + location.search,
|
|
indexed_url: 'teacher/exams/examing' + location.search,
|
|
|
|
+ score_url: 'teacher/exams/score' + location.search,
|
|
table: 'teacher_exams',
|
|
table: 'teacher_exams',
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -122,6 +125,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
fixedColumns: true,
|
|
fixedColumns: true,
|
|
fixedRightNumber: 1,
|
|
fixedRightNumber: 1,
|
|
searchFormVisible:false,
|
|
searchFormVisible:false,
|
|
|
|
+ showExport:false,
|
|
|
|
+ search:false,
|
|
columns: [
|
|
columns: [
|
|
[
|
|
[
|
|
// {checkbox: true},
|
|
// {checkbox: true},
|
|
@@ -198,6 +203,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
fixedColumns: true,
|
|
fixedColumns: true,
|
|
fixedRightNumber: 1,
|
|
fixedRightNumber: 1,
|
|
searchFormVisible:false,
|
|
searchFormVisible:false,
|
|
|
|
+ showExport:false,
|
|
|
|
+ search:false,
|
|
columns: [
|
|
columns: [
|
|
[
|
|
[
|
|
// {checkbox: true},
|
|
// {checkbox: true},
|
|
@@ -246,50 +253,33 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
var table2 = $("#table2");
|
|
var table2 = $("#table2");
|
|
// 初始化表格
|
|
// 初始化表格
|
|
table2.bootstrapTable({
|
|
table2.bootstrapTable({
|
|
- url: $.fn.bootstrapTable.defaults.extend.indexed_url,
|
|
|
|
|
|
+ url: $.fn.bootstrapTable.defaults.extend.score_url,
|
|
pk: 'exam_id',
|
|
pk: 'exam_id',
|
|
sortName: 'exam_id',
|
|
sortName: 'exam_id',
|
|
toolbar: '#toolbar2',
|
|
toolbar: '#toolbar2',
|
|
fixedColumns: true,
|
|
fixedColumns: true,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
pagination:false,
|
|
pagination:false,
|
|
- fixedRightNumber: 1,
|
|
|
|
|
|
+ fixedLeftNumber: 4,
|
|
searchFormVisible:false,
|
|
searchFormVisible:false,
|
|
|
|
+ showExport:false,
|
|
|
|
+ search:false,
|
|
columns: [
|
|
columns: [
|
|
[
|
|
[
|
|
// {checkbox: true},
|
|
// {checkbox: true},
|
|
{field: 'seat_id', title: __('座号')},
|
|
{field: 'seat_id', title: __('座号')},
|
|
{field: 'user_username', title: __('学员学号')},
|
|
{field: 'user_username', title: __('学员学号')},
|
|
{field: 'user_nickname', title: __('学员姓名')},
|
|
{field: 'user_nickname', title: __('学员姓名')},
|
|
- {field: 'total_score', title: __('考试成绩')},
|
|
|
|
- {field: '', title: __('总分')},
|
|
|
|
- {field: '', title: __('故障一未排除扣25分')},
|
|
|
|
- {field: '', title: __('故障二未排除扣25分')},
|
|
|
|
- {field: '', title: __('故障三未排除扣25分')},
|
|
|
|
- {field: '', title: __('故障现象少写或错写1条扣1分')},
|
|
|
|
- {field: '', title: __('可能原因少写或错写1条扣1分')},
|
|
|
|
- {field: '', title: __('故障部位少写或错写1条扣1分')},
|
|
|
|
- {field: '', title: __('排除方法少写或错写1条扣1分')},
|
|
|
|
- {field: '', title: __('修复结论错扣2分')},
|
|
|
|
- {field: '', title: __('按每超时1分钟扣分的比例扣分')},
|
|
|
|
- // {field: '', title: __('故障部位')},
|
|
|
|
- // {field: '', title: __('排除方法')},
|
|
|
|
- // {field: 'operate', title: __('Operate'), table: table1,
|
|
|
|
- // events: Table.api.events.operate,
|
|
|
|
- // // formatter: Table.api.formatter.operate
|
|
|
|
- // formatter: Table.api.formatter.buttons,
|
|
|
|
- // buttons: [
|
|
|
|
- // // {
|
|
|
|
- // // name: 'dispatch',
|
|
|
|
- // // text: '',
|
|
|
|
- // // icon: 'fa fa-pencil',
|
|
|
|
- // // title: '编辑',
|
|
|
|
- // // classname: 'btn btn-success btn-xs btn-magic btn-dialog',
|
|
|
|
- // // extend: 'data-area=\'["55%","95%"]\'',
|
|
|
|
- // // url: 'teacher/exams/edit',
|
|
|
|
- // // }
|
|
|
|
- // ],
|
|
|
|
- // }
|
|
|
|
|
|
+ {field: 'total', title: __('考试成绩')},
|
|
|
|
+ {field: 'fault_one_score', title: __('故障一扣分'),editable:true},
|
|
|
|
+ {field: 'fault_two_score', title: __('故障二扣分'),editable:true},
|
|
|
|
+ {field: 'fault_three_score', title: __('故障三扣分'),editable:true},
|
|
|
|
+ {field: 'xianxian_score', title: __('故障现象扣分'),editable:true},
|
|
|
|
+ {field: 'yuanyin_socre', title: __('可能原因扣分'),editable:true},
|
|
|
|
+ {field: 'buwei_score', title: __('故障部位扣分'),editable:true},
|
|
|
|
+ {field: 'fangfa_score', title: __('排除方法扣分'),editable:true},
|
|
|
|
+ {field: 'jielun_score', title: __('修复结论扣分'),editable:true},
|
|
|
|
+ {field: 'overtime_score', title: __('按每扣分'),editable:true},
|
|
]
|
|
]
|
|
]
|
|
]
|
|
});
|
|
});
|
|
@@ -297,6 +287,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
// 为表格绑定事件
|
|
// 为表格绑定事件
|
|
Table.api.bindevent(table2);
|
|
Table.api.bindevent(table2);
|
|
|
|
|
|
|
|
+ $("button[name=commonSearch]").css('display','none');
|
|
|
|
+
|
|
},
|
|
},
|
|
add: function () {
|
|
add: function () {
|
|
Controller.api.bindevent();
|
|
Controller.api.bindevent();
|