@@ -150,6 +150,8 @@
:buttons="buttons"
:ellipsis="10"
:label="$t('commons.table.operate')"
+ :min-width="mobile ? 'auto' : 200"
+ :fixed="mobile ? false : 'right'"
fix
/>
@@ -178,13 +180,14 @@
import OperateDialog from '@/views/cronjob/operate/index.vue';
import Records from '@/views/cronjob/record/index.vue';
import Backups from '@/views/cronjob/backup/index.vue';
-import { onMounted, reactive, ref } from 'vue';
+import { computed, onMounted, reactive, ref } from 'vue';
import { deleteCronjob, getCronjobPage, handleOnce, updateStatus } from '@/api/modules/cronjob';
import i18n from '@/lang';
import { Cronjob } from '@/api/interface/cronjob';
import { ElMessageBox } from 'element-plus';
import { MsgSuccess } from '@/utils/message';
import { transSpecToStr } from './helper';
+import { GlobalStore } from '@/store';
const loading = ref();
const selects = ref
([]);
@@ -206,6 +209,12 @@ const paginationConfig = reactive({
});
const searchName = ref();
+const globalStore = GlobalStore();
+
+const mobile = computed(() => {
+ return globalStore.isMobile();
+});
+
const search = async (column?: any) => {
paginationConfig.orderBy = column?.order ? column.prop : paginationConfig.orderBy;
paginationConfig.order = column?.order ? column.order : paginationConfig.order;
diff --git a/frontend/src/views/cronjob/operate/index.vue b/frontend/src/views/cronjob/operate/index.vue
index d66fec842..3b417ef1e 100644
--- a/frontend/src/views/cronjob/operate/index.vue
+++ b/frontend/src/views/cronjob/operate/index.vue
@@ -84,59 +84,86 @@
-
-
-
-
-
-
-
-
- {{ $t('cronjob.day') }}
-
-
-
-
- {{ $t('commons.units.hour') }}
-
-
-
-
- {{ $t('commons.units.minute') }}
-
-
-
-
- {{ $t('commons.units.second') }}
-
-
-
- {{ $t('commons.button.delete') }}
-
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cronjob.dayUnit') }}
+
+
+
+
+
+
+
+
+ {{ $t('commons.units.hourUnit') }}
+
+
+
+
+
+
+
+
+ {{ $t('commons.units.minuteUnit') }}
+
+
+
+
+
+
+
+
+ {{ $t('commons.units.secondUnit') }}
+
+
+
+
+
+ {{ $t('commons.button.delete') }}
+
+
@@ -838,37 +865,9 @@ defineExpose({
});