schedule_job
杨树明 5 years ago
parent 657fcbfe73
commit 84bb3bbf62

@ -808,10 +808,10 @@ class TPMBanner extends Component {
setCollect=()=>{ setCollect=()=>{
let id = this.props.match.params.shixunId; let {shixunsDetails} = this.props;
let url ="/collections.json"; let url ="/collections.json";
axios.post(url,{ axios.post(url,{
container_id:id, container_id:shixunsDetails.id,
container_type:"Shixun" container_type:"Shixun"
}).then((result)=>{ }).then((result)=>{
const status = result.data.status const status = result.data.status
@ -826,10 +826,10 @@ class TPMBanner extends Component {
} }
cancelCollect=()=>{ cancelCollect=()=>{
let id = this.props.match.params.shixunId; let {shixunsDetails} = this.props;
let url=`/collections/cancel.json`; let url=`/collections/cancel.json`;
axios.delete(url,{ data:{ axios.delete(url,{ data:{
container_id:id, container_id:shixunsDetails.id,
container_type:"Shixun" container_type:"Shixun"
}}).then((response) => { }}).then((response) => {
const status = response.data.status const status = response.data.status

Loading…
Cancel
Save