|
楼主 |
发表于 2018-2-1 13:37:27
|
显示全部楼层
我打印了下返回的数据格式 console.info(JSON.stringify(mainData.toJson()));
有主键列啊
{"@type":"table","rows":[{"calcCheckBox":{},"fCode":{"value":"status"},"fCreateTime":{"value":""},"fCreator":{"value":"system"},"fCreatorID":{"value":"PSN01"},"fDescription":{"value":"状态"},"fModifier":{"value":"system"},"fModifierID":{"value":"PSN01"},"fModifyTime":{"value":""},"fMsortCode":{"value":"GY0000008"},"fName":{"value":"状态"},"fPid":{},"fSortCode":{"value":2},"fState":{"value":"0"},"fType":{"value":"0"},"version":{"value":0},"userdata":{"recordState":"none","isModified":false,"id":{"changed":0,"originalValue":null}}},{"calcCheckBox":{},"fCode":{"value":"sex"},"fCreateTime":{"value":""},"fCreator":{"value":"system"},"fCreatorID":{"value":"PSN01"},"fDescription":{"value":"性别"},"fModifier":{"value":"system"},"fModifierID":{"value":"PSN01"},"fModifyTime":{"value":""},"fMsortCode":{"value":"GY0000001"},"fName":{"value":"性别"},"fPid":{},"fSortCode":{"value":1},"fState":{"value":"0"},"fType":{"value":"0"},"version":{"value":0},"userdata":{"recordState":"none","isModified":false,"id":{"changed":0,"originalValue":null}}},{"calcCheckBox":{},"fCode":{"value":"premium_math"},"fCreateTime":{"value":""},"fCreator":{"value":"system"},"fCreatorID":{"value":"PSN01"},"fDescription":{"value":"保费算法"},"fModifier":{"value":"system"},"fModifierID":{"value":"PSN01"},"fModifyTime":{"value":""},"fMsortCode":{"value":"GY0000020"},"fName":{"value":"保费算法"},"fPid":{},"fSortCode":{"value":4},"fState":{"value":"0"},"fType":{"value":"0"},"version":{"value":0},"userdata":{"recordState":"none","isModified":false,"id":{"changed":0,"originalValue":null}}},{"calcCheckBox":{},"fCode":{"value":"charge_mode"},"fCreateTime":{"value":""},"fCreator":{"value":"system"},"fCreatorID":{"value":"PSN01"},"fDescription":{"value":"收费模式"},"fModifier":{"value":"system"},"fModifierID":{"value":"PSN01"},"fModifyTime":{"value":""},"fMsortCode":{"value":"GY0000011"},"fName":{"value":"收费模式"},"fPid":{},"fSortCode":{"value":3},"fState":{"value":"0"},"fType":{"value":"0"},"version":{"value":0},"userdata":{"recordState":"none","isModified":false,"id":{"changed":0,"originalValue":null}}},{"calcCheckBox":{},"fCode":{"value":"insurance_style"},"fCreateTime":{"value":""},"fCreator":{"value":"system"},"fCreatorID":{"value":"PSN01"},"fDescription":{"value":"出单方式"},"fModifier":{"value":"system"},"fModifierID":{"value":"PSN01"},"fModifyTime":{"value":""},"fMsortCode":{"value":"GY0000025"},"fName":{"value":"出单方式"},"fPid":{},"fSortCode":{"value":6},"fState":{"value":"0"},"fType":{"value":"0"},"version":{"value":0},"userdata":{"recordState":"none","isModified":false,"id":{"changed":0,"originalValue":null}}}],"userdata":{"idColumnDefine":"SysDict","idColumnName":"SysDict","idColumnType":"String","model":"/common/dict/data","relationAlias":"calcCheckBox,fCode,fCreateTime,fCreator,fCreatorID,fDescription,fModifier,fModifierID,fModifyTime,fMsortCode,fName,fPid,fSortCode,fState,fType,version","relationTypes":"String,String,DateTime,String,String,String,String,String,DateTime,String,String,String,Integer,String,String,Integer","relations":"EXPRESS,SysDict.fCode,SysDict.fCreateTime,SysDict.fCreator,SysDict.fCreatorID,SysDict.fDescription,SysDict.fModifier,SysDict.fModifierID,SysDict.fModifyTime,SysDict.fMsortCode,SysDict.fName,SysDict.fPid,SysDict.fSortCode,SysDict.fState,SysDict.fType,SysDict.version","updateMode":"whereVersion","sys.count":5,"sys.rowid":"SysDict"}}
数据格式划一下后
{
"@type": "table",
"rows": [{
"calcCheckBox": {},
"fCode": {
"value": "status"
},
"fCreateTime": {
"value": ""
},
"fCreator": {
"value": "system"
},
"fCreatorID": {
"value": "PSN01"
},
"fDescription": {
"value": "状态"
},
"fModifier": {
"value": "system"
},
"fModifierID": {
"value": "PSN01"
},
"fModifyTime": {
"value": ""
},
"fMsortCode": {
"value": "GY0000008"
},
"fName": {
"value": "状态"
},
"fPid": {},
"fSortCode": {
"value": 2
},
"fState": {
"value": "0"
},
"fType": {
"value": "0"
},
"version": {
"value": 0
},
"userdata": {
"recordState": "none",
"isModified": false,
"id": {
"changed": 0,
"originalValue": null
}
}
}, {
"calcCheckBox": {},
"fCode": {
"value": "sex"
},
"fCreateTime": {
"value": ""
},
"fCreator": {
"value": "system"
},
"fCreatorID": {
"value": "PSN01"
},
"fDescription": {
"value": "性别"
},
"fModifier": {
"value": "system"
},
"fModifierID": {
"value": "PSN01"
},
"fModifyTime": {
"value": ""
},
"fMsortCode": {
"value": "GY0000001"
},
"fName": {
"value": "性别"
},
"fPid": {},
"fSortCode": {
"value": 1
},
"fState": {
"value": "0"
},
"fType": {
"value": "0"
},
"version": {
"value": 0
},
"userdata": {
"recordState": "none",
"isModified": false,
"id": {
"changed": 0,
"originalValue": null
}
}
}, {
"calcCheckBox": {},
"fCode": {
"value": "premium_math"
},
"fCreateTime": {
"value": ""
},
"fCreator": {
"value": "system"
},
"fCreatorID": {
"value": "PSN01"
},
"fDescription": {
"value": "保费算法"
},
"fModifier": {
"value": "system"
},
"fModifierID": {
"value": "PSN01"
},
"fModifyTime": {
"value": ""
},
"fMsortCode": {
"value": "GY0000020"
},
"fName": {
"value": "保费算法"
},
"fPid": {},
"fSortCode": {
"value": 4
},
"fState": {
"value": "0"
},
"fType": {
"value": "0"
},
"version": {
"value": 0
},
"userdata": {
"recordState": "none",
"isModified": false,
"id": {
"changed": 0,
"originalValue": null
}
}
}, {
"calcCheckBox": {},
"fCode": {
"value": "charge_mode"
},
"fCreateTime": {
"value": ""
},
"fCreator": {
"value": "system"
},
"fCreatorID": {
"value": "PSN01"
},
"fDescription": {
"value": "收费模式"
},
"fModifier": {
"value": "system"
},
"fModifierID": {
"value": "PSN01"
},
"fModifyTime": {
"value": ""
},
"fMsortCode": {
"value": "GY0000011"
},
"fName": {
"value": "收费模式"
},
"fPid": {},
"fSortCode": {
"value": 3
},
"fState": {
"value": "0"
},
"fType": {
"value": "0"
},
"version": {
"value": 0
},
"userdata": {
"recordState": "none",
"isModified": false,
"id": {
"changed": 0,
"originalValue": null
}
}
}, {
"calcCheckBox": {},
"fCode": {
"value": "insurance_style"
},
"fCreateTime": {
"value": ""
},
"fCreator": {
"value": "system"
},
"fCreatorID": {
"value": "PSN01"
},
"fDescription": {
"value": "出单方式"
},
"fModifier": {
"value": "system"
},
"fModifierID": {
"value": "PSN01"
},
"fModifyTime": {
"value": ""
},
"fMsortCode": {
"value": "GY0000025"
},
"fName": {
"value": "出单方式"
},
"fPid": {},
"fSortCode": {
"value": 6
},
"fState": {
"value": "0"
},
"fType": {
"value": "0"
},
"version": {
"value": 0
},
"userdata": {
"recordState": "none",
"isModified": false,
"id": {
"changed": 0,
"originalValue": null
}
}
}],
"userdata": {
"idColumnDefine": "SysDict",
"idColumnName": "SysDict",
"idColumnType": "String",
"model": "/common/dict/data",
"relationAlias": "calcCheckBox,fCode,fCreateTime,fCreator,fCreatorID,fDescription,fModifier,fModifierID,fModifyTime,fMsortCode,fName,fPid,fSortCode,fState,fType,version",
"relationTypes": "String,String,DateTime,String,String,String,String,String,DateTime,String,String,String,Integer,String,String,Integer",
"relations": "EXPRESS,SysDict.fCode,SysDict.fCreateTime,SysDict.fCreator,SysDict.fCreatorID,SysDict.fDescription,SysDict.fModifier,SysDict.fModifierID,SysDict.fModifyTime,SysDict.fMsortCode,SysDict.fName,SysDict.fPid,SysDict.fSortCode,SysDict.fState,SysDict.fType,SysDict.version",
"updateMode": "whereVersion",
"sys.count": 5,
"sys.rowid": "SysDict"
}
}
|
|