|
@@ -75,6 +75,7 @@
|
|
|
<div class="ai_echartsData" v-if="currentAnalysis && currentAnalysis.json.keyword">
|
|
<div class="ai_echartsData" v-if="currentAnalysis && currentAnalysis.json.keyword">
|
|
|
{{ currentAnalysis.json.keyword }}
|
|
{{ currentAnalysis.json.keyword }}
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="generatingContent" v-if="currentAnalysis && currentAnalysis.loading">{{lang.ssGeneratingContent}}...</div>
|
|
|
<div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
|
|
<div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -146,6 +147,7 @@
|
|
|
<span v-for="(item,index) in currentAnalysis.json.keyword" :key="index">{{ item }}</span>
|
|
<span v-for="(item,index) in currentAnalysis.json.keyword" :key="index">{{ item }}</span>
|
|
|
<div class="btn" @click="openEchatsDialog()">{{ lang.ssViewKeywordCloud }}</div>
|
|
<div class="btn" @click="openEchatsDialog()">{{ lang.ssViewKeywordCloud }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="generatingContent" v-if="currentAnalysis && currentAnalysis.generatingContent">{{ lang.ssGeneratingContent }}...</div>
|
|
|
<div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
|
|
<div class="ai_updateTime" v-if="currentAnalysis">{{ lang.ssUpdateTime }}:{{ currentAnalysis.update_at }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -910,6 +912,7 @@ const aiAnalysisRefresh45 = () => {
|
|
|
pid: props.workId,
|
|
pid: props.workId,
|
|
|
index: props.showData.workIndex,
|
|
index: props.showData.workIndex,
|
|
|
loading: true,
|
|
loading: true,
|
|
|
|
|
+ generatingContent: true,
|
|
|
json: { text: '', echartsData: '' },
|
|
json: { text: '', echartsData: '' },
|
|
|
noEnd: true,
|
|
noEnd: true,
|
|
|
update_at: '',
|
|
update_at: '',
|
|
@@ -929,7 +932,7 @@ const aiAnalysisRefresh45 = () => {
|
|
|
if (event.type === 'message') {
|
|
if (event.type === 'message') {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
- }).json = event.data
|
|
|
|
|
|
|
+ }).json.text = event.data
|
|
|
|
|
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
@@ -938,7 +941,7 @@ const aiAnalysisRefresh45 = () => {
|
|
|
else if (event.type === 'messageEnd') {
|
|
else if (event.type === 'messageEnd') {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
- }).json = event.data
|
|
|
|
|
|
|
+ }).json.text = event.data
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
}).noEnd = false
|
|
}).noEnd = false
|
|
@@ -988,6 +991,7 @@ const aiAnalysisRefresh15 = () => {
|
|
|
pid: props.workId,
|
|
pid: props.workId,
|
|
|
index: props.showData.workIndex,
|
|
index: props.showData.workIndex,
|
|
|
loading: true,
|
|
loading: true,
|
|
|
|
|
+ generatingContent: true,
|
|
|
json: { text: '', echartsData: '' },
|
|
json: { text: '', echartsData: '' },
|
|
|
noEnd: true,
|
|
noEnd: true,
|
|
|
update_at: '',
|
|
update_at: '',
|
|
@@ -1001,14 +1005,21 @@ const aiAnalysisRefresh15 = () => {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
}).json = { text: '', echartsData: '' }
|
|
}).json = { text: '', echartsData: '' }
|
|
|
|
|
+ aiAnalysisData.value.find((item: any) => {
|
|
|
|
|
+ return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
|
|
+ }).generatingContent = true
|
|
|
}
|
|
}
|
|
|
getWordCloud15().then((res) => {
|
|
getWordCloud15().then((res) => {
|
|
|
flag += 1
|
|
flag += 1
|
|
|
|
|
+ aiAnalysisData.value.find((item: any) => {
|
|
|
|
|
+ return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
|
|
+ }).generatingContent = false
|
|
|
if (flag == 2) {
|
|
if (flag == 2) {
|
|
|
saveAnalysis()
|
|
saveAnalysis()
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
|
|
chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
|
|
|
|
|
+ console.log(event)
|
|
|
if (event.type === 'message') {
|
|
if (event.type === 'message') {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
return item.pid === props.workId && item.index === props.showData.workIndex
|
|
@@ -1187,7 +1198,7 @@ const currentAnalysis = computed(() => {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
if (_result?.json?.echartsData) {
|
|
if (_result?.json?.echartsData) {
|
|
|
- _result.json.keyword = _result.json.echartsData?.series?.[0]?.data?.map((item: any) => item.name)
|
|
|
|
|
|
|
+ _result.json.keyword = _result.json.echartsData?.series?.[0]?.data?.slice(0, 5).map((item: any) => item.name)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|