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