|
|
@@ -538,12 +538,14 @@ export default {
|
|
|
this.$message.error('请选要下载项')
|
|
|
return false
|
|
|
}
|
|
|
- this.selectedData.forEach((item,idx,arr) => {
|
|
|
- if(Number(item.status) != 1 && Number(item.status)!=5){
|
|
|
- setTimeout(() => {
|
|
|
- that.down({id:item.id})
|
|
|
- }, 3000*idx);
|
|
|
- }
|
|
|
+ this.$confirm('确认下载?确认后请稍等30秒', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
|
|
|
+ this.selectedData.forEach((item,idx,arr) => {
|
|
|
+ if(Number(item.status) != 1 && Number(item.status)!=5){
|
|
|
+ setTimeout(() => {
|
|
|
+ that.down({id:item.id})
|
|
|
+ }, 2000*idx);
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
getKdStaff(e){
|
|
|
@@ -557,14 +559,19 @@ export default {
|
|
|
this.$message.error('请选要下载项')
|
|
|
return false
|
|
|
}
|
|
|
- this.selectedData.forEach((item,idx,arr) => {
|
|
|
- if(Number(item.status) != 1 && Number(item.status)!=5){
|
|
|
- if(Number(item.sameTimeIdsNum)>1){
|
|
|
- setTimeout(() => {
|
|
|
- that.allDown({id:item.id})
|
|
|
- }, 3000*idx);
|
|
|
+
|
|
|
+ this.$confirm('确认下载?确认后请稍等30秒', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
|
|
|
+
|
|
|
+ this.selectedData.forEach((item,idx,arr) => {
|
|
|
+ if(Number(item.status) != 1 && Number(item.status)!=5){
|
|
|
+ if(Number(item.sameTimeIdsNum)>1){
|
|
|
+ setTimeout(() => {
|
|
|
+ that.allDown({id:item.id})
|
|
|
+ }, 2000*idx);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ })
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
},
|