mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
优化表格列格式化逻辑,使得多层对象依然能自动识别selectList类型.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user