标准法规库-标准问答跳转
This commit is contained in:
@@ -2962,16 +2962,56 @@ export default {
|
|||||||
this.relateDialog1 = true
|
this.relateDialog1 = true
|
||||||
this.relateNowList1 = list
|
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() {
|
knowledgeSharing() {
|
||||||
this.$router.push({
|
this.selectAskReply()
|
||||||
path: '/standQA',
|
.then((res)=>{
|
||||||
query:{
|
if( res && res.data.length === 0){
|
||||||
standId: this.$route.params.id,
|
this.$router.push({
|
||||||
standType: 'BUSINESS_STAND',
|
name: 'MyQuestions3',
|
||||||
sourceType: 'details',
|
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
|
// 更新LOG
|
||||||
relateEvent () {
|
relateEvent () {
|
||||||
|
|||||||
@@ -2634,16 +2634,57 @@ export default {
|
|||||||
pageSizeChange1() {
|
pageSizeChange1() {
|
||||||
this.getKnowList()
|
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() {
|
knowledgeSharing() {
|
||||||
this.$router.push({
|
console.log(this.$route.params.id)
|
||||||
path: '/standQA',
|
this.selectAskReply()
|
||||||
query: {
|
.then((res)=>{
|
||||||
standId: this.$route.params.id,
|
if( res && res.data.length === 0){
|
||||||
standType: this.sarStandardsInfoEO.standType,
|
this.$router.push({
|
||||||
sourceType: 'details',
|
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() {
|
getKnowList() {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -338,6 +338,15 @@ const routes = [
|
|||||||
requireAuth: false,
|
requireAuth: false,
|
||||||
title: '我的问答'
|
title: '我的问答'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/questions3',
|
||||||
|
name: 'MyQuestions3',
|
||||||
|
component: resolve => require(['@/pages/personal/pages/my-questions/index3.vue'], resolve),
|
||||||
|
meta: {
|
||||||
|
requireAuth: false,
|
||||||
|
title: '我的问答'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/questionDetail',
|
path: '/questionDetail',
|
||||||
|
|||||||
Reference in New Issue
Block a user