$.ajax({
                    contentType: "application/json; charset=utf-8",
                    type: "POST",
                    url: "/Registration/ManagementProject/DeleteProjectById",
                    dataType: "json",
                    data: {"selectData": that.UserIdArray },
                    async: false,
                    //提交前设置参数
                    beforeSend: function (request) {
                        //request.setRequestHeader("token", $("#token").val());
                    },
                    error: function (request) {
                        console.log(request);
                        alert(request);
                    },
                    success: function (data) {
                        that.projectList = data;
                        console.log(data)
                        if (data.Response.ErrCode == "0") {
                            alert(data.Response.ErrMsg);
                            //清空已选择的数据
                            that.UserIdArray = [];
                            appList.GatProjectList(1);
                        }
                    }
                });

 

posted on 2018-05-02 11:37  高兴happy  阅读(134)  评论(0编辑  收藏  举报