colModel: [code
{ name: 'id', width: 50, hidden: true }, //由于这个id 并非惟一的,因此对于grid来讲,是不行的,应该是惟一的。 //对于的绩效计划id { name: 'hrEffPlanId', width: 80, hidden: true }, { name: 'ppcycyleId', width: 80, hidden: true }, { name: 'code', width: 100 }, { name: 'name', width: 120 }, { name: 'yearly', width: 50 }, { name: 'monthly', width: 50 }, { name: 'bizStatus', width: 80, formatter: programStatusFormatter }, { name: 'bizStatusChild', width: 100, formatter: reviewstatusFormatter }, { name: 'bizStatusChild', width: 120, hidden: true }, { name: 'statistic', width: 50 }, { name: "act", formatter: actFormatter } ]
使用的时候,使用 { name: 'id', width: 50, hidden: true }, 可是获取后台里面的值, id 是有重复的状况的,结果发现 选择列的时候,点击事件 失效。不能获取到 对应列的 值,获取的是其余列的。 后来发现是由于 id 列的不一样的orm