mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复定时任务搜索api
This commit is contained in:
1 parent
7516acbc41
commit
b9253c8191
13 files changed
+65
-70
No files matched your search
@@ -108,7 +108,6 @@ const CronDetailModal = ({
|
||||
wordWrap: 'on',
|
||||
}}
|
||||
onMount={(editor, monaco) => {
|
||||
console.log(monaco);
|
||||
editorRef.current = editor;
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -390,7 +390,7 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
|
||||
const getCrons = () => {
|
||||
setLoading(true);
|
||||
const { page, size, sorter } = pageConf;
|
||||
let url = `${config.apiPrefix}crons?searchText=${searchText}&page=${page}&size=${size}`;
|
||||
let url = `${config.apiPrefix}crons?searchValue=${searchText}&page=${page}&size=${size}`;
|
||||
if (sorter && sorter.field) {
|
||||
url += `&sortField=${sorter.field}&sortType=${
|
||||
sorter.order === 'ascend' ? 'ASC' : 'DESC'
|
||||
|
||||
@@ -186,7 +186,7 @@ const ViewManageModal = ({
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
getCronViews();
|
||||
// getCronViews();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user