From 6cac62f00f3ef27c5f5ba91985161a6195535d94 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 10 Apr 2023 15:49:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E7=BC=96=E8=BE=91=E5=8F=8A=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E6=8C=89=E9=92=AE=E5=A4=9A=E6=AC=A1=E7=82=B9?= =?UTF-8?q?=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024825 --user=宋昌昌 【测试跟踪】功能用例列表-批量复制-确定按钮可多次点击-发出多个请求 https://www.tapd.cn/55049933/s/1360835 --- .../frontend/src/business/case/components/BatchMove.vue | 7 +++++-- .../frontend/src/business/case/components/TestCaseList.vue | 1 + .../business/case/components/public/PublicTestCaseList.vue | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test-track/frontend/src/business/case/components/BatchMove.vue b/test-track/frontend/src/business/case/components/BatchMove.vue index b980546a4c..6074040dab 100644 --- a/test-track/frontend/src/business/case/components/BatchMove.vue +++ b/test-track/frontend/src/business/case/components/BatchMove.vue @@ -47,7 +47,7 @@ @@ -74,7 +74,8 @@ export default { result: {}, isMoveBatch: false, selectNum: 0, - contentTitle:"" + contentTitle:"", + btnDisable: false } }, props: { @@ -100,8 +101,10 @@ export default { this.contentTitle = this.$t(this.isMoveBatch ? 'test_track.case.batch_move_to' : 'test_track.case.batch_copy_to', [this.moveCaseTitle, this.selectNum]); }, save() { + this.btnDisable = true; if (!this.currentKey) { this.$warning(this.$t('test_track.case.input_module'), false); + this.btnDisable = false; return; } let param = {}; diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index 44c76ee19f..7985abaaae 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -1192,6 +1192,7 @@ export default { this.loading = true; func(param) .then(() => { + this.$refs.testBatchMove.btnDisable = false; this.$success(this.$t('commons.save_success'), false); this.$refs.testBatchMove.close(); this.refresh(); diff --git a/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue b/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue index 6a59235927..090bc77629 100644 --- a/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue +++ b/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue @@ -596,6 +596,7 @@ export default { testCasePublicBatchCopy(param) .then(() => { this.loading = false; + this.$refs.testBatchMove.btnDisable = false; this.$success(this.$t('commons.save_success'), false); this.$refs.testBatchMove.close(); this.refresh();