批量检测完成时提示

This commit is contained in:
buvta
2020-12-15 15:35:42 +08:00
parent ab3a6e1fd2
commit d0f6282b81
2 changed files with 4 additions and 0 deletions

View File

@@ -472,6 +472,7 @@ export default {
})
},
async checkAllSite () {
if (this.checkAllSitesLoading) return
this.checkAllSitesLoading = true
this.stopFlag = false
this.checkProgress = 0
@@ -481,6 +482,7 @@ export default {
await Promise.all(other.map(site => this.checkSingleSite(site))).then(res => {
this.checkAllSitesLoading = false
this.getSites()
if (!this.stopFlag) this.$message.success('视频点播源站批量检测已完成!')
})
},
async checkSingleSite (row) {

View File

@@ -560,6 +560,7 @@ export default {
}
},
async checkAllChannels () {
if (this.checkAllChannelsLoading) return
this.checkAllChannelsLoading = true
this.stopFlag = false
this.checkProgress = 0
@@ -570,6 +571,7 @@ export default {
await this.checkChannelsBySite(other).then(res => {
this.checkAllChannelsLoading = false
this.getChannelList()
if (!this.stopFlag) this.$message.success('直播频道批量检测已完成!')
})
},
async checkChannelsBySite (channels) {