This commit is contained in:
zhangds 2022-09-07 18:18:03 +08:00
commit 76d5fbd79f
2 changed files with 4 additions and 4 deletions

View File

@ -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) => {

View File

@ -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)
}