From 5a12649d1ab8d6d8cf8d32bb9a0670d2d96bf9bc Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 12 Apr 2022 20:08:04 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8=E5=8C=96=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../automation/schedule/ScheduleMaintain.vue | 70 +++++-------------- .../common/components/MsScheduleEdit.vue | 54 +++++++++----- .../plan/components/ScheduleMaintain.vue | 58 +-------------- frontend/src/business/components/xpack | 2 +- frontend/src/i18n/en-US.js | 6 +- frontend/src/i18n/zh-CN.js | 2 +- frontend/src/i18n/zh-TW.js | 6 +- 7 files changed, 64 insertions(+), 134 deletions(-) diff --git a/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue b/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue index ea0c4e7fc7..723d4d6a67 100644 --- a/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue +++ b/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue @@ -49,7 +49,7 @@ -
- {{ $t("run_mode.title") }}: - - {{ $t("run_mode.serial") }} - {{ $t("run_mode.parallel") }} - -
- - {{ $t("run_mode.other_config") }}: - - -
- - {{ $t("run_mode.idd_report") }} - {{ $t("run_mode.set_report") }} - -
-
- - {{ $t('run_mode.run_with_resource_pool') }} - - - - - -
- -
- - {{ $t("api_test.fail_to_stop") }} - -
-
-
+ + {{ $t('run_mode.run_with_resource_pool') }} + + + + +
-
- {{ $t("run_mode.report_name") }}: - -
-
+ +
+
1
+
+ {{ $t('schedule.edit_timer_task') }} + + + + + + + {{ $t('schedule.generate_expression') }} + + + + {{ this.$t('commons.schedule_switch') }} + + + + + + {{ + $t('commons.save') + }} + + + - - - - - - {{ - $t('commons.save') - }} - - - - - {{ $t('schedule.generate_expression') }} - @@ -219,4 +233,12 @@ export default { margin-bottom: 10px; } +.head { + border-bottom: 1px solid #7C3985; + color: #7C3985; + font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif; + font-size: 13px; + cursor: pointer; +} + diff --git a/frontend/src/business/components/track/plan/components/ScheduleMaintain.vue b/frontend/src/business/components/track/plan/components/ScheduleMaintain.vue index 0632381739..ce8a2cda93 100644 --- a/frontend/src/business/components/track/plan/components/ScheduleMaintain.vue +++ b/frontend/src/business/components/track/plan/components/ScheduleMaintain.vue @@ -46,20 +46,7 @@
2
{{ $t('load_test.runtime_config') }} -
- {{ $t("commons.environment") }}: - -
-
+
{{ $t("run_mode.title") }}: {{ $t("run_mode.serial") }} @@ -145,7 +132,6 @@ import CrontabResult from "@/business/components/common/cron/CrontabResult"; import {cronValidate} from "@/common/js/cron"; import MsScheduleNotification from "./ScheduleNotification"; import ScheduleSwitch from "@/business/components/api/automation/schedule/ScheduleSwitch"; -import EnvPopover from "@/business/components/api/automation/scenario/EnvPopover"; import {ENV_TYPE} from "@/common/js/constants"; function defaultCustomValidate() { @@ -164,7 +150,6 @@ export default { Crontab, MsScheduleNotification, "NoticeTemplate": noticeTemplate.default, - EnvPopover }, props: { @@ -234,8 +219,6 @@ export default { onSampleError: false, runWithinResourcePool: false, resourcePoolId: null, - envMap: new Map, - environmentGroupId: "", environmentType: ENV_TYPE.JSON }, projectList: [], @@ -319,7 +302,6 @@ export default { listenGoBack(this.close); this.activeName = 'first'; this.getResourcePools(); - this.getWsProjects(); this.runConfig.environmentType = ENV_TYPE.JSON; }, findSchedule() { @@ -330,9 +312,6 @@ export default { this.schedule = response.data; if (response.data.config) { this.runConfig = JSON.parse(response.data.config); - if (this.runConfig.envMap) { - this.runConfig.envMap = objToStrMap(this.runConfig.envMap); - } } } else { this.schedule = { @@ -457,41 +436,6 @@ export default { this.runConfig.runWithinResourcePool = false; this.runConfig.resourcePoolId = null; }, - setProjectEnvMap(projectEnvMap) { - this.runConfig.envMap = strMapToObj(projectEnvMap); - }, - setEnvGroup(id) { - this.runConfig.environmentGroupId = id; - }, - getWsProjects() { - this.$get("/project/getOwnerProjects", res => { - this.projectList = res.data; - }) - }, - showPopover() { - this.projectIds.clear(); - let param = undefined; - let url = ""; - if (this.type === 'apiCase') { - url = '/test/plan/api/case/env'; - param = this.planCaseIds; - } else if (this.type === 'apiScenario') { - url = '/test/plan/api/scenario/env'; - param = this.planCaseIds; - } else if (this.type === 'plan') { - url = '/test/plan/case/env'; - param = {id: this.planId}; - } - this.$post(url, param, res => { - let data = res.data; - if (data) { - for (let d in data) { - this.projectIds.add(d); - } - } - this.$refs.envPopover.openEnvSelect(); - }); - } }, computed: { isTesterPermission() { diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 8ee1df272a..813801b0e6 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 8ee1df272a1ba3ca6e8ab2ceca227cf1899ccce9 +Subproject commit 813801b0e68463394c67779853529a7da1c7fa22 diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 7e0a5db422..d5472d9c6d 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -36,7 +36,7 @@ export default { close_schedule: 'Close Schedule', open_schedule: 'Start Schedule', schedule_switch: 'Schedule Switch', - schedule_cron_title: 'Schedule Time Expression', + schedule_cron_title: 'Cron Expression', review_complete: 'Review Completed', examples: 'examples', help_documentation: 'Help', @@ -45,8 +45,8 @@ export default { delete_cancelled: 'Delete cancelled', option_cannot_spread_pages: 'This options not support spread pages.Do you want continue?', workspace: 'Workspace', - space:'Space', - current_workspace:"Current Workspace", + space: 'Space', + current_workspace: "Current Workspace", organization: 'Organization', setting: 'Setting', project: 'Project', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 5598c12393..f51cdd3316 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -36,7 +36,7 @@ export default { close_schedule: '关闭定时任务', open_schedule: '开启定时任务', schedule_switch: '定时任务开关', - schedule_cron_title: '定时任务时间表达式', + schedule_cron_title: 'Cron表达式', review_complete: '评审完成', examples: '示例', help_documentation: '帮助文档', diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 1831ac2d2d..9cfb309a62 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -36,7 +36,7 @@ export default { close_schedule: '關閉定時任務', open_schedule: '開啟定時任務', schedule_switch: '定時任務開關', - schedule_cron_title: '定時任務時間運算式', + schedule_cron_title: 'Cron運算式', review_complete: '評審完成', examples: '示例', help_documentation: '幫助文檔', @@ -44,8 +44,8 @@ export default { confirm_delete: '是否刪除', delete_cancelled: '已取消刪除', workspace: '工作空間', - space:'空間', - current_workspace:"當前工作空間", + space: '空間', + current_workspace: "當前工作空間", organization: '組織', setting: '設置', project: '項目',