From f32a0a93c2ba51d1cc09a10cddeeac61e330ba57 Mon Sep 17 00:00:00 2001 From: zyn Date: Tue, 4 Apr 2023 18:48:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E6=B3=95=E8=A7=84=E5=BA=93-?= =?UTF-8?q?=E6=A0=87=E5=87=86=E9=97=AE=E7=AD=94=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../otherBussStandardDetails/index.vue | 54 +- .../details/otherStandardDetails/index.vue | 57 +- .../personal/pages/my-questions/index3.vue | 2136 +++++++++++++++++ src/router/index.js | 9 + 4 files changed, 2241 insertions(+), 15 deletions(-) create mode 100644 src/pages/personal/pages/my-questions/index3.vue diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue index ec2303410..44165c42e 100644 --- a/src/pages/details/otherBussStandardDetails/index.vue +++ b/src/pages/details/otherBussStandardDetails/index.vue @@ -2962,16 +2962,56 @@ export default { this.relateDialog1 = true this.relateNowList1 = list }, + selectAskReply(){ + return new Promise((resolve,reject)=>{ + this.$http.post('lawss/AskQuestions/selectAskReply', { + id: this.$route.params.id + }, { + _this: this + }, res => { + resolve(res) + },e => reject(e)); + }) + }, //标准问答按钮 knowledgeSharing() { - this.$router.push({ - path: '/standQA', - query:{ - standId: this.$route.params.id, - standType: 'BUSINESS_STAND', - sourceType: 'details', - } + 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", + classification: data.classification, + id: this.$route.params.id, + dialogVisible: false + }, + }) + } + }).catch(e =>{ + console.log(e) }) + + // this.$router.push({ + // // path: '/standQA', + // query: { + // standId: this.$route.params.id, + // standType: this.sarStandardsInfoEO.standType, + // sourceType: 'details', + // }, + // name: 'MyQuestions2', + // }) }, // 更新LOG relateEvent () { diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index a504c20cb..a02274591 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -2634,16 +2634,57 @@ export default { pageSizeChange1() { this.getKnowList() }, + selectAskReply(){ + return new Promise((resolve,reject)=>{ + this.$http.post('lawss/AskQuestions/selectAskReply', { + id: this.$route.params.id + }, { + _this: this + }, res => { + resolve(res) + },e => reject(e)); + }) + }, //标准问答按钮 knowledgeSharing() { - this.$router.push({ - path: '/standQA', - query: { - standId: this.$route.params.id, - standType: this.sarStandardsInfoEO.standType, - sourceType: 'details', - } - }) + console.log(this.$route.params.id) + 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", + classification: data.classification, + id: this.$route.params.id, + dialogVisible: false + }, + }) + } + }).catch(e =>{ + console.log(e) + }) + + // this.$router.push({ + // // path: '/standQA', + // query: { + // standId: this.$route.params.id, + // standType: this.sarStandardsInfoEO.standType, + // sourceType: 'details', + // }, + // name: 'MyQuestions2', + // }) }, // 获取知识点列表数据 getKnowList() { diff --git a/src/pages/personal/pages/my-questions/index3.vue b/src/pages/personal/pages/my-questions/index3.vue new file mode 100644 index 000000000..9cc50d46a --- /dev/null +++ b/src/pages/personal/pages/my-questions/index3.vue @@ -0,0 +1,2136 @@ + + + + + + diff --git a/src/router/index.js b/src/router/index.js index fa6658dbd..7299ca608 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -338,6 +338,15 @@ const routes = [ requireAuth: false, title: '我的问答' } + }, + { + path: '/questions3', + name: 'MyQuestions3', + component: resolve => require(['@/pages/personal/pages/my-questions/index3.vue'], resolve), + meta: { + requireAuth: false, + title: '我的问答' + } }, { path: '/questionDetail',