|
|
@ -1,6 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="page-box" v-loading="Loading.appMainLoading"> |
|
|
|
<tablePagination |
|
|
|
ref="pageTable" |
|
|
|
:currenButtonData="currenButtonData" |
|
|
|
:tableData="tableData" |
|
|
|
:tableLoading="Loading.tableLoading" |
|
|
@ -71,8 +72,21 @@ |
|
|
|
topbuttonHandle(val,item){ |
|
|
|
if(val == 'resend'){ |
|
|
|
if(this.selectData && this.selectData.length > 0){ |
|
|
|
this.Loading.appMainLoading = true |
|
|
|
this.resendHandle(0) |
|
|
|
let _numbers = '' |
|
|
|
this.selectData.forEach(item=>{ |
|
|
|
_numbers += item.id + ',<br/>' |
|
|
|
}) |
|
|
|
this.$confirm(`已选${this.selectData.length}条数据,是否确定重发? 重发数据id为:<br/>${_numbers}`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
distinguishCancelAndClose: true, |
|
|
|
closeOnClickModal: false, |
|
|
|
type: 'warning', |
|
|
|
dangerouslyUseHTMLString: true |
|
|
|
}).then(() => { |
|
|
|
this.Loading.appMainLoading = true |
|
|
|
this.resendHandle(0) |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
this.$warningMsg('请选择数据') |
|
|
|
} |
|
|
@ -85,6 +99,7 @@ |
|
|
|
if(index >= this.selectData.length){ |
|
|
|
this.Loading.appMainLoading = false |
|
|
|
this.$successMsg("全部数据(共"+ this.selectData.length +"条)重发成功!") |
|
|
|
this.$refs.pageTable.clearSelection(); |
|
|
|
return |
|
|
|
} |
|
|
|
let _resultBack = await this.resendApiHandle(this.selectData[index].id) |
|
|
|