LeftPage.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div id="leftPage">
  3. <img id="dazhong_img" src="../../assets/png/dazhong.png" />
  4. <div id="viewPage_f">
  5. <ViewPage :szdata="dataAll.index"></ViewPage>
  6. </div>
  7. <img id="person_status_img" src="../../assets/png/2.png" />
  8. <PepoleStatus></PepoleStatus>
  9. <img id="dizhizaihai_img" src="../../assets/png/dizhizaihai.png" v-if="showDZ"/>
  10. <Dezhizhaihai :data='dataAll.damage' v-if="showDZ"></Dezhizhaihai>
  11. <img id="populationStructure_img" src="../../assets/png/renkoujieguo.png" v-if="!showDZ"/>
  12. <PopulationStructure v-if="!showDZ"></PopulationStructure>
  13. </div>
  14. </template>
  15. <script>
  16. import ViewPage from "../MainPageChild/ViewPage.vue";
  17. import PepoleStatus from "../OtherChilds/PepoleStatus.vue";
  18. import Dezhizhaihai from "./Dezhizhaihai.vue";
  19. import PopulationStructure from "./PopulationStructure.vue";
  20. export default {
  21. props: ["dataAll"],
  22. name: "",
  23. components: {
  24. ViewPage,
  25. PepoleStatus,
  26. Dezhizhaihai,
  27. PopulationStructure
  28. },
  29. data() {
  30. return {
  31. showDZ:true
  32. };
  33. },
  34. mounted() {
  35. console.log('拿到数据',this.dataAll);
  36. },
  37. methods: {},
  38. };
  39. </script>
  40. <style scoped>
  41. #viewPage_f {
  42. position: absolute;
  43. width: 100%;
  44. height: 100%;
  45. left: -10%;
  46. }
  47. #person_status_img {
  48. position: absolute;
  49. width: 150px;
  50. top: 30%;
  51. }
  52. #leftPage {
  53. position: absolute;
  54. left: 2%;
  55. top: 7%;
  56. z-index: 2;
  57. height: 93%;
  58. width: 23%;
  59. background-color: rgba(4, 11, 30, 0.6);
  60. }
  61. #dazhong_img {
  62. position: absolute;
  63. width: 200px;
  64. top: -1%;
  65. }
  66. #dizhizaihai_img {
  67. position: absolute;
  68. width: 200px;
  69. top: 70%;
  70. }
  71. #populationStructure_img{
  72. position: absolute;
  73. width: 150px;
  74. top: 70%;
  75. }
  76. </style>