{{$tfnm(tt,'content',60)}}
+{{$tfnm(tt,'content',60)}}
{{$tfnm(gzdtList[0],'content',84)}}
@@ -60,7 +60,7 @@{{$tfnm(hyywList[0],'content',84)}}
{{$tfnm(hzjlList[0],'content',84)}}
@@ -253,7 +253,7 @@{{parentData.jjContent}}
+{{parentData.jjContent}}
+{{$tfnm(art,'content',104)}}
diff --git a/src/views/gateway/listPage2.vue b/src/views/gateway/listPage2.vue index b6f0721..ef11a51 100644 --- a/src/views/gateway/listPage2.vue +++ b/src/views/gateway/listPage2.vue @@ -6,8 +6,8 @@{{$tfnm(art,'content',104)}}
@@ -227,7 +227,8 @@ export default { openId = this.id } this.openKeys = [`${openId}`]; - this.loadData(openId); + console.log('mounted-->',openId); + this.loadData(this.id,openId); }, watch:{ pid(){ @@ -264,39 +265,43 @@ export default { handleClick(record){ this.ipagination.current = 1; var list = record.keyPath - console.log('handleClick-->',list); + console.log('handleClick-->',record,list); this.openKeys = [`${list[1]}`]; this.loadData(record.key) }, - loadData(id){ + loadData(id,pid){ //如果没有ID自动选中一个 // if(this.id){ - + console.log('loadData id-->',id); document.documentElement.scrollTop = 0; - let columnId = id||this.queryParam.id; + let columnId = id||this.id; + // if(this.$route.query.id){ + // columnId = this.$route.query.id + // } this.queryParam.id = columnId - console.log('columnId-->',columnId); + console.log('columnId-->',this.queryParam.id,id,columnId); if(columnId == '301'){this.syname = "工作动态"} else if(columnId == '302'){this.syname = "行业要闻"} - else if(columnId == '304'){this.syname = "科研成果";columnId = '30401'} + else if(columnId == '304'){this.syname = "成果登记";columnId = '30401'} else if(columnId == '30401'){this.syname = "成果登记"} else if(columnId == '30402'){this.syname = "获奖情况"} else if(columnId == '30403'){this.syname = "发表论文"} - else if(columnId == '305'){this.syname = "政策文件";columnId = '30501'} + else if(columnId == '305'){this.syname = "省内政策";columnId = '30501'} else if(columnId == '30501'){this.syname = "省内政策"} else if(columnId == '30502'){this.syname = "国内政策"} else if(columnId == '306'){this.syname = "特色农业资源最新动态"} else if(columnId == '303'){this.syname = "合作交流"} - else if(columnId == '501'){this.syname = "专题专栏";columnId = '50101'} + else if(columnId == '501'){this.syname = "土壤";columnId = '50101'} else if(columnId == '50101'){this.syname = "土壤"} else if(columnId == '50102'){this.syname = "水资源"} else if(columnId == '50103'){this.syname = "气候资源"} else if(columnId == '50104'){this.syname = "生物资源"} - else if(columnId == '401'){this.syname = "数据中心"; columnId='40101'} + else if(columnId == '401'){this.syname = "微观经济调查"; columnId='40101'} else if(columnId == '40101'){this.syname = "微观经济调查"} else if(columnId == '40102'){this.syname = "农业资源数据"} else if(columnId == '40103'){this.syname = "遥感数据"} - + + console.log('this.syname-->',this.syname); //查询栏目(包含当前的和候选的) getAction('/gateway/gatewayColumn/list',{pageSize:-1,isEnable:'Y',fpid:columnId,column: 'sort',order: 'asc'}).then((res)=>{