feature: task

This commit is contained in:
zhuyu 2025-03-25 18:20:03 +08:00
parent 7b268b1b84
commit e281b3c65f
2 changed files with 21 additions and 0 deletions

View File

@ -128,6 +128,12 @@ class Schedule extends Backend
$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);
return json($result);

View File

@ -98,6 +98,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
// 为表格绑定事件
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 () {
Controller.api.bindevent();