article.vue 819 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <div class="article">
  3. <header-top>
  4. <span slot="Bigtitle">文件详情</span>
  5. </header-top>
  6. <div class="context">
  7. <article-main></article-main>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. // 引入的组件
  13. import HeaderTop from "../../components/header/header.vue";
  14. import ArticleMain from "./children/articlemain.vue";
  15. import { getpoicefile } from "../../network/poicefile";
  16. export default {
  17. name: "article",
  18. components: {
  19. HeaderTop,
  20. ArticleMain,
  21. },
  22. data() {
  23. return {};
  24. },
  25. created() {
  26. getpoicefile(0,1);
  27. },
  28. methods: {
  29. getpoicefile() {
  30. getpoicefile().then((res) => {
  31. console.log(res);
  32. });
  33. },
  34. },
  35. };
  36. </script>
  37. <style scoped>
  38. /deep/.search {
  39. display: none;
  40. }
  41. .context {
  42. width: 90%;
  43. margin: 0 auto;
  44. }
  45. </style>