Vue.js 如何将嵌套JSON绑定到Kendo Vue网格?
下面的JSON由URL返回 JSON: 我想将“事务”字段中的所有字段绑定到Kendo Vue网格 我可以使用这段代码绑定一个简单的JSON,但不能绑定嵌套的JSON 如果有人能帮忙,那就太好了 Vue代码:Vue.js 如何将嵌套JSON绑定到Kendo Vue网格?,vue.js,vuejs2,vue-component,kendo-grid,kendo-view,Vue.js,Vuejs2,Vue Component,Kendo Grid,Kendo View,下面的JSON由URL返回 JSON: 我想将“事务”字段中的所有字段绑定到Kendo Vue网格 我可以使用这段代码绑定一个简单的JSON,但不能绑定嵌套的JSON 如果有人能帮忙,那就太好了 Vue代码: 从“Vue”导入Vue; 从'@progress/kendo grid vue wrapper'导入{GridInstaller}; 从'@progress/kendo datasource vue wrapper'导入{DataSourceInstaller}; 导入“@progres
从“Vue”导入Vue;
从'@progress/kendo grid vue wrapper'导入{GridInstaller};
从'@progress/kendo datasource vue wrapper'导入{DataSourceInstaller};
导入“@progress/kendo ui”;
Vue.use(GridInstaller)
Vue.use(数据源安装程序);
导出默认值{
数据(){
返回{
schemaModelFields:{
patientId:{可编辑:false,可空:false},
officeShortId:{可编辑:false,可空:false},
过程代码:{可编辑:false,可空:false}
}
}
}
}
您是否设法使其正常工作?我遇到了一个类似的情况,即要显示的数据是嵌套的json结构。在文档中找不到任何内容:(您是否设法使其正常工作?我遇到了一个类似的情况,即要显示的数据位于嵌套的json结构中。在文档中找不到任何内容:(
{
"numberOfTransactions": 2,
"transactions": [
{
"Id": "1000497",
"officeShortId": "DRSD",
"procedureCode": "1234"
},
{
"Id": "1000497",
"officeShortId": "DRSD",
"procedureCode": "1234"
}
}