From 7bc67bb3e6ff6e57b2dedb53b747869ce0a3bc41 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Wed, 24 Nov 2021 20:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=90=AF=E7=94=A8=E5=81=9C?= =?UTF-8?q?=E7=94=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/list/list.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index a93a25e3..16668bed 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -33,9 +33,9 @@ const Column = [ }, { title: '营销计划归属', - name: 'plan', + name: 'plan_title', type: "normal", - prop:'plan', + prop:'plan_title', width:'90px' }, { @@ -227,12 +227,13 @@ export default class acclist extends React.Component{ type:'warning', closeBtn:true, title:'确认操作', - content:
是否{row.status==0?'启用':'停用'}该兑换码批次?
, + content:是否{row.status==1?'停用':'启用'}该兑换码批次?
, onConfirm:()=>{ - putCodeStatus(row.id,{'operation':1}).then(res=>{ + putCodeStatus(row.id,{'operation':row.status==1?'2':'1'}).then(res=>{ handelResponse(res,(response,msg)=>{ Notify.clear(); Notify.success(msg); + self.getCodeListFn(); },(err)=>{ }) @@ -369,7 +370,7 @@ componentDidUpdate(prevProps,prevState){ } if(com == "switch") { - return