+
{{$t('feedback.regenerate')}}
diff --git a/src/store/conversation.ts b/src/store/conversation.ts
index 3d675f34bef220e69f3f708bc0c2da179ac9e7b0..dbd365d618ef1d1b9f84cdf93146f312aed73dd2 100644
--- a/src/store/conversation.ts
+++ b/src/store/conversation.ts
@@ -290,8 +290,6 @@ export const useSessionStore = defineStore('conversation', () => {
} else if (message['event'] === 'flow.start') {
//事件流开始--后续验证对话无下拉连接后则完全替换
let flow = message.flow;
- // 这里给工作流调试的对话id赋值,用于判断
- workFlowId = flow?.flowId;
conversationItem.flowdata = {
id: flow?.stepId || '',
title: i18n.global.t('flow.flow_start'),
@@ -339,15 +337,8 @@ export const useSessionStore = defineStore('conversation', () => {
display: true,
data: conversationItem?.flowdata?.data,
};
- } else if (message.content.type !== 'schema') {
- conversationItem.flowdata?.data[0].push({
- id: 'end',
- title: 'end',
- status: message.flow?.stepStatus,
- data: {
- input: message.content,
- },
- });
+ }else if(message.content.type !== "schema"){
+ // 删除 end 逻辑
conversationItem.flowdata = {
id: flow?.stepId,
title: i18n.global.t('flow.flow_end'),
@@ -689,13 +680,36 @@ export const useSessionStore = defineStore('conversation', () => {
conversationId: record.conversationId,
groupId: record.groupId,
metadata: record.metadata,
- },
+ flowdata: record?.flow ? GenerateFlowData(record.flow) : undefined,
+ }
);
scrollBottom('auto');
});
}
};
-
+ //将获取到的 flow 数据结构转换
+ const GenerateFlowData = (record: any): object => {
+ let flowData = {
+ id: record.recordId,
+ title: record.id,
+ status: "success",
+ display: true,
+ flowId: record.flowId,
+ data:[[]] as any[]
+ };
+ for (let i = 0; i < record.steps.length; i++) {
+ flowData.data[0].push({
+ id: record.steps[i].stepId,
+ title : record.steps[i].stepId,
+ status: record.steps[i].stepStatus,
+ data:{
+ input: record.steps[i].input,
+ output: record.steps[i].output,
+ }
+ });
+ }
+ return flowData;
+ }
const comment = (cid: number, isSupport: boolean, index: number): void => {
const ind = conversationList.value.find(item => item.cid === cid);
// ind.message.items[index].is_like = isSupport;
diff --git a/src/views/dialogue/components/InitalPanel.vue b/src/views/dialogue/components/InitalPanel.vue
index b20058f12f983604f581caf13afa8fec69bad2b7..85bb807ec900f309a58186a500554cc1bd4c24a6 100644
--- a/src/views/dialogue/components/InitalPanel.vue
+++ b/src/views/dialogue/components/InitalPanel.vue
@@ -100,7 +100,7 @@ onMounted(() => {
-
{{ item.id }}
- {{ $t('question.' + item.question) }}
+ {{ $t('question.' + item.question) }}
@@ -176,6 +176,10 @@ onMounted(() => {
}
.question-number{
margin-right: 8px;
+ color: var(--o-text-color-secondary);
+ }
+ .question-des{
+ color: var(--o-text-color-secondary);
}
}
@@ -187,8 +191,8 @@ onMounted(() => {
// display: block;
width: 492px;
height: auto;
- box-shadow: 0px 5.18px 20.72px 0px rgba(221, 225, 240, 0.5);
- background: linear-gradient(270deg, rgb(227, 242, 255), rgb(195, 227, 255) 33.232%, rgb(197, 203, 249) 85.699%);
+ box-shadow: 0px 5.18px 20.72px 0px var(--question-shadow);
+ background: var(--question-bg);
// opacity: 0.5;
border-radius: 8px;
background-size: 100% 100%;
@@ -209,6 +213,7 @@ onMounted(() => {
font-size: 14px;
color: var(--o-text-color-secondary);
}
+
}
}
diff --git a/src/views/dialogue/dialogueView.vue b/src/views/dialogue/dialogueView.vue
index 396c8a7ba09c44135cd7fd028fe89440c8396211..dd0367bbee1ff94add7e63b87fef838ac94a86cd 100644
--- a/src/views/dialogue/dialogueView.vue
+++ b/src/views/dialogue/dialogueView.vue
@@ -424,11 +424,6 @@ watch(
-
-
-
-
-