Browse Source

关键词全命中字段数->关键词全命中记录数->统计记录数

CzRger 2 days ago
parent
commit
febf1d6c48
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/web/list/index-worker.vue

+ 5 - 0
src/views/web/list/index-worker.vue

@@ -627,11 +627,16 @@ const initWorker = () => {
                               v.__term = index.term
                               v.__term = index.term
                               type.__term = type.__term ? (type.__term + index.term) : index.term
                               type.__term = type.__term ? (type.__term + index.term) : index.term
                               tag.__term = tag.__term ? (tag.__term + index.term) : index.term
                               tag.__term = tag.__term ? (tag.__term + index.term) : index.term
+                              // 全命中字段数
+                              v.__column = index.column
+                              type.__column = type.__column ? (type.__column + index.column) : index.column
+                              tag.__column = tag.__column ? (tag.__column + index.column) : index.column
                             }
                             }
                           })
                           })
                         })
                         })
                         type.children.sort((a, b) => b.__count - a.__count)
                         type.children.sort((a, b) => b.__count - a.__count)
                         type.children.sort((a, b) => b.__term - a.__term)
                         type.children.sort((a, b) => b.__term - a.__term)
+                        type.children.sort((a, b) => b.__column - a.__column)
                       }
                       }
                     })
                     })
                   }
                   }