WordInfo.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div>
  3. <el-container>
  4. <el-main style="padding: 0px">
  5. <el-row>
  6. <el-col :span="18" offset="3">
  7. <el-row>
  8. </el-row>
  9. </el-col>
  10. </el-row>
  11. </el-main>
  12. </el-container>
  13. </div>
  14. </template>
  15. <script>
  16. import {navList,newsList,dictList} from "../static/js/index"
  17. export default {
  18. name: "WordInfo",
  19. head(){
  20. return{
  21. title:"中关村公共资源论坛"
  22. }
  23. },
  24. data(){
  25. return{
  26. newsTitle:this.$route.params.title,
  27. news_info:{
  28. newsInfoTitle:null,
  29. newsInfoAuthor:null,
  30. newsInfoTime:null,
  31. newsInfoContent:null
  32. }
  33. }
  34. },
  35. created() {
  36. this.getNewsInfo()
  37. // this.news_info.id=this.$route.params.id;
  38. // this.news_info.title=this.$route.params.title;
  39. },
  40. methods:{
  41. getNewsInfo(){
  42. newsList({"newsInfoId":this.$route.params.id}).then(response=>{
  43. this.news_info=response.rows[0];
  44. this.newsTitle=this.news_info.newsInfoTitle
  45. })
  46. }
  47. }
  48. }
  49. </script>
  50. <style scoped>
  51. </style>