优化表格列格式化逻辑,使得多层对象依然能自动识别selectList类型.

This commit is contained in:
augushong
2022-01-06 17:29:33 +08:00
parent 68a2a4487a
commit 7d0391145e

View File

@@ -585,6 +585,11 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
cols[i][index]['imageHeight'] = 40;
}
// 判断是否列表数据转换
if (val.selectList !== undefined && val.templet === undefined) {
cols[i][index]['templet'] = admin.table.list;
}
// 判断是否多层对象
if (val.field !== undefined && val.field.split(".").length > 1) {
if (val.templet === undefined) {
@@ -592,11 +597,6 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
}
}
// 判断是否列表数据转换
if (val.selectList !== undefined && val.templet === undefined) {
cols[i][index]['templet'] = admin.table.list;
}
if (admin.checkMobile()) {
if (val.fixed !== undefined) {
val.fixed = false;