怎么根据data.id获取field中的schemeName值

abp.layui.table.init({
elem: '#tabList',
layfilter: "tabList",
height: 'full-350',
url: '@Url.Action("Paging","Scheme",new { Area = "ProcessEngine"})/',
cols: [
{ field: 'schemeName', title: '方案', width: 855, sort: true }
, { title: '操作', width: 311, align: 'center', templet: "#tabForm" }
],
tool: function (layEvent, data, obj) {
if (layEvent === 'detail') {
location.href = "@Url.Action("Index", "DataField", new { Area= "ProcessEngine" })?id=" + data.id;
var name = ;
sessionStorage.setItem('schemeName',name );
} else if (layEvent === 'save') {
EditSaveData(data);
} else if (layEvent === 'del') {
//start
//id 不等于空时删掉数据
if (data.id) {
abp.services.workflow.scheme.delScheme({ id: data.id }).done(function (data) {
abp.layui.table.reload();
abp.layui.layer.msg("已成功删除字段!");
});
}

1个回答

循环遍历你的表,或者从服务器端查询获取

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!