提交 b334e7dd 编写于 作者: doc_wei's avatar doc_wei

表格布局展示自定义数据类型时的bug修复

上级 15c3b2c8
......@@ -2263,7 +2263,7 @@ hr,
.layui-input-block {
margin-left: 135px;
min-height: 40px;
min-height: 41px;
}
.layui-input-inline {
......
......@@ -888,10 +888,11 @@ var dsFormTableUtil = {
var obj = [];
eval('url = ' + businessApi.serviceStr + ' + "' + businessApi.api + '"');
AjaxPostUtil.request({url: url, params: params, type: 'json', method: businessApi.method, callback: function (json) {
obj = json.beans;
obj = json.rows;
}, async: false});
obj = JSON.stringify(obj);
return `function (d) {
var json = ${obj};
var json = JSON.parse('${obj}');
return getInPoingArr(json, "id", d.${item.attrKey}, "name");
}`;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册