diff --git a/src/components/AddSchedule/ScheduleForm.vue b/src/components/AddSchedule/ScheduleForm.vue
index 878ebd7..c1d9192 100644
--- a/src/components/AddSchedule/ScheduleForm.vue
+++ b/src/components/AddSchedule/ScheduleForm.vue
@@ -155,7 +155,8 @@ import ExecuteTime from './ExecuteTime.vue'
mixins: [ExecuteTime],
computed: {
...mapState({
- lang: state => state.global.lang
+ lang: state => state.global.lang,
+ is_scheduler_enabled: state => state.global.is_scheduler_enabled
})
},
methods: {
@@ -250,6 +251,9 @@ export default class Addschedule extends Vue {
}
async querySchedules () {
+ if (!this.is_scheduler_enabled) {
+ return
+ }
try {
this.loadingScheduleList = true
const res = await this.getSchedulesList()
diff --git a/src/components/EditTask/index.vue b/src/components/EditTask/index.vue
index c81bbb6..c1833d7 100644
--- a/src/components/EditTask/index.vue
+++ b/src/components/EditTask/index.vue
@@ -114,6 +114,9 @@ vuex.registerModule(['modals', 'EditTaskModal'], store)
taskInfo: state => state.taskInfo,
form: state => state.form,
callback: state => state.callback
+ }),
+ ...mapState({
+ is_scheduler_enabled: state => state.global.is_scheduler_enabled
})
},
methods: {
@@ -170,6 +173,9 @@ export default class EditTask extends Vue {
}
async querySchedules () {
+ if (!this.is_scheduler_enabled) {
+ return
+ }
try {
this.loadingScheduleList = true
const res = await this.getSchedulesList()
diff --git a/src/components/Header/HeaderMenu.vue b/src/components/Header/HeaderMenu.vue
index dcdaa9c..363c9fd 100644
--- a/src/components/Header/HeaderMenu.vue
+++ b/src/components/Header/HeaderMenu.vue
@@ -19,7 +19,7 @@
{{$t('menu.jobs')}}
-
+
{{$t('menu.schedules')}}
@@ -42,7 +42,8 @@ export default {
},
computed: {
...mapState({
- isTrial: state => state.global.is_trial
+ isTrial: state => state.global.is_trial,
+ is_scheduler_enabled: state => state.global.is_scheduler_enabled
}),
activeIndex () {
return this.$route.meta.menuIndex
diff --git a/src/page/Dag/index.vue b/src/page/Dag/index.vue
index fde2e2b..d948f89 100644
--- a/src/page/Dag/index.vue
+++ b/src/page/Dag/index.vue
@@ -20,10 +20,15 @@ import { Graph } from '@antv/x6'
import GraphNode from '../../components/GraphNode'
import '@antv/x6-vue-shape'
import { GridLayout } from '@antv/layout'
-import { mapActions } from 'vuex'
+import { mapActions, mapState } from 'vuex'
import { GRAPH_EDGE_ATTRS, GRAPH_NODE_ATTRS } from '../../config'
@Component({
+ computed: {
+ ...mapState({
+ is_scheduler_enabled: state => state.global.is_scheduler_enabled
+ })
+ },
methods: {
...mapActions({
getSchedulesList: 'GET_SCHEDULE_LIST'
@@ -73,6 +78,9 @@ export default class DAG extends Vue {
}
async queryData () {
+ if (!this.is_scheduler_enabled) {
+ return
+ }
try {
const res = await this.getSchedulesList()
if (res && res.data) {
diff --git a/src/page/IframeImage/index.vue b/src/page/IframeImage/index.vue
index ad6d2db..e170463 100644
--- a/src/page/IframeImage/index.vue
+++ b/src/page/IframeImage/index.vue
@@ -1,22 +1,36 @@
-
-
+
+
+
+