Browse Source

深度九历史数据展示

songjie/feature-20250924120152-大财神功能开发分支
no99 22 hours ago
parent
commit
9fc46b925a
  1. 64
      src/views/components/HistoryRecord.vue
  2. 74
      src/views/deepNine.vue

64
src/views/components/HistoryRecord.vue

@ -417,6 +417,7 @@ import moment from "moment";
import { ElMessage } from "element-plus";
import { useChatStore } from "../../store/chat";
const chatStore = useChatStore();
import { useDataStore } from "@/store/dataList.js";
const dataStore = useDataStore();
import { useRouter } from "vue-router";
@ -537,7 +538,7 @@ const getHistoryList = async (params) => {
} else if (props.currentType == "AiEmotion") {
isCollapsed.value = !chatStore.aiEmotionCall;
console.log("情绪大模型页面", isCollapsed.value);
}else if (props.currentType == "deepNine") {
} else if (props.currentType == "deepNine") {
isCollapsed.value = !chatStore.deepNineCall;
console.log("深度九大模型页面", isCollapsed.value);
}
@ -642,12 +643,22 @@ const changeTopStatus = async (isTop, id) => {
}
await changeTop({
model: props.currentType == "AIchat" ? 1 : props.currentType == "AiEmotion" ? 2 : 3,
model:
props.currentType == "AIchat"
? 1
: props.currentType == "AiEmotion"
? 2
: 3,
recordId: id,
isTop: isTop == 1 ? 0 : 1,
});
await getHistoryList({
model: props.currentType == "AIchat" ? 1 : props.currentType == "AiEmotion" ? 2 : 3,
model:
props.currentType == "AIchat"
? 1
: props.currentType == "AiEmotion"
? 2
: 3,
token: localStorage.getItem("localToken"),
});
} catch (error) {
@ -676,7 +687,7 @@ const openHistory = () => {
chatStore.aiChatCall = true;
} else if (props.currentType == "AiEmotion") {
chatStore.aiEmotionCall = true;
}else if (props.currentType == "deepNine") {
} else if (props.currentType == "deepNine") {
chatStore.deepNineCall = true;
}
};
@ -687,14 +698,17 @@ const closeHistory = () => {
chatStore.aiChatCall = false;
} else if (props.currentType == "AiEmotion") {
chatStore.aiEmotionCall = false;
}else if (props.currentType == "deepNine") {
} else if (props.currentType == "deepNine") {
chatStore.deepNineCall = false;
}
};
const historyData = ref({});
const selectRecord = async (record) => {
if (props.currentType == "AIchat" && chatStore.firstAPICall) {
if (
(props.currentType == "AIchat" || props.currentType == "deepNine") &&
chatStore.firstAPICall
) {
ElMessage.warning("正在获取回复中,请稍后");
return;
}
@ -702,7 +716,12 @@ const selectRecord = async (record) => {
try {
selectedRecordId.value = record.id;
const result = await clickRecordAPI({
model: props.currentType == "AIchat" ? 1 : props.currentType == "AiEmotion" ? 2 : 3,
model:
props.currentType == "AIchat"
? 1
: props.currentType == "AiEmotion"
? 2
: 3,
parentId: record.parentId,
recordId: record.id,
});
@ -715,13 +734,14 @@ const selectRecord = async (record) => {
chatStore.aiChatCall = false;
} else if (props.currentType == "AiEmotion") {
chatStore.aiEmotionCall = false;
}else if (props.currentType == "deepNine") {
} else if (props.currentType == "deepNine") {
chatStore.deepNineCall = false;
}
}
dataStore.isFeedback = false;
historyData.value = result.data;
chatStore.dbqbClickRecord = historyData.value;
deepNineStore.dbqbClickRecord=historyData.value
//
const stockData = {
queryText: result.data.keyword, // 使keyword
@ -764,13 +784,23 @@ const deleteRecord = (id) => {
const deleteRecordConfirm = async () => {
try {
const result = await deleteRecordAPI({
model: props.currentType == "AIchat" ? 1 : props.currentType == "AiEmotion" ? 2 : 3,
model:
props.currentType == "AIchat"
? 1
: props.currentType == "AiEmotion"
? 2
: 3,
recordId: delObj.value.id,
});
console.log(result.msg);
closeDeleteDialog();
await getHistoryList({
model: props.currentType == "AIchat" ? 1 : props.currentType == "AiEmotion" ? 2 : 3,
model:
props.currentType == "AIchat"
? 1
: props.currentType == "AiEmotion"
? 2
: 3,
token: localStorage.getItem("localToken"),
});
} catch (e) {
@ -802,7 +832,12 @@ watch(
(newVal) => {
if (chatStore.searchRecord) {
getHistoryList({
model: props.currentType == "AIchat" ? 1 : props.currentType == "AiEmotion" ? 2 : 3,
model:
props.currentType == "AIchat"
? 1
: props.currentType == "AiEmotion"
? 2
: 3,
token: localStorage.getItem("localToken"),
});
chatStore.searchRecord = false;
@ -819,7 +854,12 @@ watch(
(newVal) => {
if (deepNineStore.searchRecord) {
getHistoryList({
model: props.currentType == "deepNine" ? 3 : props.currentType == "AIchat" ? 1 : 2,
model:
props.currentType == "deepNine"
? 3
: props.currentType == "AIchat"
? 1
: 2,
token: localStorage.getItem("localToken"),
});
deepNineStore.searchRecord = false;

74
src/views/deepNine.vue

@ -1569,11 +1569,9 @@ watch(
// const ac33 = result22.data.zjqssc1;
const ac34 = `<p style="margin:0;color:#FFD700;font-weight:bold;display:flex;justify-content:center;font-size:22px">【资金趋势导航】</p><p>`;
const ac35 = result22.data.zjqssc1;
// const ac3 = `<p>${result23.data.DXTSC}</p><p>${result23.data.DXTSC2}</p><p>${result23.data.ZJQSSC1}</p>`;
const ac3Arr = [];
ac3Arr.push(ac31);
@ -1976,8 +1974,7 @@ watch(
if (
!clickRecord.value.wokeFlowData.One ||
!clickRecord.value.wokeFlowData.Two ||
!clickRecord.value.wokeFlowData.Three ||
!clickRecord.value.wokeFlowData.Four
!clickRecord.value.wokeFlowData.Three
) {
return;
}
@ -1985,18 +1982,25 @@ watch(
//
chatStore.messages = [];
chatStore.messages.push({
const userAudioArray = [
clickRecord.value.wokeFlowData.One.link1,
clickRecord.value.wokeFlowData.One.link,
clickRecord.value.wokeFlowData.Two.link3,
];
// if (clickRecord.value.wokeFlowData.Two.link2) {
// userAudioArray.push(clickRecord.value.wokeFlowData.Two.link2);
// }
userAudioArray.push(clickRecord.value.wokeFlowData.Two.link1);
userAudioArray.push(clickRecord.value.wokeFlowData.Three.link);
const userContent = {
sender: "user",
timestamp: clickRecord.value.createdTime,
content: clickRecord.value.keyword,
audioArray: [
clickRecord.value.wokeFlowData.One.url,
clickRecord.value.wokeFlowData.Two.url,
clickRecord.value.wokeFlowData.Three.url,
clickRecord.value.wokeFlowData.Four.url,
],
audioArray: userAudioArray,
audioStatus: false,
});
};
chatStore.messages.push(userContent);
chatStore.messages.push({
sender: "ai",
@ -2021,7 +2025,7 @@ watch(
content: pc1,
});
const nineTurns = clickRecord.value.stockData.nineTurns;
const nineTurns = clickRecord.value.stockData.data;
// K线
if (
nineTurns &&
@ -2096,6 +2100,7 @@ watch(
}
});
}
// -
chatStore.messages.push({
sender: "ai",
class: "title2",
@ -2103,64 +2108,64 @@ watch(
content: "",
});
const pc2 = marked(clickRecord.value.wokeFlowData.Two.hxjzpg);
//
// -
chatStore.messages.push({
sender: "ai",
class: "content3",
type: "content3",
content: pc2,
type: "img1",
content:
"https://d31zlh4on95l9h.cloudfront.net/images/5baa0a449cf74fb6a1afb1c909a21194.png",
});
// -
chatStore.messages.push({
sender: "ai",
class: "title3",
type: "title3",
content: title2,
content:
"https://d31zlh4on95l9h.cloudfront.net/images/9ab9d76b6906eb914fa1842dbcd56841.png",
});
const ac3 = `<p style="margin:0;color:#FFD700;font-weight:bold;display:flex;justify-content:center;font-size:22px">【主力行为】</p><p>${clickRecord.value.wokeFlowData.Three.zhuli1}</p><p>${clickRecord.value.wokeFlowData.Three.zhuli2}</p><p>${clickRecord.value.wokeFlowData.Three.zhuli3}</p>`;
// 1
const pc2 = marked(clickRecord.value.wokeFlowData.One.jgkjfx);
//
chatStore.messages.push({
sender: "ai",
class: "content3",
type: "content3",
content: ac3,
isTyping: true,
content: pc2,
});
// -
chatStore.messages.push({
sender: "ai",
class: "title3",
type: "title3",
content: title3,
content:
" https://d31zlh4on95l9h.cloudfront.net/images/f95c44f83b3e3c52e88964631c199060.png",
});
const arr = clickRecord.value.wokeFlowData.Three.kongjian.split(",");
const kongjian = `<p style="margin:0;color:#FFD700;font-weight:bold;display:flex;justify-content:center;font-size:22px">【空间维度】</p><p style="display:flex;justify-content:center;">${arr[0]},${arr[1]}</p><p style="display:flex;justify-content:center;">${arr[2]},${arr[3]}</p>`;
const shijian = `<p style="margin:0;color:#FFD700;font-weight:bold;display:flex;justify-content:center;font-size:22px">【时间维度】</p><p style="display:flex;justify-content:center;">${clickRecord.value.wokeFlowData.Three.shijian}</p>`;
const nengliang = `<p style="margin:0;color:#FFD700;font-weight:bold;display:flex;justify-content:center;font-size:22px">【能量维度】</p><p style="display:flex;justify-content:center;">${clickRecord.value.wokeFlowData.Three.nengliang}</p>`;
const ac4 = kongjian + shijian + nengliang;
const ac3 = `<p style="margin:0;color:#FFD700;font-weight:bold;display:flex;justify-content:center;font-size:22px">【资金异动信号】</p><p>${clickRecord.value.wokeFlowData.Two.dxtsc}</p><p style="margin:0;color:#FFD700;font-weight:bold;display:flex;justify-content:center;font-size:22px">【资金趋势导航】</p><p>${clickRecord.value.wokeFlowData.Two.zjqssc1}</p>`;
//
chatStore.messages.push({
sender: "ai",
class: "content3",
type: "content3",
content: ac4,
content: ac3,
isTyping: true,
});
// -
chatStore.messages.push({
sender: "ai",
class: "title3",
type: "title3",
content: title4,
content:
"https://d31zlh4on95l9h.cloudfront.net/images/ce71f75008422ed70e88b1ae0bc4d550.png",
});
const cftj = `<p style="margin:0;color:#FFD700;font-weight:bold;display:flex;justify-content:center;font-size:22px">【触发条件】</p><p>${clickRecord.value.wokeFlowData.Four.cftl}</p>`;
const gfzl = `<p style="margin:0;color:#FFD700;font-weight:bold;display:flex;justify-content:center;font-size:22px">【攻防指令】</p><p>${clickRecord.value.wokeFlowData.Four.gfzl}</p>`;
const ac5 = cftj + gfzl;
// 4
const ac5 = `<p>${clickRecord.value.wokeFlowData.Three.zjqssc2}</p>`;
//
chatStore.messages.push({
@ -2169,7 +2174,6 @@ watch(
type: "content3",
content: ac5,
});
chatStore.messages.push({
sender: "ai",
class: "mianze",

Loading…
Cancel
Save