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

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

Loading…
Cancel
Save