From e07bd91c7aab5c578f3361dce8d4d4c3dec8d6d0 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 28 Jul 2022 14:20:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E6=8F=90=E9=86=92=E5=BC=B9=E6=A1=86=E4=BF=A1=E6=81=AF=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015400 --user=陈建星 【所有模块】删除功能二次提醒弹框信息优化 https://www.tapd.cn/55049933/s/1214477 --- .../automation/schedule/ScheduleMaintain.vue | 25 ------ .../components/import/SwaggerTaskList.vue | 22 +----- .../definition/components/mock/MockConfig.vue | 10 +-- .../definition/components/mock/MockTab.vue | 9 +-- .../components/mock/TcpMockConfig.vue | 10 +-- .../components/ApiRunningTaskList.vue | 9 +-- .../homepage/components/RunningTaskList.vue | 9 +-- .../report/PerformanceReportView.vue | 9 +-- .../test/components/ExistFiles.vue | 10 +-- .../test/components/ResourceFiles.vue | 10 +-- .../components/project/menu/EditProject.vue | 13 +-- .../project/menu/EnvironmentList.vue | 12 +-- .../components/project/menu/Member.vue | 10 +-- .../project/menu/file/ResourceManage.vue | 10 +-- .../components/settings/personal/ApiKeys.vue | 11 +-- .../settings/plugin/PluginConfig.vue | 12 +-- .../settings/system/SystemWorkspace.vue | 21 +---- .../settings/system/TestResourcePool.vue | 19 +---- .../components/settings/system/User.vue | 17 ++-- .../settings/system/group/GroupMember.vue | 10 +-- .../settings/workspace/MsProject.vue | 21 +---- .../settings/workspace/WorkspaceMember.vue | 10 +-- .../workspace/environment/EnvironmentList.vue | 10 +-- .../track/case/components/TestCaseList.vue | 79 +++++++------------ .../track/home/components/RunningTaskList.vue | 9 +-- .../plan/components/ScheduleMaintain.vue | 25 ------ .../track/plan/components/TestPlanList.vue | 13 ++- .../comonents/load/LoadCaseReportView.vue | 9 --- frontend/src/common/js/utils.js | 19 +++++ 29 files changed, 111 insertions(+), 342 deletions(-) diff --git a/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue b/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue index b942d38071..b6e541d263 100644 --- a/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue +++ b/frontend/src/business/components/api/automation/schedule/ScheduleMaintain.vue @@ -250,31 +250,6 @@ export default { this.resourcePools = response.data; }); }, - scheduleChange() { - let flag = this.schedule.enable; - let param = {}; - param.taskID = this.schedule.id; - param.enable = flag; - let that = this; - if (flag == false) { - this.$confirm(this.$t('api_test.home_page.running_task_list.confirm.close_title'), this.$t('commons.prompt'), { - confirmButtonText: this.$t('commons.confirm'), - cancelButtonText: this.$t('commons.cancel'), - type: 'warning', - beforeClose(action, instance, done) { - if (action == 'cancel') { // 否则在 messageBox 点击取消后,switch 按钮仍然会被关闭 - that.schedule.enable = param.enable = true; - } - done(); // done 是关闭 messageBox 的行为 - }, - }).then(() => { - this.updateTask(param); - }).catch(() => { - }); - } else { - this.updateTask(param); - } - }, updateTask(param) { this.result = this.$post('/api/schedule/updateEnableByPrimyKey', param, response => { let paramTestId = ""; diff --git a/frontend/src/business/components/api/definition/components/import/SwaggerTaskList.vue b/frontend/src/business/components/api/definition/components/import/SwaggerTaskList.vue index 41401c28ac..023ccbc2c4 100644 --- a/frontend/src/business/components/api/definition/components/import/SwaggerTaskList.vue +++ b/frontend/src/business/components/api/definition/components/import/SwaggerTaskList.vue @@ -10,8 +10,6 @@ width="60" :label="$t('api_test.home_page.running_task_list.table_coloum.index')" show-overflow-tooltip/> - -