更新商品上传排位
This commit is contained in:
parent
eb9ff08a18
commit
191fa2da54
|
@ -190,4 +190,7 @@ resize: none;
|
||||||
background-color: rgba(0,0,0,0.5);
|
background-color: rgba(0,0,0,0.5);
|
||||||
z-index: 6;
|
z-index: 6;
|
||||||
|
|
||||||
|
}
|
||||||
|
.zent-image-upload-list{
|
||||||
|
width: 500px !important;
|
||||||
}
|
}
|
|
@ -903,6 +903,12 @@ export const planCancel= (id) => {
|
||||||
return req('put',baseurl + "/plan/cancel/"+id)
|
return req('put',baseurl + "/plan/cancel/"+id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//key审批
|
||||||
|
export const keyApproval =(plan_id,key_id) => {
|
||||||
|
return req('post',baseurl + "/plan/"+plan_id+"/keys/"+key_id+"/approval")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,7 @@ import Ipt from "../../../components/input/main"
|
||||||
import Form from "../../../components/form/main"
|
import Form from "../../../components/form/main"
|
||||||
import FormItem from "../../../components/form-item/main"
|
import FormItem from "../../../components/form-item/main"
|
||||||
import Grid from "../../../components/gird/main.js"
|
import Grid from "../../../components/gird/main.js"
|
||||||
import {addPlanStep,handelResponse,getPlanList,addKeysBatchInfo,getKeyBatchDetail,putKeyBatchDetail,uploadImg,postKeyEmail,getReseller,getAccessVerification
|
import {addPlanStep,handelResponse,getPlanList,addKeysBatchInfo,getKeyBatchDetail,putKeyBatchDetail,uploadImg,postKeyEmail,getReseller,getAccessVerification,keyApproval} from "../../../assets/api.js"
|
||||||
} from "../../../assets/api.js"
|
|
||||||
import Productform from "../product/add"
|
import Productform from "../product/add"
|
||||||
import Bus from "../../../assets/eventBus.js"
|
import Bus from "../../../assets/eventBus.js"
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
|
@ -547,10 +546,18 @@ export default class acclist extends React.Component{
|
||||||
addKeysBatchInfo(id,data).then((res)=>{
|
addKeysBatchInfo(id,data).then((res)=>{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
|
|
||||||
Notify.success("成功发起审批");
|
// Notify.success("成功发起审批");
|
||||||
setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
this.props.history.push('/home/key-list/');
|
// this.props.history.push('/home/key-list/');
|
||||||
},2000)
|
// },2000)
|
||||||
|
|
||||||
|
keyApproval(id,req.id).then((res)=>{
|
||||||
|
handelResponse(res,(req,msg)=>{
|
||||||
|
|
||||||
|
},(err)=>{
|
||||||
|
Notify.error(err);
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
},(err)=>{
|
},(err)=>{
|
||||||
Notify.error(err);
|
Notify.error(err);
|
||||||
|
|
|
@ -30,7 +30,6 @@ export default class acclist extends React.Component{
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount(e){
|
componentDidMount(e){
|
||||||
|
|
||||||
this.getThemeData();
|
this.getThemeData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,13 +38,12 @@ export default class acclist extends React.Component{
|
||||||
let params = {}
|
let params = {}
|
||||||
if(sessionStorage.getItem("white") == 1)
|
if(sessionStorage.getItem("white") == 1)
|
||||||
{
|
{
|
||||||
params.page = 1
|
params.page = 1
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
params.page = 3
|
params.page = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
getThemeChoice(params).then((res)=>{
|
getThemeChoice(params).then((res)=>{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
|
|
Loading…
Reference in New Issue