|
@@ -62,7 +62,12 @@
|
|
|
<div class="list_1" v-if="state.adviseList[state.adviseList.value].length > 0">
|
|
|
<template v-for="item in state.adviseList[state.adviseList.value]">
|
|
|
<div class="item">
|
|
|
- <span class="__hover" @click="ref_chat.setText(item, true)">{{item}}</span>
|
|
|
+ <template v-if="state.adviseList.value === 'question'">
|
|
|
+ <span class="__hover" @click="toGov(item)">{{item.title}}</span>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <span class="__hover" @click="ref_chat.setText(item, true)">{{item}}</span>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
@@ -164,7 +169,7 @@ import chatCom from './chat.vue'
|
|
|
import {
|
|
|
cmsAiQueryHotReclist,
|
|
|
cmsAiQueryHotThemelist,
|
|
|
- cmsAiQueryQuestionReclist, matterQueryMatterlist, policyInfoQueryPolicyInfolist
|
|
|
+ staticConQueryQuestionslist, matterQueryMatterlist, policyInfoQueryPolicyInfolist
|
|
|
} from "@/views/smart-ask-answer/assistant/cms/api";
|
|
|
|
|
|
const askSplit = 'd95839a9-1b75-8ba3-06e7-8fc46aff233b'
|
|
@@ -246,12 +251,12 @@ const initRelation = (text = '') => {
|
|
|
pageIndex: 1,
|
|
|
pageSize: 10,
|
|
|
condition: {
|
|
|
- questionContent: text
|
|
|
+ title: text
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- cmsAiQueryQuestionReclist(params1).then(res => {
|
|
|
- state.adviseList.question = res?.data?.list.map(v => v.questionContent) || []
|
|
|
+ staticConQueryQuestionslist(params1).then(res => {
|
|
|
+ state.adviseList.question = res?.data?.list || []
|
|
|
})
|
|
|
const params2 = {
|
|
|
data: {
|
|
@@ -278,6 +283,10 @@ const initRelation = (text = '') => {
|
|
|
state.adviseList.policy = res?.data?.list.map(v => v.contentTitle) || []
|
|
|
})
|
|
|
}
|
|
|
+const toGov = (val) => {
|
|
|
+ console.log(val)
|
|
|
+ window.open(`https://iport.ka.sz.gov.cn/szka/article?id=${val.id}&type=cjwt`, '_blank');
|
|
|
+}
|
|
|
onMounted(() => {
|
|
|
initTheme()
|
|
|
initRelation()
|