fix: 修复key批次 兑换码新增有原数据
This commit is contained in:
parent
769d16c3a0
commit
496197b6bf
|
@ -542,10 +542,20 @@ export default class acclist extends React.Component {
|
||||||
this.setState({ rank: null });
|
this.setState({ rank: null });
|
||||||
this.setState({ rankoptions: [] });
|
this.setState({ rankoptions: [] });
|
||||||
this.setState({ drawerVisible: true });
|
this.setState({ drawerVisible: true });
|
||||||
|
if (this.state.keyType === 2) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.refs.addEditCouponEl.clearCouponForm();
|
||||||
|
});
|
||||||
|
}
|
||||||
sessionStorage.setItem("productData", "");
|
sessionStorage.setItem("productData", "");
|
||||||
sessionStorage.setItem("knockGoldData", "");
|
sessionStorage.setItem("knockGoldData", "");
|
||||||
}
|
}
|
||||||
closeDraw() {
|
closeDraw() {
|
||||||
|
if (this.state.keyType === 2) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.refs.addEditCouponEl.clearCouponForm();
|
||||||
|
});
|
||||||
|
}
|
||||||
this.setState({ drawerVisible: false });
|
this.setState({ drawerVisible: false });
|
||||||
}
|
}
|
||||||
addProduct(type) {
|
addProduct(type) {
|
||||||
|
|
|
@ -434,10 +434,20 @@ export default class acclist extends React.Component {
|
||||||
this.setState({ rank: null });
|
this.setState({ rank: null });
|
||||||
this.setState({ rankoptions: [] });
|
this.setState({ rankoptions: [] });
|
||||||
this.setState({ drawerVisible: true });
|
this.setState({ drawerVisible: true });
|
||||||
|
if (this.state.keyType === 2) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.refs.addEditCouponEl.clearCouponForm();
|
||||||
|
});
|
||||||
|
}
|
||||||
sessionStorage.setItem("productData", "");
|
sessionStorage.setItem("productData", "");
|
||||||
sessionStorage.setItem("knockGoldData", "");
|
sessionStorage.setItem("knockGoldData", "");
|
||||||
}
|
}
|
||||||
closeDraw() {
|
closeDraw() {
|
||||||
|
if (this.state.keyType === 2) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.refs.addEditCouponEl.clearCouponForm();
|
||||||
|
});
|
||||||
|
}
|
||||||
this.setState({ drawerVisible: false });
|
this.setState({ drawerVisible: false });
|
||||||
}
|
}
|
||||||
addProduct(type) {
|
addProduct(type) {
|
||||||
|
|
Loading…
Reference in New Issue