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 @@ + + + + + + + + + + + + + + + + 查询 + + + 清空 + + + 提问 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + 暂无数据 + + + + + + + + + + + + + + + + + + 正在加载数据 + + + + + + + + + + + + + + + + + + + + + + 国内标准 + 海外标准 + 企业标准 + 公共 + + + + + + + + 选择标准 + + + {{ questionForm.standSortShow }} {{questionForm.standNumber }}-{{ questionForm.standYear }} + + + {{questionForm.standardName}} + + + + + + + + + 将文件拖到此处,或点击上传 + + + + + + 相似历史问题: + + + {{item.problemDescription}} + {{item.questionTime}} + + + + 取 消 + 提 交 + + + + + + + + + + + + + + + + + + + 查询 + + + + + 清空 + + + + 数据获取中 + + + + + + + + + {{ scope.row.standSortShow }} {{ + scope.row.standNumber + }}-{{ scope.row.standYear }} + {{ scope.row.standSortShow }} {{ + scope.row.standNumber + }}-{{ scope.row.standYear }} + + {{ scope.row.standSortShow }} + {{ scope.row.standNumber }} + + + + + {{ scope.row.standName }} + {{ scope.row.standName }} + + + + + {{ formatIssueDate(scope.row.issueTime) }} + {{ formatIssueDate(scope.row.issueTime) }} + + + + + + {{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }} + {{ scope.row.ssrq }} + + + + + + + {{ scope.row.xcxssrq ? scope.row.xcxssrq.substring(0, 10) : '-' }} + {{ scope.row.xcxssrq }} + + + + + {{ scope.row.zccssrq ? scope.row.zccssrq.substring(0, 10) : '-' }} + {{ scope.row.zccssrq }} + + + + + {{ + textStatusMap[scope.row.textStatus] + }} + {{ textStatusMap[scope.row.textStatus] }} + + + + + + + {{ + scope.row.standSortShow + }} {{ scope.row.standNumber }}-{{ scope.row.standYear }} + {{ + scope.row.standSortShow + }} {{ scope.row.standNumber }}-{{ scope.row.standYear }} + {{ + scope.row.standSortShow + }} {{ scope.row.standNumber }}-{{ scope.row.standYear }} + {{ + scope.row.standSortShow + }} + {{ scope.row.standNumber }} + + + + + {{ + scope.row.standName + }} + {{ + scope.row.standName + }} + {{ + scope.row.standName + }} + + + + + + {{ formatIssueDate(scope.row.issueTime) }} + + + {{ formatIssueDate(scope.row.issueTime) }} + + + {{ formatIssueDate(scope.row.issueTime) }} + + + + + + + {{ + scope.row.ssrq + }} + {{ + scope.row.ssrq + }} + {{ scope.row.ssrq }} + + + + + + {{ + scope.row.xcxssrq + }} + {{ + scope.row.xcxssrq + }} + {{ + scope.row.xcxssrq + }} + + + + + {{ + scope.row.zccssrq + }} + {{ + scope.row.zccssrq + }} + {{ + scope.row.zccssrq + }} + + + + + {{ + textStatusMap[scope.row.textStatus] + }} + {{ + textStatusMap[scope.row.textStatus] + }} + {{ textStatusMap[scope.row.textStatus] }} + + + + + + + + {{ scope.row.standCode }} + {{ scope.row.standCode }} + {{ scope.row.standCode }} + + + + + {{ scope.row.standName }} + {{ scope.row.standName }} + {{ scope.row.standName }} + + + + + {{ scope.row.standEnName }} + {{ scope.row.standEnName }} + {{ scope.row.standEnName }} + + + + + {{scope.row.issueTime}} + {{scope.row.issueTime}} + {{scope.row.issueTime}} + + + + + {{scope.row.putTime}} + {{scope.row.putTime}} + {{scope.row.putTime}} + + + + + + {{scope.row.standStatusShow}} + + + {{scope.row.standStatusShow}} + + + {{scope.row.standStatusShow}} + + + + + + + + + + + + + + + + + + + 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',