From 9dd69d768d1045cf0b42c1a2b7ac7fd1ae084661 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, 3 Jul 2023 21:45:30 +0800
Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E4=BB=BB=E5=8A=A1?=
=?UTF-8?q?=E5=AD=97=E5=85=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/monitor/job/index.vue | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue
index e53a0bf..a24fdd2 100644
--- a/src/views/monitor/job/index.vue
+++ b/src/views/monitor/job/index.vue
@@ -56,7 +56,7 @@
-
+
-
+
@@ -369,14 +373,6 @@ const logTitle = ref('')
const formRef = ref(null)
const queryRef = ref(null)
-// 任务状态字典
-const isStartOptions = ref([
- { dictLabel: '运行中', dictValue: '1', listClass: 'success' },
- { dictLabel: '已停止', dictValue: '0', listClass: 'danger' }
-])
-// 任务组名字典
-const jobGroupOptions = ref([])
-
const state = reactive({
form: {},
// 表单校验
@@ -404,7 +400,14 @@ const state = reactive({
{ dictLabel: '程序集', dictValue: '1' },
{ dictLabel: 'api请求', dictValue: '2', listClass: 'danger' },
{ dictLabel: 'sql脚本', dictValue: '3', listClass: 'info' }
- ]
+ ],
+ // 任务状态字典
+ isStartOptions: [
+ { dictLabel: '运行中', dictValue: '1', listClass: 'success' },
+ { dictLabel: '已停止', dictValue: '0', listClass: 'danger' }
+ ],
+ // 任务组名字典
+ jobGroupOptions: []
}
})
// 按钮是否可见
@@ -588,8 +591,9 @@ function handleExport() {
getList()
proxy.getDicts('sys_job_group').then((response) => {
- jobGroupOptions.value = response.data
+ state.options.jobGroupOptions = response.data
})
+
watch(
() => form.value.triggerType,
(val) => {