diff --git a/src/pages/ChatMain/ChatLongAnswer/ParsedValueView.vue b/src/pages/ChatMain/ChatLongAnswer/ParsedValueView.vue
index 901a930..7ebde80 100644
--- a/src/pages/ChatMain/ChatLongAnswer/ParsedValueView.vue
+++ b/src/pages/ChatMain/ChatLongAnswer/ParsedValueView.vue
@@ -193,6 +193,19 @@
+
+
+
+
+ {{ suggestion.item_name }}
+ {{ suggestion.item_commodity_price }}
+
+
+
+
+
+
+
props.fieldKey === LONG_TEXT_KEYS.photoL
const isAigcComponetField = computed(() => props.fieldKey === LONG_TEXT_KEYS.aigcComponet);
const isTourRoutesField = computed(() => props.fieldKey === LONG_TEXT_KEYS.tourRoutes);
const isFacilitiesAlongTheWayField = computed(() => props.fieldKey === LONG_TEXT_KEYS.facilitiesAlongTheWay);
+const isDecisionSuggestionListField = computed(() => props.fieldKey === LONG_TEXT_KEYS.decisionSuggestionList);
const displayValue = computed(() => sanitizeValue(props.value));
@@ -447,6 +461,21 @@ const getFacilitiesAlongTheWayValue = (value) => {
const facilitiesAlongTheWayValue = computed(() => getFacilitiesAlongTheWayValue(displayValue.value));
+const getDecisionSuggestionListValue = (value) => {
+ if (!isArrayValue(value)) return [];
+
+ return value
+ .filter((item) => isObjectValue(item))
+ .map((suggestion) => ({
+ item_name: toTrimmedText(suggestion.item_name),
+ item_commodity_price: toTrimmedText(suggestion.item_commodity_price),
+ item_content: toTrimmedText(suggestion.item_content),
+ }))
+ .filter((suggestion) => hasDisplayValue(suggestion));
+};
+
+const decisionSuggestionListValue = computed(() => getDecisionSuggestionListValue(displayValue.value));
+
const createRenderEntry = (key, value) => {
if (isImageValue(value)) {
@@ -515,6 +544,10 @@ const shouldRenderFacilitiesAlongTheWay = computed(() => {
return isFacilitiesAlongTheWayField.value && hasDisplayValue(facilitiesAlongTheWayValue.value);
});
+const shouldRenderDecisionSuggestionList = computed(() => {
+ return isDecisionSuggestionListField.value && decisionSuggestionListValue.value.length > 0;
+});
+
/// 其他字段走通用渲染逻辑
const renderFieldEntries = computed(() => {
if (isIgnoredField.value || !hasDisplayValue(props.value)) return [];
@@ -555,7 +588,8 @@ const shouldRenderField = computed(() => {
shouldRenderPhotoList.value ||
shouldRenderAigcComponet.value ||
shouldRenderTourRoutes.value ||
- shouldRenderFacilitiesAlongTheWay.value
+ shouldRenderFacilitiesAlongTheWay.value ||
+ shouldRenderDecisionSuggestionList.value
) {
return true;
}
diff --git a/src/pages/ChatMain/ChatLongAnswer/index.vue b/src/pages/ChatMain/ChatLongAnswer/index.vue
index 8481a82..5fc253d 100644
--- a/src/pages/ChatMain/ChatLongAnswer/index.vue
+++ b/src/pages/ChatMain/ChatLongAnswer/index.vue
@@ -7,7 +7,7 @@
-
+