colModel: [ { name: 'id', width: 50, hidden: true }, //因为这个id 并不是唯一的,所以对于grid来说,是不行的,应
colModel: [
{ 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 列的不同的