企业标准 标准问答
This commit is contained in:
@@ -2973,37 +2973,51 @@ export default {
|
||||
},e => reject(e));
|
||||
})
|
||||
},
|
||||
jump(){
|
||||
return new Promise((resolve,reject)=>{
|
||||
this.$http.post('lawss/AskQuestions/jump', {
|
||||
standId: this.$route.params.id,
|
||||
userId : this.$store.getters.userInfo.userId,
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
resolve(res)
|
||||
},e => reject(e));
|
||||
})
|
||||
},
|
||||
//标准问答按钮
|
||||
knowledgeSharing() {
|
||||
this.selectAskReply()
|
||||
.then((res)=>{
|
||||
if( res && res.data.length === 0){
|
||||
this.$router.push({
|
||||
name: 'MyQuestions3',
|
||||
query: {
|
||||
activeName: "myQue",
|
||||
type: this.$route.params.pageType,
|
||||
id: this.$route.params.id,
|
||||
dialogVisible: true
|
||||
},
|
||||
})
|
||||
}else{
|
||||
const data = res.data[0].askQuestions
|
||||
this.$router.push({
|
||||
name: 'MyQuestions3',
|
||||
query: {
|
||||
activeName: "myQue",
|
||||
type: this.$route.params.pageType,
|
||||
// classification: data.classification,
|
||||
id: this.$route.params.id,
|
||||
dialogVisible: false
|
||||
},
|
||||
})
|
||||
}
|
||||
}).catch(e =>{
|
||||
console.log(e)
|
||||
this.jump().then(res => {
|
||||
let activeName = res.data
|
||||
this.selectAskReply()
|
||||
.then((res)=>{
|
||||
if( res && res.data.length === 0){
|
||||
this.$router.push({
|
||||
name: 'MyQuestions3',
|
||||
query: {
|
||||
activeName,
|
||||
type: this.$route.params.pageType,
|
||||
id: this.$route.params.id,
|
||||
dialogVisible: true
|
||||
},
|
||||
})
|
||||
}else{
|
||||
const data = res.data[0].askQuestions
|
||||
this.$router.push({
|
||||
name: 'MyQuestions3',
|
||||
query: {
|
||||
activeName,
|
||||
type: this.$route.params.pageType,
|
||||
// classification: data.classification,
|
||||
id: this.$route.params.id,
|
||||
dialogVisible: false
|
||||
},
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
// this.$router.push({
|
||||
// // path: '/standQA',
|
||||
// query: {
|
||||
|
||||
Reference in New Issue
Block a user