fix(测试跟踪): 批量编辑及批量复制按钮多次点击
--bug=1024825 --user=宋昌昌 【测试跟踪】功能用例列表-批量复制-确定按钮可多次点击-发出多个请求 https://www.tapd.cn/55049933/s/1360835
This commit is contained in:
parent
4829d18400
commit
6cac62f00f
|
@ -47,7 +47,7 @@
|
|||
<template v-slot:footer>
|
||||
<el-button @click="close" size="small">{{ $t('commons.cancel') }}</el-button>
|
||||
<el-button v-prevent-re-click :type="!currentKey ? 'info' : 'primary'" @click="save"
|
||||
@keydown.enter.native.prevent size="small" :disabled="!currentKey" style="margin-left: 12px">{{ $t('commons.confirm') }}</el-button>
|
||||
@keydown.enter.native.prevent size="small" :disabled="!currentKey || btnDisable" style="margin-left: 12px">{{ $t('commons.confirm') }}</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
@ -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 = {};
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue