|
@@ -226,16 +226,12 @@ const delRowClick = async (row) => {
|
|
|
text: '请谨慎考虑后,确认是否需要删除?',
|
|
|
confirmText: '确认删除',
|
|
|
cancelText: '取消操作',
|
|
|
- }, (instance, resolve) => {
|
|
|
+ }, async (instance, resolve) => {
|
|
|
instance.confirmButtonLoading = true
|
|
|
instance.confirmButtonText = 'Loading...'
|
|
|
- removeProPay(row.id)
|
|
|
- setTimeout(() => {
|
|
|
- resolve() //关闭弹窗的回调
|
|
|
- setTimeout(() => {
|
|
|
- instance.confirmButtonLoading = false
|
|
|
- }, 300)
|
|
|
- }, 300)
|
|
|
+ await removeProPay(row.id)
|
|
|
+ instance.confirmButtonLoading = false
|
|
|
+ resolve()
|
|
|
})
|
|
|
}
|
|
|
const removeProPay = async (id) => {
|
|
@@ -282,16 +278,12 @@ const delCollectRow = async (row) => {
|
|
|
text: '请谨慎考虑后,确认是否需要删除?',
|
|
|
confirmText: '确认删除',
|
|
|
cancelText: '取消操作',
|
|
|
- }, (instance, resolve) => {
|
|
|
+ }, async (instance, resolve) => {
|
|
|
instance.confirmButtonLoading = true
|
|
|
instance.confirmButtonText = 'Loading...'
|
|
|
- removeCollectPay(row.id)
|
|
|
- setTimeout(() => {
|
|
|
- resolve() //关闭弹窗的回调
|
|
|
- setTimeout(() => {
|
|
|
- instance.confirmButtonLoading = false
|
|
|
- }, 300)
|
|
|
- }, 300)
|
|
|
+ await removeCollectPay(row.id)
|
|
|
+ instance.confirmButtonLoading = false
|
|
|
+ resolve()
|
|
|
})
|
|
|
}
|
|
|
const removeCollectPay = async (id) => {
|