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 @@
-
-
-
-
-
-
- {{ scope.$index + (currentPage - 1) * pageSize + 1 }}
-
-
-
-
-
-
-
-
-
+ :placeholder="placeholder" :disabled="disabled">
+
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 @@
+
+
+
+
+
+
+
+
+ {{ scope.$index + (currentPage - 1) * pageSize + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
-
+
-
+
- 查看
-
- 查看
+ 编辑
- 删除
+ 删除
+ 日志
+
@@ -53,6 +57,7 @@
import saveDialog from './save'
import api from "@/api/index";
import {getCurrentInstance, nextTick, ref} from "vue";
+import router from "@/router/index"
defineOptions({
name: "monitorCrontab"
@@ -93,6 +98,15 @@ async function show(row) {
})
}
+function show_log(row) {
+ router.push({
+ path: "/monitor/crontab_log",
+ query: {
+ crontab_id: row?.crontab_id
+ }
+ })
+}
+
//删除
async function del(row) {
const loading = proxy.$loading();
diff --git a/src/views/monitor/crontab/save.vue b/src/views/monitor/crontab/save.vue
index 7a30389..1b02ccf 100644
--- a/src/views/monitor/crontab/save.vue
+++ b/src/views/monitor/crontab/save.vue
@@ -7,9 +7,6 @@
-
-
-
@@ -58,7 +55,6 @@ let form = ref({
enable: 0,
skip_log: 1,
rule: '',
- params: '',
callback: ''
})
const rules = ref({
@@ -68,9 +64,6 @@ const rules = ref({
rule:[
{required: true, message: '请填写cron表达式'}
],
- params:[
- {required: true, message: '请填写调用参数'}
- ],
callback:[
{required: true, message: '请填写调用方法'}
]
diff --git a/src/views/monitor/crontab_log/index.vue b/src/views/monitor/crontab_log/index.vue
index 096e8ca..1c1a78d 100644
--- a/src/views/monitor/crontab_log/index.vue
+++ b/src/views/monitor/crontab_log/index.vue
@@ -1,24 +1,30 @@
-
+
-
+ 删除
+ 清空
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
- 强退
+ 删除
@@ -30,29 +36,60 @@