问答跳转

This commit is contained in:
宋伟佳
2022-06-10 13:36:39 +08:00
parent 418fcc3022
commit 36091d8611
7 changed files with 124 additions and 29 deletions
@@ -36,7 +36,6 @@ export default {
immediate: true,
deep: true,
handler(val){
console.log(val);
}
}
}
@@ -817,7 +817,7 @@
</div>
<span>相似历史问题:</span>
<div style="height: 200px; width: 80%; margin-left: 80px;">
<div v-for="item in historyList" :key="item.id" @click="historyJump(item.id)">
<div v-for="item in historyList" :key="item.id" @click="historyJump(item)">
<span class="history-item">{{item.problemDescription}}</span>
<span class="history-item">{{item.questionTime}}</span>
</div>
@@ -1334,8 +1334,18 @@ export default {
}
}),
//点击跳转问题详情
historyJump(id){
this.$router.push('/standQA')
historyJump(item){
this.$router.push({
path: '/standQA',
query:{
standId: item.standardId,
queId: item.id,
standType: item.classification,
sourceType: 'dialog',
standName: item.standardName,
}
})
this.dialogVisible = false
},
// 点击查看
handlePreview(item) {