|
@@ -1,27 +1,48 @@
|
|
|
<template>
|
|
|
<div class="listSectorBox">
|
|
|
<div class="listSectorBoxTitle">
|
|
|
- <styleTitle :id="id" :sort="1"/>
|
|
|
+ <editBtn :id="id" :sort="0" :type="7" :size="1"/>
|
|
|
+ <convertBtn :id="id" :sort="0" :type="2"/>
|
|
|
+ <div v-if="this.$store.state.template.pageData.index[id].content.componentList[0].component_style == 1">
|
|
|
+ <title1Style />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="listSectorBoxContent">
|
|
|
<div class="listNewsLeft">
|
|
|
- <listNews :id="id" :sort="2"/>
|
|
|
+ <editBtn :id="id" :sort="1" :type="1" :size="5"/>
|
|
|
+ <convertBtn :id="id" :sort="1" :type="6"/>
|
|
|
+ <div v-if="this.$store.state.template.pageData.index[id].content.componentList[1].component_style == 1">
|
|
|
+ <list1Style />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="listNewsRight">
|
|
|
- <listNews :id="id" :sort="3"/>
|
|
|
+ <editBtn :id="id" :sort="2" :type="1" :size="5"/>
|
|
|
+ <convertBtn :id="id" :sort="2" :type="6"/>
|
|
|
+ <div v-if="this.$store.state.template.pageData.index[id].content.componentList[2].component_style == 1">
|
|
|
+ <list1Style />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import styleTitle from './components/styleTitle.vue';
|
|
|
-import listNews from './components/listNews.vue';
|
|
|
+//编辑按钮
|
|
|
+import editBtn from '../../public/editBtn.vue'
|
|
|
+import convertBtn from '../../public/convertBtn.vue'
|
|
|
+//标题组件
|
|
|
+import title1Style from './components/title/1.vue'
|
|
|
+//新闻列表组件
|
|
|
+import list1Style from './components/list/1.vue'
|
|
|
+// import styleTitle from './components/styleTitle.vue';
|
|
|
+// import listNews from './components/listNews.vue';
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
- styleTitle,
|
|
|
- listNews
|
|
|
+ editBtn,
|
|
|
+ convertBtn,
|
|
|
+ title1Style,
|
|
|
+ list1Style
|
|
|
},
|
|
|
props: {
|
|
|
id:{
|
|
@@ -47,9 +68,7 @@ export default {
|
|
|
width: 80%;
|
|
|
border: 1px dashed #5570F1;
|
|
|
height: 41px;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
.listSectorBoxContent {
|
|
|
display: flex;
|
|
@@ -61,12 +80,14 @@ export default {
|
|
|
box-sizing: border-box;
|
|
|
border: 1px dashed #5570F1;
|
|
|
padding-right: 10px;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
.listNewsRight {
|
|
|
width: 50%;
|
|
|
box-sizing: border-box;
|
|
|
border: 1px dashed #5570F1;
|
|
|
padding-left: 10px;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
}
|
|
|
}
|