状态:405,ok:false,statusText:"方法不允许"

时间:2017-07-26 23:14:05

标签: javascript jquery html angular kendo-ui

  • 我是角度2和js的新手。
  • 当我使用服务网址时出现错误。
  • 你能告诉我如何解决它。
  • 在下面提供相关代码和错误。
  • 提供整个代码,因为我无法在此处粘贴

https://jsfiddle.net/mncb1bt9/

whole.isports.com/swimmings/v1/document?timestamp=1501104688758:1 GET http://whole.isports.com/swimmings/v1/document?timestamp=1501104688758 405(方法不允许)     VM3789:27发生错误响应{_body:" {" timestamp":1501104694800," status":405," error":" M ...不支持","路径":" / swimmings / v1 / document"}",状态:405,ok:false,statusText:"方法不允许",标题:标题...}

    laughing(): void{
        console.log("documentsClicked");

        //let box;
        let title;
        let excelFileName;
        let runningNo;
        let url;
        let netNo;

        let that = this;
        title="View Airings";
        excelFileName="ViewAiringsExport";

        //url = "runningsaggregator/v1/running/airings/123/456";
        url = "swimmings/v1/document";

        let box = [
                        { field:'contextRow',title:" ", width: 25, locked: true },
                        { field:"Fox",  filterable:that.gridkendo.getAutoFilterName("eq","Fox"),headerAttributes: {class: "multiCheckboxFilterEnabled"}, title: "File Name", width: 200, editable: false,
                            template: function Fox(options){
                                return that.gridTemplate(options,"Fox",false);
                            }
                        },                          
                        { field: "Bat", filterable:that.gridkendo.getAutoFilterName("contains","Bat"),headerAttributes: {class: "multiCheckboxFilterEnabled"},  title: "Added By", width: 200, editable: false,
                            template: function Bat(options){
                                return that.gridTemplate(options,"Bat",false);
                            }
                        },
                        { field: "Lion", filterable:that.gridkendo.getAutoFilterName("contains","Lion"),headerAttributes: {class: "multiCheckboxFilterEnabled"},  title: "Added Date", width: 200, editable: false,
                            template: function Lion(options){
                                return that.gridTemplate(options,"Lion",false);
                            }
                        },
                        { field: "Ant", filterable:that.gridkendo.getAutoFilterName("contains","Ant"),headerAttributes: {class: "multiCheckboxFilterEnabled"},  title: "Program/Show Name", width: 200, editable: false,
                            template: function Ant(options){
                                return that.gridTemplate(options,"Ant",false);
                            }
                        },
                        { field: "Tiger", filterable:that.gridkendo.getAutoFilterName("contains","Tiger"),headerAttributes: {class: "multiCheckboxFilterEnabled"},  title: "Episode Name", width: 200, editable: false,
                            template: function Tiger(options){
                                return that.gridTemplate(options,"Tiger",false);
                            }
                        },
                        { field: "Monkey", filterable:that.gridkendo.getAutoFilterName("contains","Monkey"),headerAttributes: {class: "multiCheckboxFilterEnabled"},  title: "Format", width: 200, editable: false,
                            template: function Monkey(options){
                                return that.gridTemplate(options,"Monkey",false);
                            }
                        },
                        { field: "Zoo", filterable:that.gridkendo.getAutoFilterName("contains","Zoo"),headerAttributes: {class: "multiCheckboxFilterEnabled"},  title: "Program Type", width: 200, editable: false,
                            template: function Zoo(options){
                                return that.gridTemplate(options,"Zoo",false);
                            }
                        }
        ];
        let yellow={"url":url,"box":box,"title":title,"excelFileName":excelFileName};
        this.swimmingDocuments.openPopup(yellow);

        console.log("yellow--->" + yellow);

    }

0 个答案:

没有答案