更新商品上传排位
This commit is contained in:
parent
eb9ff08a18
commit
191fa2da54
|
@ -191,3 +191,6 @@ resize: none;
|
|||
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)
|
||||
}
|
||||
|
||||
//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 FormItem from "../../../components/form-item/main"
|
||||
import Grid from "../../../components/gird/main.js"
|
||||
import {addPlanStep,handelResponse,getPlanList,addKeysBatchInfo,getKeyBatchDetail,putKeyBatchDetail,uploadImg,postKeyEmail,getReseller,getAccessVerification
|
||||
} from "../../../assets/api.js"
|
||||
import {addPlanStep,handelResponse,getPlanList,addKeysBatchInfo,getKeyBatchDetail,putKeyBatchDetail,uploadImg,postKeyEmail,getReseller,getAccessVerification,keyApproval} from "../../../assets/api.js"
|
||||
import Productform from "../product/add"
|
||||
import Bus from "../../../assets/eventBus.js"
|
||||
import _ from "lodash";
|
||||
|
@ -547,10 +546,18 @@ export default class acclist extends React.Component{
|
|||
addKeysBatchInfo(id,data).then((res)=>{
|
||||
handelResponse(res,(req,msg)=>{
|
||||
|
||||
Notify.success("成功发起审批");
|
||||
setTimeout(()=>{
|
||||
this.props.history.push('/home/key-list/');
|
||||
},2000)
|
||||
// Notify.success("成功发起审批");
|
||||
// setTimeout(()=>{
|
||||
// this.props.history.push('/home/key-list/');
|
||||
// },2000)
|
||||
|
||||
keyApproval(id,req.id).then((res)=>{
|
||||
handelResponse(res,(req,msg)=>{
|
||||
|
||||
},(err)=>{
|
||||
Notify.error(err);
|
||||
})
|
||||
})
|
||||
|
||||
},(err)=>{
|
||||
Notify.error(err);
|
||||
|
|
|
@ -30,7 +30,6 @@ export default class acclist extends React.Component{
|
|||
}
|
||||
|
||||
componentDidMount(e){
|
||||
|
||||
this.getThemeData();
|
||||
}
|
||||
|
||||
|
@ -39,14 +38,13 @@ export default class acclist extends React.Component{
|
|||
let params = {}
|
||||
if(sessionStorage.getItem("white") == 1)
|
||||
{
|
||||
params.page = 1
|
||||
params.page = 1
|
||||
}
|
||||
else
|
||||
{
|
||||
params.page = 3
|
||||
params.page = 3
|
||||
}
|
||||
|
||||
|
||||
getThemeChoice(params).then((res)=>{
|
||||
handelResponse(res,(req,msg)=>{
|
||||
let arr = _.map(req,(o)=>{
|
||||
|
|
Loading…
Reference in New Issue