@model GenDbTableDto @{ var className = Model.EntityName; var tableName = Model.TableName; var ignores = new string[] { "Id", "CreationTime", "CreatorUserId", "LastModificationTime", "LastModifierUserId", "DeletionTime", "DeleterUserId", "IsDeleted", "id", "creation_time", "creator_user_id", "last_modification_time", "last_modifier_user_id", "deletion_time", "deleter_user_id", "is_deleted", }; var tableInfos = Model.TableInfos .Where(w => !ignores.Contains(w.ColumnName)) .OrderBy(w => w.Position) .ToList() ; var searchKeyWords = new[] { "Title", "Name", "Phone", "Address", "Email" }; var searchKeyWord = string.Empty; foreach (var item in searchKeyWords) { if (tableInfos.Any(w => w.ColumnName == item)) { searchKeyWord = item; break; } } if (string.IsNullOrWhiteSpace(searchKeyWord)) { searchKeyWord = "请设置检索框"; } }
{ state.page = changeTable.pagination.current ?? 1; state.size = changeTable.pagination.pageSize ?? state.size; state.search.sort = changeTable.sorter instanceof Array ? [...changeTable.sorter] : [changeTable.sorter]; findList(); } " @@show-size-change=" ({ current, size }) => { state.page = current == 0 ? 1 : current; state.size = size; findList(); } " > 重置 查询 收起 展开 refInfo?.open()" v-if="power.insert"> 新建 批量删除 导出 Excel 更多 refInfo?.open(record.id)" v-if="power.update">编辑 删除