feature: task
This commit is contained in:
parent
7b268b1b84
commit
e281b3c65f
|
|
@ -128,6 +128,12 @@ class Schedule extends Backend
|
||||||
$res = array_values($res);
|
$res = array_values($res);
|
||||||
|
|
||||||
|
|
||||||
|
$filter = $this->request->param('filter');
|
||||||
|
$filter = json_decode($filter, true);
|
||||||
|
if (isset($filter['timetype']) && $filter['timetype'] == 2) {
|
||||||
|
unset($res[2]);
|
||||||
|
}
|
||||||
|
|
||||||
$result = array("total" => count($res), "rows" => $res);
|
$result = array("total" => count($res), "rows" => $res);
|
||||||
|
|
||||||
return json($result);
|
return json($result);
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||||
|
|
||||||
// 为表格绑定事件
|
// 为表格绑定事件
|
||||||
Table.api.bindevent(table);
|
Table.api.bindevent(table);
|
||||||
|
|
||||||
|
// 指定搜索条件
|
||||||
|
$(document).on("click", ".btn-block", function () {
|
||||||
|
var timetype = $("#c-flag").val();
|
||||||
|
let options = $table.bootstrapTable('getOptions');
|
||||||
|
|
||||||
|
table.bootstrapTable('refreshOptions', {
|
||||||
|
columns: [{
|
||||||
|
"title":"username",
|
||||||
|
"field":"name",
|
||||||
|
}],
|
||||||
|
searchFormTemplate: options.searchFormTemplate
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
add: function () {
|
add: function () {
|
||||||
Controller.api.bindevent();
|
Controller.api.bindevent();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user