企业标准 标准问答

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