feat:错题删除

pg_adapter
wangxy 9 months ago
parent a7af1c8d5a
commit cd6421233a

@ -46,8 +46,9 @@
var options = { var options = {
uniqueId: "id", uniqueId: "id",
url: prefix + "/list", url: prefix + "/list",
removeUrl: prefix + "/remove",
queryParams: queryParams, queryParams: queryParams,
modalName: "考试", modalName: "考试错题",
columns: [ columns: [
{ {
field : 'title', field : 'title',
@ -68,6 +69,8 @@
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + '" href="javascript:void(0)" onclick="detail(\'' + row.quId + '\')"><i class="fa fa-edit"></i>详情</a> '); actions.push('<a class="btn btn-success btn-xs ' + '" href="javascript:void(0)" onclick="detail(\'' + row.quId + '\')"><i class="fa fa-edit"></i>详情</a> ');
actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}] }]

Loading…
Cancel
Save