mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 03:22:51 +08:00
优化对fieldAlias生成表单的字符优化
This commit is contained in:
@@ -373,13 +373,19 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
|
||||
|
||||
d.elemIdName = d.fieldAlias;
|
||||
|
||||
if (typeof d.fieldAlias == 'string' && d.fieldAlias.indexOf('[') == 0) {
|
||||
if (typeof d.fieldAlias == 'string' ) {
|
||||
|
||||
if(d.fieldAlias.indexOf('[') == 0){
|
||||
|
||||
var fieldPlusArr = d.fieldAlias.replace('[').split(']');
|
||||
|
||||
d.elemIdName = fieldPlusArr.join('-')
|
||||
}
|
||||
|
||||
d.elemIdName = d.elemIdName.replace('.', '-');
|
||||
}
|
||||
|
||||
|
||||
if (d.defaultSearchValue.length > 0) {
|
||||
if (d.searchValue.length == 0) {
|
||||
d.searchValue = d.defaultSearchValue;
|
||||
|
||||
Reference in New Issue
Block a user