diff --git a/src/assets/api.js b/src/assets/api.js index 1c62f2c7..fe862257 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -32,6 +32,7 @@ const upload = (method, url, params, responseType) => { } let http = fetch(url, obj).then(res =>{ if(res.status==200){ + return res.json() }else{ switch (res.status) { @@ -155,7 +156,12 @@ const req = (method, url, params, responseType) => { let http = fetch(url, obj).then(res =>{ window.timeshow=res.headers.get('Date-Time'); if(res.status==200){ + + console.log("当前返回",res.body) + + return res.json() + }else{ switch (res.status) { // 401: 未登录 diff --git a/src/assets/enum.js b/src/assets/enum.js index 3d0e33af..63eff9d2 100644 --- a/src/assets/enum.js +++ b/src/assets/enum.js @@ -82,7 +82,7 @@ const menu={ case 2:return '审核中';break; case 4:return '生效中';break; case 5:return '已暂停';break; - case 6:return '已失效';break; + case 6:return '已完结';break; case 7:return '已作废';break; } }, diff --git a/src/pages/plan/key/list.js b/src/pages/plan/key/list.js index 2c534cdd..834c74eb 100644 --- a/src/pages/plan/key/list.js +++ b/src/pages/plan/key/list.js @@ -115,7 +115,7 @@ export default class acclist extends React.Component{ dataCount:0, page:1, limit:10, - tabList:[{title:"全部"},{title:"创建中"},{title:"审核中"},{title:"生效中"},{title:"暂停中"},{title:"失效中"},{title:"已作废"}], + tabList:[{title:"全部"},{title:"创建中"},{title:"审核中"},{title:"生效中"},{title:"暂停中"},{title:"已完结"},{title:"已作废"}], distdata:[], combinedValue:[], distdata2:[{id:12313123213123,name:'爱奇艺月卡兑换券',time:'2021-11-08 14:21:06至2021-11-08 15:06:04',plan:'营销计划2',belongid:3123213,send:100,record:58,used:41,dead:11,fail:12,status:'1'}],