|
@@ -20,7 +20,7 @@ import { SIMULATE_ENUM } from './components/config';
|
|
|
const { recommendList } = useRecommend({type: 1});
|
|
|
const { scrollRef, scrollToTop, scrollToBottom, scrollToBottomIfAtBottom } = useScroll();
|
|
|
const { refetch, cancelFetch } = useFetchStream("/grpc/decisionStream", { methdos: 'POST' }, false);
|
|
|
-const { recordList, isFetching, onScrolltolower, onRestore, addHistoryRecord } = useInfinite('/front/bigModel/warning/pageList', { type: 0, warningStatus: 0 });
|
|
|
+const { recordList, isFetching, onScrolltolower, onRestore } = useInfinite('/front/bigModel/warning/pageList', { type: 0, warningStatus: 0 });
|
|
|
|
|
|
const router = useRouter();
|
|
|
const chatStore = useChatStore();
|
|
@@ -110,30 +110,37 @@ const columns = [
|
|
|
}
|
|
|
]
|
|
|
|
|
|
-// 新建对话
|
|
|
-const handleCreateDialog = () => {
|
|
|
- console.log("handleCreateDialog");
|
|
|
-}
|
|
|
-
|
|
|
-const handleLoad = () => {
|
|
|
- console.log("loading")
|
|
|
-}
|
|
|
-
|
|
|
const handleModelVisible = () => {
|
|
|
visible.value = true;
|
|
|
}
|
|
|
|
|
|
+const resetConfiguration = () => {
|
|
|
+ /**
|
|
|
+ * 临时这样,后续统一处理
|
|
|
+ * */
|
|
|
+ textDataSources.value = '';
|
|
|
+ answerLoading.value = false;
|
|
|
+ answerResult.value = [];
|
|
|
+ flowParams.feedback = '';
|
|
|
+ flowParams.category = '';
|
|
|
+ flowParams.warningId = '';
|
|
|
+ flowParams.simulate = '{}';
|
|
|
+ cancelFetch();
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 报警详情
|
|
|
*/
|
|
|
const handleOpenContent = async ({ id, category }) => {
|
|
|
|
|
|
if ( id == flowParams.warningId ) return;
|
|
|
-
|
|
|
+
|
|
|
flowParams.category = category;
|
|
|
flowParams.warningId = id;
|
|
|
flowParams.feedback = '';
|
|
|
flowParams.simulate = '{}';
|
|
|
+ answerLoading.value = false;
|
|
|
+ cancelFetch();
|
|
|
|
|
|
const { data } = await waterApi.getWaringDetails(id);
|
|
|
const res = await waterApi.getWaringForecast(id);
|
|
@@ -265,17 +272,11 @@ const handleOpenContent = async ({ id, category }) => {
|
|
|
}
|
|
|
|
|
|
const onChangeTabs = warningStatus => {
|
|
|
- textDataSources.value = '';
|
|
|
- answerLoading.value = false;
|
|
|
- answerResult.value = [];
|
|
|
- flowParams.feedback = '';
|
|
|
- flowParams.category = '';
|
|
|
- flowParams.warningId = '';
|
|
|
- flowParams.simulate = '{}';
|
|
|
- cancelFetch();
|
|
|
- onRestore({ warningStatus })
|
|
|
+ resetConfiguration();
|
|
|
+ onRestore({ warningStatus });
|
|
|
}
|
|
|
|
|
|
+// 生成流数据
|
|
|
const onRegenerate = async () => {
|
|
|
|
|
|
answerLoading.value = true;
|
|
@@ -573,12 +574,10 @@ const handleWelcomeRecommend = question => {
|
|
|
:delay-loading="answerLoading"
|
|
|
:toggleVisibleIcons="false"
|
|
|
v-show="answerLoading"
|
|
|
- loadingText="内容生成中,大概需要50秒..."
|
|
|
+ loadingText="内容生成中123,大概需要50秒..."
|
|
|
></ChatAnswer>
|
|
|
-
|
|
|
</TheChatView>
|
|
|
</section>
|
|
|
-
|
|
|
<CustomModal
|
|
|
v-model:visible="visible"
|
|
|
:current-data="modalData"
|