From 30643a027312a9ea41a73348ad8955d3c2360ed8 Mon Sep 17 00:00:00 2001 From: zyn Date: Tue, 11 Apr 2023 13:12:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../details/otherStandardDetails/index.vue | 71 +++++++++++-------- 1 file changed, 43 insertions(+), 28 deletions(-) diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index b7c746d0b..e3f64f0ca 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -2657,36 +2657,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 + }, + }) + } + }).catch(e =>{ + console.log(e) + }) + }) // this.$router.push({ // // path: '/standQA',