From 47589c5d112f76effb6202dc713f965a959647cd Mon Sep 17 00:00:00 2001 From: zhang zhuo Date: Thu, 23 Oct 2025 11:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/system.ts | 11 + src/components/piSelect/index.vue | 210 ++------------------ src/components/piTableSelect/index.vue | 254 ++++++++++++++++++++++++ src/views/monitor/crontab/index.vue | 26 ++- src/views/monitor/crontab/save.vue | 7 - src/views/monitor/crontab_log/index.vue | 85 +++++--- 6 files changed, 359 insertions(+), 234 deletions(-) create mode 100644 src/components/piTableSelect/index.vue diff --git a/src/api/model/system.ts b/src/api/model/system.ts index 2f203ee..e9c539c 100644 --- a/src/api/model/system.ts +++ b/src/api/model/system.ts @@ -118,5 +118,16 @@ export default { option: async function (data = {}) { return await http.get("crontab/option", data); }, + }, + crontab_log: { + list: async function (data = {}) { + return await http.get("crontab_log/list", data); + }, + del: async function (data = {}) { + return await http.delete("crontab_log/del", data); + }, + empty: async function (data = {}) { + return await http.delete("crontab_log/remove_all", data); + }, } } diff --git a/src/components/piSelect/index.vue b/src/components/piSelect/index.vue index 3989cf3..bba354b 100644 --- a/src/components/piSelect/index.vue +++ b/src/components/piSelect/index.vue @@ -1,35 +1,15 @@ diff --git a/src/components/piTableSelect/index.vue b/src/components/piTableSelect/index.vue new file mode 100644 index 0000000..3989cf3 --- /dev/null +++ b/src/components/piTableSelect/index.vue @@ -0,0 +1,254 @@ + + + + + diff --git a/src/views/monitor/crontab/index.vue b/src/views/monitor/crontab/index.vue index ff34a9c..03bf9d1 100644 --- a/src/views/monitor/crontab/index.vue +++ b/src/views/monitor/crontab/index.vue @@ -2,10 +2,12 @@