This commit is contained in:
JenniferW 2025-12-22 14:28:19 +08:00
parent f3b289d16c
commit 6ff32be2bb
6 changed files with 24427 additions and 29579 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -359,7 +359,14 @@
@dragover.prevent @dragover.prevent
@drop="onHeaderDrop(index)" @drop="onHeaderDrop(index)"
> >
<span v-if="item.isLatest" class="new-tag"> <span
v-if="
item.isLatest &&
displayCompareList &&
displayCompareList.length > 1
"
class="new-tag"
>
<img <img
src="/images/cars/new.png" src="/images/cars/new.png"
alt="最新品号" alt="最新品号"
@ -1358,7 +1365,7 @@ const handleInput = (value, options = {}) => {
// 使 // 使
parsedConditions.value = parseConditions(newValue); parsedConditions.value = parseConditions(newValue);
// //
if (preciseConditions.value.length > 0) { if (preciseConditions.value.length > 0) {
// //
@ -1463,7 +1470,7 @@ const handleInput = (value, options = {}) => {
// parsedConditions tag // parsedConditions tag
const newConditions = parseConditions(normalizedValue); const newConditions = parseConditions(normalizedValue);
parsedConditions.value = newConditions; parsedConditions.value = newConditions;
// //
if (preciseConditions.value.length > 0) { if (preciseConditions.value.length > 0) {
preciseConditions.value = preciseConditions.value.filter((preciseCond) => { preciseConditions.value = preciseConditions.value.filter((preciseCond) => {
@ -1477,7 +1484,7 @@ const handleInput = (value, options = {}) => {
return exists; return exists;
}); });
} }
// //
syncPreciseConditionsIndex(); syncPreciseConditionsIndex();
@ -1510,16 +1517,14 @@ const fetchSearchHints = async (keyword) => {
// //
let conditionsToProcess = [...parsedConditions.value]; let conditionsToProcess = [...parsedConditions.value];
let reorderedInputWord = currentInput.value.trim(); let reorderedInputWord = currentInput.value.trim();
if (activeIndex >= 0 && activeIndex < conditionsToProcess.length - 1) { if (activeIndex >= 0 && activeIndex < conditionsToProcess.length - 1) {
// //
const [editedCondition] = conditionsToProcess.splice(activeIndex, 1); const [editedCondition] = conditionsToProcess.splice(activeIndex, 1);
conditionsToProcess.push(editedCondition); conditionsToProcess.push(editedCondition);
// inputWord // inputWord
const reorderedParts = parts const reorderedParts = parts.map((p) => p.trim()).filter((p) => p);
.map((p) => p.trim())
.filter((p) => p);
if (activeIndex < reorderedParts.length) { if (activeIndex < reorderedParts.length) {
const [editedPart] = reorderedParts.splice(activeIndex, 1); const [editedPart] = reorderedParts.splice(activeIndex, 1);
reorderedParts.push(editedPart); reorderedParts.push(editedPart);
@ -1560,7 +1565,7 @@ const fetchSearchHints = async (keyword) => {
const isValueFromSuggestion = allValues.value.some( const isValueFromSuggestion = allValues.value.some(
(item) => String(item.value) === String(condition.value) (item) => String(item.value) === String(condition.value)
); );
if (isValueFromSuggestion) { if (isValueFromSuggestion) {
// fieldValue // fieldValue
return { return {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff