123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <template>
- <div :class="['commentSectorBox', {buildingBorder: this.$store.state.template.previewStatus==false}]">
- <div :class="['commentSectorBoxTitle', {componentBorder: $store.state.template.previewStatus==false}]">
- <editBtn :id="id" :dataSort="dataSort" :sort="0" :type="7" :size="1" :y="y"/>
- <convertBtn :id="id" :dataSort="dataSort" :sort="0" :type="2"/>
- <div v-if="this.$store.state.template.pageData.index[dataSort].content.componentList[0].component_style == 1">
- <title1Style />
- </div>
- </div>
- <div class="commentSectorBoxContent">
- <div :class="['tabsCalendarNewsBox', {componentBorder: $store.state.template.previewStatus==false}]">
- <editBtn :id="id" :dataSort="dataSort" :sort="1" :type="1" :size="5" :y="y"/>
- <convertBtn :id="id" :dataSort="dataSort" :sort="1" :type="5"/>
- <div v-if="this.$store.state.template.pageData.index[dataSort].content.componentList[1].component_style == 1">
- <tabs1Style />
- </div>
- <div v-if="this.$store.state.template.pageData.index[dataSort].content.componentList[1].component_style == 2">
- <tabs2Style />
- </div>
- </div>
- <div class="calendarBox">
- <editBtn :id="id" :dataSort="dataSort" :sort="2" :type="8" :size="1" :y="y"/>
- <convertBtn :id="id" :dataSort="dataSort" :sort="2" :type="8"/>
- <div v-if="this.$store.state.template.pageData.index[dataSort].content.componentList[2].component_style == 1">
- <form1Style />
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- //编辑按钮
- import editBtn from '../../../public/editBtn.vue'
- import convertBtn from '../../../public/convertBtn.vue'
- //标题组件
- import title1Style from '../components/title/1.vue'
- //tabs组件
- import tabs1Style from '../components/tabs/1.vue'
- import tabs2Style from '../components/tabs/2.vue'
- //留言组件
- import form1Style from '../components/form/1.vue'
- export default {
- components: {
- editBtn,
- convertBtn,
- title1Style,
- tabs1Style,
- tabs2Style,
- form1Style
- },
- props: {
- id: {
- type: Number,
- default: 0
- },
- y:{
- type:Number,
- default:0
- },
- dataSort:{
- type:Number,
- default:0
- }
- },
- data() {
- return {
-
- };
- },
- methods: {
-
-
- },
- mounted() {
-
- },
- };
- </script>
- <style scoped lang="less">
- .commentSectorBox {
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- height: 420px;
- .componentBorder{
- border: 2px dashed #999;
- }
- .commentSectorBoxTitle {
- width: 80%;
- height: 41px;
- position: relative;
- }
- .commentSectorBoxContent {
- width: 80%;
- display: flex;
- padding-top: 20px;
- .tabsCalendarNewsBox {
- width: 70%;
- box-sizing: border-box;
- margin-right: 20px;
- position: relative;
- }
- .calendarBox {
- position: relative;
- width: 30%;
- }
- }
- }
- </style>
|