From 32ddafa8b1cde874e2f813f57ebaa61b5601db04 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 18 Jun 2020 16:27:24 +0800 Subject: [PATCH] =?UTF-8?q?cron=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/test/ApiTestConfig.vue | 5 +- .../components/api/test/SchedulerConfig.vue | 48 ++ .../components/api/test/SchedulerEdit.vue | 47 ++ .../components/common/cron/Crontab-Day.vue | 179 ++++++ .../components/common/cron/Crontab-Hour.vue | 122 ++++ .../components/common/cron/Crontab-Min.vue | 120 ++++ .../components/common/cron/Crontab-Mouth.vue | 128 ++++ .../components/common/cron/Crontab-Result.vue | 566 ++++++++++++++++++ .../components/common/cron/Crontab-Second.vue | 133 ++++ .../components/common/cron/Crontab-Week.vue | 167 ++++++ .../components/common/cron/Crontab-Year.vue | 144 +++++ .../components/common/cron/Crontab.vue | 425 +++++++++++++ 12 files changed, 2083 insertions(+), 1 deletion(-) create mode 100644 frontend/src/business/components/api/test/SchedulerConfig.vue create mode 100644 frontend/src/business/components/api/test/SchedulerEdit.vue create mode 100644 frontend/src/business/components/common/cron/Crontab-Day.vue create mode 100644 frontend/src/business/components/common/cron/Crontab-Hour.vue create mode 100644 frontend/src/business/components/common/cron/Crontab-Min.vue create mode 100644 frontend/src/business/components/common/cron/Crontab-Mouth.vue create mode 100644 frontend/src/business/components/common/cron/Crontab-Result.vue create mode 100644 frontend/src/business/components/common/cron/Crontab-Second.vue create mode 100644 frontend/src/business/components/common/cron/Crontab-Week.vue create mode 100644 frontend/src/business/components/common/cron/Crontab-Year.vue create mode 100644 frontend/src/business/components/common/cron/Crontab.vue diff --git a/frontend/src/business/components/api/test/ApiTestConfig.vue b/frontend/src/business/components/api/test/ApiTestConfig.vue index d224c9a9bb..7c26f18070 100644 --- a/frontend/src/business/components/api/test/ApiTestConfig.vue +++ b/frontend/src/business/components/api/test/ApiTestConfig.vue @@ -46,6 +46,8 @@ + + @@ -61,11 +63,12 @@ import MsApiReportStatus from "../report/ApiReportStatus"; import MsApiReportDialog from "./ApiReportDialog"; import {checkoutTestManagerOrTestUser, downloadFile} from "../../../../common/js/utils"; + import SchedulerConfig from "./SchedulerConfig"; export default { name: "MsApiTestConfig", - components: {MsApiReportDialog, MsApiReportStatus, MsApiScenarioConfig}, + components: {SchedulerConfig, MsApiReportDialog, MsApiReportStatus, MsApiScenarioConfig}, props: ["id"], diff --git a/frontend/src/business/components/api/test/SchedulerConfig.vue b/frontend/src/business/components/api/test/SchedulerConfig.vue new file mode 100644 index 0000000000..d4642993f7 --- /dev/null +++ b/frontend/src/business/components/api/test/SchedulerConfig.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/frontend/src/business/components/api/test/SchedulerEdit.vue b/frontend/src/business/components/api/test/SchedulerEdit.vue new file mode 100644 index 0000000000..f617ffb9e9 --- /dev/null +++ b/frontend/src/business/components/api/test/SchedulerEdit.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/frontend/src/business/components/common/cron/Crontab-Day.vue b/frontend/src/business/components/common/cron/Crontab-Day.vue new file mode 100644 index 0000000000..9a38a1ca95 --- /dev/null +++ b/frontend/src/business/components/common/cron/Crontab-Day.vue @@ -0,0 +1,179 @@ + + + \ No newline at end of file diff --git a/frontend/src/business/components/common/cron/Crontab-Hour.vue b/frontend/src/business/components/common/cron/Crontab-Hour.vue new file mode 100644 index 0000000000..50833fc193 --- /dev/null +++ b/frontend/src/business/components/common/cron/Crontab-Hour.vue @@ -0,0 +1,122 @@ + + + \ No newline at end of file diff --git a/frontend/src/business/components/common/cron/Crontab-Min.vue b/frontend/src/business/components/common/cron/Crontab-Min.vue new file mode 100644 index 0000000000..bd12ab5972 --- /dev/null +++ b/frontend/src/business/components/common/cron/Crontab-Min.vue @@ -0,0 +1,120 @@ + + + \ No newline at end of file diff --git a/frontend/src/business/components/common/cron/Crontab-Mouth.vue b/frontend/src/business/components/common/cron/Crontab-Mouth.vue new file mode 100644 index 0000000000..7d0e0c84ae --- /dev/null +++ b/frontend/src/business/components/common/cron/Crontab-Mouth.vue @@ -0,0 +1,128 @@ + + + \ No newline at end of file diff --git a/frontend/src/business/components/common/cron/Crontab-Result.vue b/frontend/src/business/components/common/cron/Crontab-Result.vue new file mode 100644 index 0000000000..0e75b9ee2a --- /dev/null +++ b/frontend/src/business/components/common/cron/Crontab-Result.vue @@ -0,0 +1,566 @@ + + + \ No newline at end of file diff --git a/frontend/src/business/components/common/cron/Crontab-Second.vue b/frontend/src/business/components/common/cron/Crontab-Second.vue new file mode 100644 index 0000000000..51aa26cd8d --- /dev/null +++ b/frontend/src/business/components/common/cron/Crontab-Second.vue @@ -0,0 +1,133 @@ + + + + + 秒,允许的通配符[, - * /] + + + + + + 周期从 + - + 秒 + + + + + + 从 + 秒开始,每 + 秒执行一次 + + + + + + 指定 + + {{item-1}} + + + + + + diff --git a/frontend/src/business/components/common/cron/Crontab-Week.vue b/frontend/src/business/components/common/cron/Crontab-Week.vue new file mode 100644 index 0000000000..cb4c542bad --- /dev/null +++ b/frontend/src/business/components/common/cron/Crontab-Week.vue @@ -0,0 +1,167 @@ + + + \ No newline at end of file diff --git a/frontend/src/business/components/common/cron/Crontab-Year.vue b/frontend/src/business/components/common/cron/Crontab-Year.vue new file mode 100644 index 0000000000..8cb886f76e --- /dev/null +++ b/frontend/src/business/components/common/cron/Crontab-Year.vue @@ -0,0 +1,144 @@ + + + \ No newline at end of file diff --git a/frontend/src/business/components/common/cron/Crontab.vue b/frontend/src/business/components/common/cron/Crontab.vue new file mode 100644 index 0000000000..fa0cfb475c --- /dev/null +++ b/frontend/src/business/components/common/cron/Crontab.vue @@ -0,0 +1,425 @@ + + + +