From cdca70c434da866d4c1f4d92348d67bd9a65869f Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 22 Oct 2025 21:09:09 +0800 Subject: [PATCH 1/2] fix(Dashboard):Fix the data distortion issue of bigInt type after adding it to the dashboard --- backend/apps/chat/curd/chat.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/apps/chat/curd/chat.py b/backend/apps/chat/curd/chat.py index 2c8a56a6..c18d9922 100644 --- a/backend/apps/chat/curd/chat.py +++ b/backend/apps/chat/curd/chat.py @@ -242,6 +242,14 @@ def get_chat_with_records(session: SessionDep, chart_id: int, current_user: Curr result = list(map(format_record, record_list)) + for row in result: + try: + data_value = row.get('data') + if data_value is not None: + row['data'] = format_json_data(data_value) + except Exception: + pass + chat_info.records = result return chat_info From 1c92c3ca835c66aaff1f445754c7220c670af8ee Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 22 Oct 2025 22:03:31 +0800 Subject: [PATCH 2/2] fix(Dashboard):Fixed the issue of displaying incorrect chart types when adding them again after selecting the chart type on the dashboard --- frontend/src/views/dashboard/editor/ChatChartSelection.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/dashboard/editor/ChatChartSelection.vue b/frontend/src/views/dashboard/editor/ChatChartSelection.vue index 7e704d04..f422aa73 100644 --- a/frontend/src/views/dashboard/editor/ChatChartSelection.vue +++ b/frontend/src/views/dashboard/editor/ChatChartSelection.vue @@ -80,10 +80,6 @@ const currentChat = ref(new ChatInfo()) const chartInfoList = ref>([]) const emits = defineEmits(['addChatChart']) -onMounted(() => { - getChatList() -}) - function selectChange(value: boolean, viewInfo: any) { if (value) { // @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -200,7 +196,10 @@ function getChatList() { const dialogInit = () => { dialogShow.value = true + currentChatId.value = undefined state.curMultiplexingComponents = [] + chartInfoList.value = [] + getChatList() } const saveMultiplexing = () => {