This commit is contained in:
姜棚 2021-12-10 16:36:09 +08:00
parent cc05c64733
commit 74b622108a
3 changed files with 8 additions and 2 deletions

View File

@ -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: 未登录

View File

@ -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;
}
},

View File

@ -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 150604',plan:'营销计划2',belongid:3123213,send:100,record:58,used:41,dead:11,fail:12,status:'1'}],