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) => {