diff --git a/src/views/sMsSendManage/loopSend/Crontab/day.vue b/src/views/sMsSendManage/loopSend/Crontab/day.vue new file mode 100644 index 0000000..39263f5 --- /dev/null +++ b/src/views/sMsSendManage/loopSend/Crontab/day.vue @@ -0,0 +1,174 @@ + + + + + 日,允许的通配符[, - * ? / L W] + + + + + + 不指定 + + + + + + 周期从 + - + 日 + + + + + + 从 + 号开始,每 + 日执行一次 + + + + + + 每月 + 号最近的那个工作日 + + + + + + 本月最后一天 + + + + + + 指定 + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sMsSendManage/loopSend/Crontab/hour.vue b/src/views/sMsSendManage/loopSend/Crontab/hour.vue new file mode 100644 index 0000000..db77835 --- /dev/null +++ b/src/views/sMsSendManage/loopSend/Crontab/hour.vue @@ -0,0 +1,133 @@ + + + + + 小时,允许的通配符[, - * /] + + + + + + 周期从 + - + 时 + + + + + + 从 + 时开始,每 + 小时执行一次 + + + + + + 指定 + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sMsSendManage/loopSend/Crontab/index.vue b/src/views/sMsSendManage/loopSend/Crontab/index.vue new file mode 100644 index 0000000..e0279fd --- /dev/null +++ b/src/views/sMsSendManage/loopSend/Crontab/index.vue @@ -0,0 +1,647 @@ + + + + + 周期 + + + {{ period.label }} + + + + + + + + + 秒 + + + + 分钟 + + + + 小时 + + + + 日期 + + + + 月份 + + + + + + + + 星期 + + + {{ week.label }} + + + + + + + 时间表达式 + {{ crontabValueString }} + + + + + + + + 确定 + 重置 + 取消 + + + + + + + diff --git a/src/views/sMsSendManage/loopSend/Crontab/min.vue b/src/views/sMsSendManage/loopSend/Crontab/min.vue new file mode 100644 index 0000000..65f0946 --- /dev/null +++ b/src/views/sMsSendManage/loopSend/Crontab/min.vue @@ -0,0 +1,126 @@ + + + + + 分钟,允许的通配符[, - * /] + + + + + + 周期从 + - + 分钟 + + + + + + 从 + 分钟开始, 每 + 分钟执行一次 + + + + + + 指定 + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sMsSendManage/loopSend/Crontab/month.vue b/src/views/sMsSendManage/loopSend/Crontab/month.vue new file mode 100644 index 0000000..e561ba4 --- /dev/null +++ b/src/views/sMsSendManage/loopSend/Crontab/month.vue @@ -0,0 +1,141 @@ + + + + + 月,允许的通配符[, - * /] + + + + + + 周期从 + - + 月 + + + + + + 从 + 月开始,每 + 月月执行一次 + + + + + + 指定 + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sMsSendManage/loopSend/Crontab/result.vue b/src/views/sMsSendManage/loopSend/Crontab/result.vue new file mode 100644 index 0000000..cbb49ba --- /dev/null +++ b/src/views/sMsSendManage/loopSend/Crontab/result.vue @@ -0,0 +1,540 @@ + + + 最近5次运行时间 + + + {{item}} + + 计算结果中... + + + + + \ No newline at end of file diff --git a/src/views/sMsSendManage/loopSend/Crontab/second.vue b/src/views/sMsSendManage/loopSend/Crontab/second.vue new file mode 100644 index 0000000..15e47a0 --- /dev/null +++ b/src/views/sMsSendManage/loopSend/Crontab/second.vue @@ -0,0 +1,128 @@ + + + + + 秒,允许的通配符[, - * /] + + + + + + 周期从 + - + 秒 + + + + + + 从 + 秒开始,每 + 秒执行一次 + + + + + + 指定 + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sMsSendManage/loopSend/Crontab/week.vue b/src/views/sMsSendManage/loopSend/Crontab/week.vue new file mode 100644 index 0000000..e59da22 --- /dev/null +++ b/src/views/sMsSendManage/loopSend/Crontab/week.vue @@ -0,0 +1,197 @@ + + + + + 周,允许的通配符[, - * ? / L #] + + + + + + 不指定 + + + + + + 周期从 + + {{item.value}} + + - + + {{item.value}} + + + + + + + 第 + 周的 + + + + + + + + + 本月最后一个 + + + + + + + + + 指定 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sMsSendManage/loopSend/Crontab/year.vue b/src/views/sMsSendManage/loopSend/Crontab/year.vue new file mode 100644 index 0000000..14758ba --- /dev/null +++ b/src/views/sMsSendManage/loopSend/Crontab/year.vue @@ -0,0 +1,143 @@ + + + + + 不填,允许的通配符[, - * /] + + + + + + 每年 + + + + + + 周期从 + - + + + + + + + 从 + 年开始,每 + 年执行一次 + + + + + + + 指定 + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sMsSendManage/loopSend/edit.vue b/src/views/sMsSendManage/loopSend/edit.vue index f93f020..b62af43 100644 --- a/src/views/sMsSendManage/loopSend/edit.vue +++ b/src/views/sMsSendManage/loopSend/edit.vue @@ -199,7 +199,7 @@ import { ref, reactive, computed, getCurrentInstance, nextTick, onMounted, watch } from 'vue' import { useRoute, useRouter } from 'vue-router' import { Clock } from '@element-plus/icons-vue' -import Crontab from '@/components/Crontab' +import Crontab from './Crontab/index.vue' import { addLoopSendAPI, updateLoopSendAPI, @@ -235,7 +235,7 @@ const taskStatus = ref('') const cronDialogConfig = reactive({ outerVisible: false, outerTitle: 'Cron表达式生成器', - outerWidth: '800px', + outerWidth: '70%', minHeight: '500px', maxHeight: '80vh', }) diff --git a/src/views/sMsSendManage/loopSend/index.vue b/src/views/sMsSendManage/loopSend/index.vue index 8e15bd6..8c23062 100644 --- a/src/views/sMsSendManage/loopSend/index.vue +++ b/src/views/sMsSendManage/loopSend/index.vue @@ -63,7 +63,6 @@ import { bus, BUS_EVENTS } from '@/utils/bus' const router = useRouter() const { proxy } = getCurrentInstance() - const { tableColumns, buildFormColumns } = config const comTableRef = ref(null) const sendDetailsRef = ref(null) @@ -89,7 +88,6 @@ const actionColumns = [ label: '详情', type: 'primary', link: true, - handler: (row) => { router.push({ path: '/sms/loopSendEdit/index',
最近5次运行时间