- 注册时间
- 2020-12-4
- 最后登录
- 2021-11-8
- 阅读权限
- 10
- 积分
- 16
- 精华
- 0
- 帖子
- 4
|
felt 发表于 2021-1-15 11:57
贴一下相关代码。
grid.on("cellclick", function (e) {
var record = e.record, column = e.column, field = e.field, value = e.value;
switch (column.field) {
case "PROJECTNAME":
var value = record.AREA;
if (value == null || value== ""){ return; }
var project = mini.get("PROJECTNAME");
project.setUrl("/BusinessManage/MaterObject/GetProjectJson?areaId=" + value);
break;
case "FIELDNAME":
var value = record.PROJECTNAME;
if (value == null || value == "") { return; }
var field = mini.get("FIELDNAME");
field.setUrl("/BusinessManage/MaterObject/GetFieldJson?projectId=" + value);
break;
我测了下,是单元格点击事件影响的,有方法解决吗? |
|