From c0d4cf3bfb5bf7ca5498d23a9bff9fc5fe123749 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Fri, 12 Aug 2022 18:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/add/add.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index de7797b2..de304d33 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -125,7 +125,7 @@ export default class acclist extends React.Component { newGoldLoading: false, product_title: '新建商品', addIsType: '', - keyCodeId:'',//key批次ID + keyCodeId: '' //key批次ID } } @@ -388,7 +388,7 @@ export default class acclist extends React.Component { default: return } - this.setState({ drawerVisible: false }) + this.setState({ drawerVisible: false, rowIndex: -1 }) this.state.codeInfo = { //数据模型不可少 code_name: '', @@ -538,7 +538,7 @@ export default class acclist extends React.Component { return newObj }) } - let newArray = deWeightThree(temp.concat(concatData), 'only') + let newArray = deWeightThree(temp.concat(concatData)) //select数据 let arr = [] @@ -635,7 +635,6 @@ export default class acclist extends React.Component { return obj }) temp.product = arr - if (this.state.rowIndex > -1) { this.state.distdata[this.state.rowIndex] = temp this.setState({ distdata: this.state.distdata }) @@ -745,7 +744,7 @@ export default class acclist extends React.Component { this.setState({ audit_visible: false }) let id = sessionStorage.getItem('key_plan_id') - data.copy_key_batch_id=this.state.keyCodeId; + data.copy_key_batch_id = this.state.keyCodeId addKeysBatchInfo(id, data).then((res) => { handelResponse( res,