json file
data = {
"information1":true,
"information2":[1],
"information3":[{
"name":1,
"type": "computer"
},{
"name":1,
"type": "computer",
"grouplist":[ 0, 0, 0, 0, 0, 0, 0, 0 ]
}],
"information4":{
"content":[{ "id": "1", "no": "1"},
{ "id": "2", "no": "2"}],
"first":"true"
}
}
vue file
data: function () {
return {
datas: null,
getWidth: '100%',
dataAdapter: new jqx.dataAdapter(this.source), //dataAdapter
columns: [
{text: 'information4', datafield: 'information4'},
{text: 'name', datafield: 'name'},
{text: 'id', datafield: 'id'}
]
}
},
beforeCreate: function () {
this.source = {
datatype: 'json',
mapChar: '>',
datafields: [
{name: 'information4', map: 'information4'}, // [object Object]
{name: 'content', type: 'array', map: 'information4>content'},// show nothing
{name: 'name', map: 'information4>content>name'},// show nothing
{name: 'information3', type: 'array'},// show nothing
{name: 'id', type: 'number', map: 'information3>id'} // show nothing
],
root: 'data',
url: '/configure/test_list.json',
pagenum: '0',
pagesize: '20',
data:
{
network_id: "1",
term_type: "2h"
}
};
},