0
我新的剑道UI,我用数据表显示值,这里是我的旧代码(工作):剑道电网读数据源
$http.post("/reports/api/g3swmf/report", $scope.g3sWmf).success(function(data){
$scope.reportVal += " - " + data;
}).then(function (response){
$scope.items=response.data;
}
,这里是剑道UI版本(不工作):
$scope.g3sGridOptions = {
toolbar: ["excel"],
excel: {
allPages: true
},
dataSource: {
type: "json",
transport: {
read: {
url:("/reports/api/g3swmf/report", $scope.g3sWmf),
type: "post",
dataType: "json"
}
},
schema: {
model: {
fields: {
poloCode: { type: "string" },
}
}
}
}
请定义不工作 –
不能达到/报告/ API/g3swmf /遥控器,并得到响应数据@The_Black_Smurf –