This commit is contained in:
Daniel 2024-03-05 20:54:39 +08:00
parent a8b1b51c96
commit a9b8290cd0
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017
2 changed files with 9 additions and 3 deletions

View File

@ -79,8 +79,14 @@ const (
func (filter *ViewFilter) GetAffectValue(key *Key) (ret *Value) {
if nil != filter.Value && filter.Value.IsGenerated() {
// 自动生成类型的过滤条件不设置默认值
return nil
if filter.Value.IsGenerated() {
// 自动生成类型的过滤条件不设置默认值
return nil
}
if KeyTypeRelation == filter.Value.Type {
// 关联类型的过滤条件不设置默认值 https://ld246.com/article/1709608533749
return nil
}
}
if nil == filter.Value && nil != filter.RelativeDate {

View File

@ -1841,7 +1841,7 @@ func addAttributeViewBlock(avID, blockID, previousBlockID, addingBlockID string,
// 如果存在过滤条件,则将过滤条件应用到新添加的块上
view, _ := getAttrViewViewByBlockID(attrView, blockID)
if nil != view && (0 < len(view.Table.Filters) || 0 < len(view.Table.Sorts)) {
if nil != view && 0 < len(view.Table.Filters) {
viewable, _ := renderAttributeViewTable(attrView, view)
viewable.FilterRows(attrView)