首页-标准问答
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
prop="problemDescription"
|
||||
label="问题描述"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<a class="table-jump" @click="handleClick(scope.row.id)">{{ scope.row.problemDescription }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="questioner"
|
||||
@@ -63,6 +66,12 @@ export default {
|
||||
togo () {
|
||||
this.$router.push({path:'/releaseQA2'})
|
||||
},
|
||||
handleClick (id) {
|
||||
this.$router.push({
|
||||
path:'/standQA',
|
||||
query: { id }
|
||||
})
|
||||
},
|
||||
getDate(){
|
||||
this.loading = true
|
||||
let form = this.form
|
||||
|
||||
@@ -664,8 +664,21 @@ export default {
|
||||
this.pubOptions = res.data.DYGGWT //问答公共问题
|
||||
}, e => {
|
||||
});
|
||||
|
||||
this.toAnswer()
|
||||
},
|
||||
methods:{
|
||||
toAnswer () {
|
||||
if (this.$route.query && this.$route.query.id) {
|
||||
this.$http._getData('/lawss/AskQuestions/askQuestionById',{
|
||||
id: this.$route.query.id
|
||||
}).then(res => {
|
||||
if (res.ok){
|
||||
this.handleDetail(res.data)
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
formatClassification(e){
|
||||
for (let i=0; i<this.classificationOption.length; i++){
|
||||
if(e.classification === this.classificationOption[i].value){
|
||||
|
||||
Reference in New Issue
Block a user