{
field: 'basicConfig', title: '变更的配置', width: 300, templet: function (d) {
var basicConfig = d['basicConfigArr'];
var specialConfigArr = d['specialConfigArr'];
var desc = '';
if (basicConfig && basicConfig.length > 0) {
basicConfig.forEach(function (item, index) {
if (desc) {
desc += ',' + item['desc'];
} else {
desc += item['desc'];
}
});
}
if (specialConfigArr && specialConfigArr.length > 0) {
specialConfigArr.forEach(function (item, index) {
if (desc) {
desc += ',' + item['desc'];
} else {
desc += item['desc'];
}
});
}
return desc;
}
},
layui数据表格内使用数组
最新推荐文章于 2022-03-01 09:43:43 发布