diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue index ec2303410..8556ce49f 100644 --- a/src/pages/details/otherBussStandardDetails/index.vue +++ b/src/pages/details/otherBussStandardDetails/index.vue @@ -334,7 +334,7 @@ 更新记录 标准问答 - 标准需求(翻译)申请流程 + 标准需求(翻译)申请流程 @@ -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..297ccbe34 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -37,7 +37,7 @@ @click="collectClick()"> 更新记录 标准问答 - 标准需求(翻译)申请流程 + 标准需求(翻译)申请流程 @@ -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', - } - }) + 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.$router.push({ + // // path: '/standQA', + // query: { + // standId: this.$route.params.id, + // standType: this.sarStandardsInfoEO.standType, + // sourceType: 'details', + // }, + // name: 'MyQuestions2', + // }) }, // 获取知识点列表数据 getKnowList() { diff --git a/src/pages/home2/components/todoList/index.vue b/src/pages/home2/components/todoList/index.vue index f1170da41..39023f501 100644 --- a/src/pages/home2/components/todoList/index.vue +++ b/src/pages/home2/components/todoList/index.vue @@ -1,6 +1,6 @@