Merge branch 'feature/feature-20250430-h5' into uat

# Conflicts:
#	src/views/Survey/Index.vue
This commit is contained in:
Huangzhe
2025-05-25 13:48:30 +08:00
3 changed files with 10 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ export const useQuestionStore = defineStore('questionStore', () => {
let { data } = await AnswerApi.getQuetions({
id: urlParamSearch.get('sn'),
data: {
is_preview: 1,
is_preview: 0,
is_template: urlParamSearch.get('is_template') || 0,
source: urlParamSearch.get('source') ?? ''
}

View File

@@ -7,13 +7,13 @@
@click="() => $router.push({ name: 'search' })"
/> -->
</div>
<div v-loading="requestLoading" class="new-survey-container">
<div class="new-survey-container" v-loading="requestLoading">
<div style="margin-bottom: 80px">
<van-list v-model:loading="loading" :finished="finished" @load="handleLoadSurveys">
<van-list @load="handleLoadSurveys" v-model:loading="loading" :finished="finished">
<template #finished>
<!-- 如果存在搜索文字的话显示没有更多了 -->
<span v-if="searchValue">
<el-text>没有更多了</el-text>
<el-text>无符合要求的结果</el-text>
</span>
</template>

View File

@@ -11,6 +11,7 @@ import Wait from '@/views/Survey/views/Analysis/components/Wait/Index.vue';
import AnalysisInfo from '@/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue';
import SearchBar from '@/components/Search/Index.vue';
import { fetchSingleSurvey } from '@/hooks/request/useSurvey';
import { onMounted, onUnmounted } from 'vue';
const route = useRoute();
@@ -28,6 +29,11 @@ const { currentSurvey } = fetchSingleSurvey(sn.value);
aiInsightsConfig.value.message = '';
const { questionAnalysis } = useFetchAnalysis(sn.value);
onUnmounted(() => {
// 当组件取消挂载之后, 手动调节 aiInsightsConfig 的状态
aiInsightsConfig.value.visible = false;
});
</script>
<template>