企业标准 标准问答

This commit is contained in:
zyn
2023-04-11 15:30:58 +08:00
parent 2fa44dad39
commit 703fc2f85c
@@ -2973,37 +2973,51 @@ export default {
},e => reject(e)); },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() { knowledgeSharing() {
this.selectAskReply() this.jump().then(res => {
.then((res)=>{ let activeName = res.data
if( res && res.data.length === 0){ this.selectAskReply()
this.$router.push({ .then((res)=>{
name: 'MyQuestions3', if( res && res.data.length === 0){
query: { this.$router.push({
activeName: "myQue", name: 'MyQuestions3',
type: this.$route.params.pageType, query: {
id: this.$route.params.id, activeName,
dialogVisible: true type: this.$route.params.pageType,
}, id: this.$route.params.id,
}) dialogVisible: true
}else{ },
const data = res.data[0].askQuestions })
this.$router.push({ }else{
name: 'MyQuestions3', const data = res.data[0].askQuestions
query: { this.$router.push({
activeName: "myQue", name: 'MyQuestions3',
type: this.$route.params.pageType, query: {
// classification: data.classification, activeName,
id: this.$route.params.id, type: this.$route.params.pageType,
dialogVisible: false // classification: data.classification,
}, id: this.$route.params.id,
}) dialogVisible: false
} },
}).catch(e =>{ })
console.log(e) }
})
}) })
// this.$router.push({ // this.$router.push({
// // path: '/standQA', // // path: '/standQA',
// query: { // query: {