From a136830e0d275630eb756cf4d17dac9925ec9037 Mon Sep 17 00:00:00 2001 From: Wind-58 Date: Wed, 7 Sep 2022 17:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91=E5=85=91?= =?UTF-8?q?=E6=8D=A2=E7=A0=81=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/exchangecodeAdd/index.jsx | 6 +++--- src/pages/exchangecode/list/list.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/exchangecode/exchangecodeAdd/index.jsx b/src/pages/exchangecode/exchangecodeAdd/index.jsx index f5f9fe18..d1e8b4c4 100644 --- a/src/pages/exchangecode/exchangecodeAdd/index.jsx +++ b/src/pages/exchangecode/exchangecodeAdd/index.jsx @@ -57,7 +57,7 @@ export default class exchangeAdd extends React.Component { /* 编辑和复制时才调用 */ if (isState) { - this.getDetailFunction() + this.getDetailFunction(isState) } else { sessionStorage.setItem("productData", []) sessionStorage.setItem("knockGoldData", []) @@ -120,11 +120,11 @@ export default class exchangeAdd extends React.Component { } /* 编辑处理数据 */ - getDetailFunction() { + getDetailFunction(isState) { let approval_id = sessionStorage.getItem("approval_id") let approval_status = sessionStorage.getItem("approval_status") /* 判断是否是在审批中、状态是否时编辑 */ - if (Number(approval_id) > 0 && this.state.isState === 2) { + if (Number(approval_id) > 0 && isState === 2) { //此处为审核中 getApprovalsInfo(approval_id) .then((res) => { diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index f72d66dd..fb30ea3d 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -178,7 +178,7 @@ export default class acclist extends React.Component { } else if (type === 2) { activerou[0].pagetitle = "编辑" activerou[0].items[1].name = `编辑:${param.title}兑换码的商品范围列表` - sessionStorage.setItem("approval_id", param.keyBatch.approval_id) + sessionStorage.setItem("approval_id", param.approval_id) sessionStorage.setItem("approval_status", param.status) }