From 960a5ded709e0aff938d0798b4ca7cea38f3884d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Mon, 5 Dec 2022 12:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=BB=E5=8A=A1ui&?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=96=B0=E5=A2=9E=E7=BD=91=E7=BB=9C=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/job/index.vue | 33 +++++++++--------- src/views/monitor/job/log.vue | 10 +++--- src/views/monitor/logininfor/index.vue | 2 +- src/views/monitor/operlog/index.vue | 46 +++++++++++++++----------- 4 files changed, 49 insertions(+), 42 deletions(-) diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue index 7e72a81..88f4500 100644 --- a/src/views/monitor/job/index.vue +++ b/src/views/monitor/job/index.vue @@ -41,7 +41,7 @@ - + @@ -72,7 +72,7 @@ label="程序集名称" v-if="columns.showColumn('assemblyName')" :show-overflow-tooltip="true" /> - + @@ -96,7 +96,6 @@ - + @@ -383,7 +383,7 @@ const queryRef = ref(null) // 任务状态字典 const isStartOptions = ref([ { dictLabel: '运行中', dictValue: 'true', listClass: 'success' }, - { dictLabel: '已停止', dictValue: 'false' } + { dictLabel: '已停止', dictValue: 'false', listClass: 'danger' } ]) // 任务组名字典 const jobGroupOptions = ref([]) @@ -402,7 +402,8 @@ const state = reactive({ beginTime: [{ required: false, message: '请选择开始日期', trigger: 'blur' }], endTime: [{ required: false, message: '请选择结束日期', trigger: 'blur' }], intervalSecond: [{ message: '请设置执行间隔', type: 'number', trigger: 'blur' }], - sqlText: [{ required: true, message: '请输入sql语句', trigger: 'blur' }] + sqlText: [{ required: true, message: '请输入sql语句', trigger: 'blur' }], + requestMethod: [{ required: true, message: '请选择请求方式', trigger: 'blur' }] }, options: { // 触发器类型 @@ -412,8 +413,8 @@ const state = reactive({ ], taskTypeOptions: [ { dictLabel: '程序集', dictValue: '1' }, - { dictLabel: 'api请求', dictValue: '2' }, - { dictLabel: 'sql脚本', dictValue: '3' } + { dictLabel: 'api请求', dictValue: '2', listClass: 'primary' }, + { dictLabel: 'sql脚本', dictValue: '3', listClass: 'info' } ] } }) @@ -569,14 +570,12 @@ function reset() { endTime: undefined, intervalSecond: 1, cron: undefined, - taskType: 1 + taskType: 1, + requestMethod: 'GET' } proxy.resetForm('formRef') } -// 自动计算分页 Id -function handleIndexCalc(index) { - return (queryParams.PageNum - 1) * queryParams.pageSize + index + 1 -} + // 取消按钮 function cancel() { open.value = false diff --git a/src/views/monitor/job/log.vue b/src/views/monitor/job/log.vue index 2095091..39b777e 100644 --- a/src/views/monitor/job/log.vue +++ b/src/views/monitor/job/log.vue @@ -53,7 +53,11 @@ - + + +