fix: 数据集点击过快重名

This commit is contained in:
dataeaseShu 2023-04-13 22:55:52 +08:00
parent f01543669d
commit 431f8a643d
5 changed files with 5 additions and 0 deletions

View File

@ -420,6 +420,7 @@ export default {
this.openMessageSuccess('deDataset.cannot_be_duplicate', 'error') this.openMessageSuccess('deDataset.cannot_be_duplicate', 'error')
return return
} }
if (this.loading) return
this.loading = true this.loading = true
const sceneId = this.param.id const sceneId = this.param.id
const dataSourceId = this.dataSource const dataSourceId = this.dataSource

View File

@ -439,6 +439,7 @@ export default {
this.openMessageSuccess('deDataset.cannot_be_duplicate', 'error') this.openMessageSuccess('deDataset.cannot_be_duplicate', 'error')
return return
} }
if (this.loading) return
this.loading = true this.loading = true
const sceneId = this.param.id const sceneId = this.param.id
const dataSourceId = this.dataSource const dataSourceId = this.dataSource

View File

@ -591,6 +591,7 @@ export default {
} }
this.handlerConfirm(options) this.handlerConfirm(options)
} else { } else {
if (this.loading) return
this.loading = true this.loading = true
post('/dataset/table/update', table) post('/dataset/table/update', table)
.then((response) => { .then((response) => {

View File

@ -1011,6 +1011,7 @@ export default {
return return
} }
this.parseVariable() this.parseVariable()
if (this.loading) return
this.loading = true this.loading = true
const table = { const table = {
id: this.param.tableId, id: this.param.tableId,

View File

@ -261,6 +261,7 @@ export default {
this.openMessageSuccess('dataset.char_can_not_more_50', 'error') this.openMessageSuccess('dataset.char_can_not_more_50', 'error')
return return
} }
if (this.loading) return
this.loading = true this.loading = true
const table = { const table = {
id: this.param.tableId, id: this.param.tableId,