From b1154b653393766e6c015221866c52dbdda95206 Mon Sep 17 00:00:00 2001 From: zhangds Date: Sun, 9 Oct 2022 15:22:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E4=BC=98=E6=83=A0=E5=88=B8=E4=B8=8D=E5=8B=BE?= =?UTF-8?q?=E9=80=89=E4=B8=8D=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/key/edit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index d31c1d3c..666c610f 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -1030,7 +1030,9 @@ export default class acclist extends React.Component { // 如果是创建中的状态走新增接口 key_status 1 console.log("this.state.key_status =>", this.state.key_status); if (this.state.key_status === 1) { - let coupon_data = this.state.couponData.filter((item) => !item.id); + let coupon_data = this.state.couponData.filter( + (item) => item.checked === true && !item.id + ); let create_param = { batch_name: this.state.model.batch_name, style: this.state.model.style,