fix(UI): 场景列表批量移动多次点击可发出多个相同请求
--bug=1023857 --user=李玉号 【UI测试】场景列表-批量复制/移动-多次点击可发出多个相同请求 https://www.tapd.cn/55049933/s/1343973
This commit is contained in:
parent
60a4f7db23
commit
d1452842fd
|
@ -30,9 +30,12 @@
|
|||
</el-tree>
|
||||
</div>
|
||||
<template v-slot:footer>
|
||||
<ms-dialog-footer
|
||||
@cancel="close"
|
||||
@confirm="save"/>
|
||||
<div class="dialog-footer" v-loading="result.loading">
|
||||
<el-button @click="close">{{ $t('ui.close_dialog') }}</el-button>
|
||||
<el-button v-prevent-re-click type="primary" @click="save" :disabled="disabled" @keydown.enter.native.prevent>
|
||||
{{ $t('commons.confirm') }}
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
@ -56,8 +59,12 @@
|
|||
moduleOptions: [],
|
||||
filterText: "",
|
||||
result: {},
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.disabled = false;
|
||||
},
|
||||
props: {
|
||||
publicEnable: {
|
||||
type: Boolean,
|
||||
|
@ -76,6 +83,9 @@
|
|||
this.selectIds = selectIds;
|
||||
this.moduleOptions = moduleOptions;
|
||||
},
|
||||
disableButton(){
|
||||
this.disabled = !this.disabled;
|
||||
},
|
||||
save() {
|
||||
if (!this.currentKey) {
|
||||
this.$warning(this.$t('test_track.case.input_module'));
|
||||
|
|
Loading…
Reference in New Issue