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;
我测了下,是单元格点击事件影响的,有方法解决吗?作者: miniht 时间: 2021-1-15 13:48:11
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;
测了下是单元格点击事件影响的,有方法处理吗?作者: felt 时间: 2021-1-15 14:03:41
miniht 发表于 2021-1-15 13:48
grid.on("cellclick", function (e) {
var record = e.record, column = e.column, field = e ...