7.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <div :class="['commentSectorBox', {buildingBorder: this.$store.state.template.previewStatus==false}]">
  3. <div :class="['commentSectorBoxTitle', {componentBorder: $store.state.template.previewStatus==false}]">
  4. <editBtn :id="id" :dataSort="dataSort" :sort="0" :type="7" :size="1" :y="y"/>
  5. <convertBtn :id="id" :dataSort="dataSort" :sort="0" :type="2"/>
  6. <div v-if="this.$store.state.template.pageData.index[dataSort].content.componentList[0].component_style == 1">
  7. <title1Style />
  8. </div>
  9. </div>
  10. <div class="commentSectorBoxContent">
  11. <div :class="['tabsCalendarNewsBox', {componentBorder: $store.state.template.previewStatus==false}]">
  12. <editBtn :id="id" :dataSort="dataSort" :sort="1" :type="1" :size="5" :y="y"/>
  13. <convertBtn :id="id" :dataSort="dataSort" :sort="1" :type="5"/>
  14. <div v-if="this.$store.state.template.pageData.index[dataSort].content.componentList[1].component_style == 1">
  15. <tabs1Style />
  16. </div>
  17. <div v-if="this.$store.state.template.pageData.index[dataSort].content.componentList[1].component_style == 2">
  18. <tabs2Style />
  19. </div>
  20. </div>
  21. <div class="calendarBox">
  22. <editBtn :id="id" :dataSort="dataSort" :sort="2" :type="8" :size="1" :y="y"/>
  23. <convertBtn :id="id" :dataSort="dataSort" :sort="2" :type="8"/>
  24. <div v-if="this.$store.state.template.pageData.index[dataSort].content.componentList[2].component_style == 1">
  25. <form1Style />
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. //编辑按钮
  33. import editBtn from '../../../public/editBtn.vue'
  34. import convertBtn from '../../../public/convertBtn.vue'
  35. //标题组件
  36. import title1Style from '../components/title/1.vue'
  37. //tabs组件
  38. import tabs1Style from '../components/tabs/1.vue'
  39. import tabs2Style from '../components/tabs/2.vue'
  40. //留言组件
  41. import form1Style from '../components/form/1.vue'
  42. export default {
  43. components: {
  44. editBtn,
  45. convertBtn,
  46. title1Style,
  47. tabs1Style,
  48. tabs2Style,
  49. form1Style
  50. },
  51. props: {
  52. id: {
  53. type: Number,
  54. default: 0
  55. },
  56. y:{
  57. type:Number,
  58. default:0
  59. },
  60. dataSort:{
  61. type:Number,
  62. default:0
  63. }
  64. },
  65. data() {
  66. return {
  67. };
  68. },
  69. methods: {
  70. },
  71. mounted() {
  72. },
  73. };
  74. </script>
  75. <style scoped lang="less">
  76. .commentSectorBox {
  77. width: 100%;
  78. display: flex;
  79. flex-direction: column;
  80. align-items: center;
  81. height: 420px;
  82. .componentBorder{
  83. border: 2px dashed #999;
  84. }
  85. .commentSectorBoxTitle {
  86. width: 80%;
  87. height: 41px;
  88. position: relative;
  89. }
  90. .commentSectorBoxContent {
  91. width: 80%;
  92. display: flex;
  93. padding-top: 20px;
  94. .tabsCalendarNewsBox {
  95. width: 70%;
  96. box-sizing: border-box;
  97. margin-right: 20px;
  98. position: relative;
  99. }
  100. .calendarBox {
  101. position: relative;
  102. width: 30%;
  103. }
  104. }
  105. }
  106. </style>