清除定时器
This commit is contained in:
parent
db279e7a13
commit
9d2318d68f
|
@ -341,6 +341,10 @@
|
||||||
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
||||||
self.popMsg = self.goods.send_status === 2 || self.goods.send_status === 3 || self.goods.send_status === 4 ? true : false;
|
self.popMsg = self.goods.send_status === 2 || self.goods.send_status === 3 || self.goods.send_status === 4 ? true : false;
|
||||||
|
|
||||||
|
if (self.goods.send_status === 2 || self.goods.send_status === 3) {
|
||||||
|
clearInterval(self.timeGet);
|
||||||
|
self.timeGet = null;
|
||||||
|
}
|
||||||
// 部分失败
|
// 部分失败
|
||||||
if (self.goods.send_status === 4) {
|
if (self.goods.send_status === 4) {
|
||||||
let all_product_voucher = [];
|
let all_product_voucher = [];
|
||||||
|
@ -351,6 +355,8 @@
|
||||||
let is_err_length = all_product_voucher.filter(item => item.status === 9).length;
|
let is_err_length = all_product_voucher.filter(item => item.status === 9).length;
|
||||||
self.isOKLength = all_product_voucher.length - is_err_length;
|
self.isOKLength = all_product_voucher.length - is_err_length;
|
||||||
self.isErrLength = is_err_length;
|
self.isErrLength = is_err_length;
|
||||||
|
clearInterval(self.timeGet);
|
||||||
|
self.timeGet = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1.发放中 轮循
|
// 1.发放中 轮循
|
||||||
|
|
|
@ -341,6 +341,10 @@
|
||||||
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
||||||
self.popMsg = self.goods.send_status === 2 || self.goods.send_status === 3 || self.goods.send_status === 4 ? true : false;
|
self.popMsg = self.goods.send_status === 2 || self.goods.send_status === 3 || self.goods.send_status === 4 ? true : false;
|
||||||
|
|
||||||
|
if (self.goods.send_status === 2 || self.goods.send_status === 3) {
|
||||||
|
clearInterval(self.timeGet);
|
||||||
|
self.timeGet = null;
|
||||||
|
}
|
||||||
// 部分失败
|
// 部分失败
|
||||||
if (self.goods.send_status === 4) {
|
if (self.goods.send_status === 4) {
|
||||||
let all_product_voucher = [];
|
let all_product_voucher = [];
|
||||||
|
@ -351,6 +355,8 @@
|
||||||
let is_err_length = all_product_voucher.filter(item => item.status === 9).length;
|
let is_err_length = all_product_voucher.filter(item => item.status === 9).length;
|
||||||
self.isOKLength = all_product_voucher.length - is_err_length;
|
self.isOKLength = all_product_voucher.length - is_err_length;
|
||||||
self.isErrLength = is_err_length;
|
self.isErrLength = is_err_length;
|
||||||
|
clearInterval(self.timeGet);
|
||||||
|
self.timeGet = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1.发放中 轮循
|
// 1.发放中 轮循
|
||||||
|
|
|
@ -340,6 +340,10 @@
|
||||||
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
||||||
self.popMsg = self.goods.send_status === 2 || self.goods.send_status === 3 || self.goods.send_status === 4 ? true : false;
|
self.popMsg = self.goods.send_status === 2 || self.goods.send_status === 3 || self.goods.send_status === 4 ? true : false;
|
||||||
|
|
||||||
|
if (self.goods.send_status === 2 || self.goods.send_status === 3) {
|
||||||
|
clearInterval(self.timeGet);
|
||||||
|
self.timeGet = null;
|
||||||
|
}
|
||||||
// 部分失败
|
// 部分失败
|
||||||
if (self.goods.send_status === 4) {
|
if (self.goods.send_status === 4) {
|
||||||
let all_product_voucher = [];
|
let all_product_voucher = [];
|
||||||
|
@ -350,6 +354,8 @@
|
||||||
let is_err_length = all_product_voucher.filter(item => item.status === 9).length;
|
let is_err_length = all_product_voucher.filter(item => item.status === 9).length;
|
||||||
self.isOKLength = all_product_voucher.length - is_err_length;
|
self.isOKLength = all_product_voucher.length - is_err_length;
|
||||||
self.isErrLength = is_err_length;
|
self.isErrLength = is_err_length;
|
||||||
|
clearInterval(self.timeGet);
|
||||||
|
self.timeGet = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1.发放中 轮循
|
// 1.发放中 轮循
|
||||||
|
|
Loading…
Reference in New Issue