问答跳转
This commit is contained in:
@@ -313,7 +313,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>
|
||||
@@ -778,12 +778,40 @@ export default {
|
||||
problemDescription: '', //关键词/问题描述
|
||||
},
|
||||
answerList: [],
|
||||
answer: '',
|
||||
standList: [],
|
||||
standIdList: [],
|
||||
questionsList: [],
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
this.standSearch()
|
||||
if(this.$route.query.queId){
|
||||
this.questionSerach.standardName = this.$route.query.standName
|
||||
this.questionSerach.classification = this.$route.query.standType
|
||||
this.activeName = this.$route.query.standType
|
||||
this.standSearch()
|
||||
}else{
|
||||
switch (this.$route.query.standType){
|
||||
case 'INLAND':
|
||||
this.standSearch2()
|
||||
break
|
||||
case 'FOREIGN':
|
||||
this.activeName = 'FOREIGN'
|
||||
this.questionSerach.classification = 'FOREIGN'
|
||||
this.standSearch2()
|
||||
break
|
||||
case 'BUSINESS_STAND':
|
||||
this.activeName = 'BUSINESS_STAND'
|
||||
this.questionSerach.classification = 'BUSINESS_STAND'
|
||||
this.standSearch2()
|
||||
break
|
||||
case 'OTHER':
|
||||
this.activeName = 'OTHER'
|
||||
this.questionSerach.classification = 'OTHER'
|
||||
this.standSearch2()
|
||||
break
|
||||
}
|
||||
}
|
||||
// 查询各下拉框数据
|
||||
this.$http.get("sys/dictype/getDicTypeListCode", "", {
|
||||
_this: this,
|
||||
@@ -808,8 +836,18 @@ export default {
|
||||
}
|
||||
}),
|
||||
//点击跳转问题详情
|
||||
historyJump(id){
|
||||
this.$router.push('/standQA')
|
||||
historyJump(item){
|
||||
this.$router.push({
|
||||
path: '/standQA',
|
||||
query:{
|
||||
standId: item.standardId,
|
||||
queId: item.id,
|
||||
sourceType: 'dialog',
|
||||
standType: item.classification,
|
||||
standName: item.standardName,
|
||||
}
|
||||
})
|
||||
this.dialogVisible = false
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview(item) {
|
||||
@@ -1049,7 +1087,6 @@ export default {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.questionsList = res.data
|
||||
console.log(this.questionsList);
|
||||
})
|
||||
},
|
||||
//回答查询
|
||||
@@ -1069,6 +1106,29 @@ export default {
|
||||
_this: this
|
||||
}, res =>{
|
||||
this.standList = res.data
|
||||
if(this.$route.query.queId){
|
||||
this.activestand = this.standList[0].standardId
|
||||
this.queSearch()
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
standSearch2(){
|
||||
let qId = this.$route.query.standId
|
||||
let queNumber = 0
|
||||
this.standList = []
|
||||
this.$http.get('lawss/AskQuestions/getAskQuestionsDetails',{ ...this.questionSerach },{
|
||||
_this: this
|
||||
}, res =>{
|
||||
res.data.forEach(item => {
|
||||
if(item.standardId === qId){
|
||||
this.standList.push(item)
|
||||
queNumber++
|
||||
}
|
||||
})
|
||||
if(queNumber === 0){
|
||||
this.standList = res.data
|
||||
}
|
||||
}, e => {
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user