这是后台截取的sql语句在查询分析器执行的结果这是前台显示的部分
所以“提单号”这一列非空且重复的行都不见了,除了最后一行……后台传出的json截取来看是正确的,11行都有,所以现在前台的接收/解析/显示不知是什么地方出了问题比如gridpanel是不是有什么可以设置的东西……BTW:js实在太难调试了……extjsgridpanel
所以“提单号”这一列非空且重复的行都不见了,除了最后一行……后台传出的json截取来看是正确的,11行都有,所以现在前台的接收/解析/显示不知是什么地方出了问题比如gridpanel是不是有什么可以设置的东西……BTW:js实在太难调试了……extjsgridpanel
//定义数据集
this.storeList = Ext.create('Ext.data.Store', {
model: 'RPT_zb_lrbb',
remoteSort: false,
proxy: {
type: 'ajax',
url: '/TruckMng/RPT_zb_lrbb/GetDataList',
reader: {
id: 'id',
root: 'data',
totalProperty: 'totalCount'
}
}
}); //定义Grid
this.gridList = new Ext.grid.GridPanel({
store: this.storeList,
enableHdMenu: false,
region: 'center',
loadMask: { msg: "数据加载中,请稍等..." },
trackMouseOver: true,
disableSelection: false,
enableColumnHide:false,
columns: [
{
sortable: false,
dataIndex: 'id',
header: '序号',
width: 80
},
{
sortable: false,
dataIndex: 'mblno',
header: '提单号',
width: 80
},
{
sortable: false,
dataIndex: 'custdate',
header: '委托时间',
width: 80
},
{
sortable: false,
dataIndex: 'customername',
header: '委托单位',
width: 80
},
{
sortable: false,
dataIndex: 'containernos',
header: '箱型箱量',
width: 80
},
{
sortable: false,
dataIndex: 'username',
header: '录入人',
width: 80
},
{
sortable: false,
dataIndex: 'detination',
header: '目的地',
width: 80
},
{
sortable: false,
dataIndex: 'billno',
header: '物流号',
width: 80
},
{
sortable: false,
dataIndex: 'ys',
header: '应收',
width: 80
},
{
sortable: false,
dataIndex: 'yf',
header: '应付',
width: 80
},
{
sortable: false,
dataIndex: 'lr',
header: '利润',
width: 80
},
{
sortable: false,
dataIndex: 'lrl',
header: '利润率',
width: 80
}
]
});
extend: 'Ext.data.Model',
idProperty: 'id',
fields: [
{ name: 'id', type: 'number' },
{ name: 'mblno', type: 'string' },
{ name: 'custdate', type: 'string' },
{ name: 'customername', type: 'string' },
{ name: 'containernos', type: 'string' },
{ name: 'username', type: 'string' },
{ name: 'detination', type: 'string' },
{ name: 'billno', type: 'string' },
{ name: 'ys', type: 'string' },
{ name: 'yf', type: 'string' },
{ name: 'lr', type: 'string' },
{ name: 'lrl', type: 'string' }
]
});唉唉唉……没有人讨论好痛苦啊……回头弄个排球画上人脸跟它说……