diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue index 049871ad2..ebaffa63c 100644 --- a/src/pages/details/otherBussStandardDetails/index.vue +++ b/src/pages/details/otherBussStandardDetails/index.vue @@ -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: {