From 7f980187838d84a075df1954d2f3157e15003d9c Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 3 Sep 2021 13:50:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20--bug=3D1006049=20--user=3D=E9=99=88?= =?UTF-8?q?=E5=BB=BA=E6=98=9F=20=E3=80=90github#5495=E3=80=91=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=B7=9F=E8=B8=AA-=E6=B5=8B=E8=AF=95=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E8=AE=BE=E7=BD=AE=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=87=BA=E9=94=99=20https://www.tapd.cn/55049933/s/1043443?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/schedule/ScheduleMaintain.vue | 7 ++++++- .../api/definition/components/import/ApiSchedule.vue | 7 ++++++- .../definition/components/import/ImportScheduleEdit.vue | 7 ++++++- .../components/common/components/MsScheduleEdit.vue | 7 ++++++- .../src/business/components/common/cron/CrontabWeek.vue | 5 +++-- 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue b/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue index 503fbfb4f6..489c30b404 100644 --- a/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue +++ b/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue @@ -228,7 +228,12 @@ export default { this.$refs['from'].validate(); }, showCronDialog() { - this.showCron = true; + let tmp = this.schedule.value; + this.schedule.value = ''; + this.$nextTick(() => { + this.schedule.value = tmp; + this.showCron = true; + }); }, saveCron() { this.$refs['from'].validate((valid) => { diff --git a/frontend/src/business/components/api/definition/components/import/ApiSchedule.vue b/frontend/src/business/components/api/definition/components/import/ApiSchedule.vue index 09aefde90d..75c16877db 100644 --- a/frontend/src/business/components/api/definition/components/import/ApiSchedule.vue +++ b/frontend/src/business/components/api/definition/components/import/ApiSchedule.vue @@ -226,7 +226,12 @@ export default { this.$refs['form'].validate(); }, showCronDialog() { - this.showCron = true; + let tmp = this.schedule.value; + this.schedule.value = ''; + this.$nextTick(() => { + this.schedule.value = tmp; + this.showCron = true; + }); }, saveCron() { this.$refs['form'].validate((valid) => { diff --git a/frontend/src/business/components/api/definition/components/import/ImportScheduleEdit.vue b/frontend/src/business/components/api/definition/components/import/ImportScheduleEdit.vue index a138cdf0dc..7ebb18d9f2 100644 --- a/frontend/src/business/components/api/definition/components/import/ImportScheduleEdit.vue +++ b/frontend/src/business/components/api/definition/components/import/ImportScheduleEdit.vue @@ -153,7 +153,12 @@ export default { this.$refs['from'].validate(); }, showCronDialog() { - this.showCron = true; + let tmp = this.schedule.value; + this.schedule.value = ''; + this.$nextTick(() => { + this.schedule.value = tmp; + this.showCron = true; + }); }, saveCron() { this.$refs['from'].validate((valid) => { diff --git a/frontend/src/business/components/common/components/MsScheduleEdit.vue b/frontend/src/business/components/common/components/MsScheduleEdit.vue index ecbd862186..8e995ccf21 100644 --- a/frontend/src/business/components/common/components/MsScheduleEdit.vue +++ b/frontend/src/business/components/common/components/MsScheduleEdit.vue @@ -147,7 +147,12 @@ export default { this.$refs['from'].validate(); }, showCronDialog() { - this.showCron = true; + let tmp = this.schedule.value; + this.schedule.value = ''; + this.$nextTick(() => { + this.schedule.value = tmp; + this.showCron = true; + }); }, saveCron() { this.$refs['from'].validate((valid) => { diff --git a/frontend/src/business/components/common/cron/CrontabWeek.vue b/frontend/src/business/components/common/cron/CrontabWeek.vue index 72ad1b3aa2..7d53b5d4ab 100644 --- a/frontend/src/business/components/common/cron/CrontabWeek.vue +++ b/frontend/src/business/components/common/cron/CrontabWeek.vue @@ -58,13 +58,14 @@ export default { average01: 1, average02: 1, checkboxList: [], - weekList: [this.$t('commons.weeks_1'), + weekList: [ + this.$t('commons.weeks_0'), + this.$t('commons.weeks_1'), this.$t('commons.weeks_2'), this.$t('commons.weeks_3'), this.$t('commons.weeks_4'), this.$t('commons.weeks_5'), this.$t('commons.weeks_6'), - this.$t('commons.weeks_0'), ], checkNum: this.$options.propsData.check }