标准法规库-标准问答跳转
This commit is contained in:
@@ -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 () {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user