|
@@ -14,11 +14,13 @@
|
|
|
<el-col :span="24" class="main">
|
|
|
<div class="w_1200">
|
|
|
<el-col :span="6">
|
|
|
- <newsLeft></newsLeft>
|
|
|
+ <newsLeft v-if="type === 'least'"></newsLeft>
|
|
|
+ <menuLeft v-else-if="type === 'needMenu'"></menuLeft>
|
|
|
+ <!-- TODO:还有cg(成果交流)和jl(交流)两个侧菜单 -->
|
|
|
</el-col>
|
|
|
<el-col :span="18">
|
|
|
- <newsRight :newsRightList="newsRightList" :total="total" v-if="!type"></newsRight>
|
|
|
- <noLeft v-else :newsRightList="newsRightList"></noLeft>
|
|
|
+ <newsRight :newsRightList="newsRightList" :total="total"></newsRight>
|
|
|
+ <!-- <noLeft v-else :newsRightList="newsRightList"></noLeft> -->
|
|
|
</el-col>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -33,6 +35,7 @@
|
|
|
import top from '../../layout/index/top.vue';
|
|
|
import native from '../../layout/index/native.vue';
|
|
|
import newsRight from '../../layout/news/newsRight.vue';
|
|
|
+import menuLeft from '../../layout/list/mainLeft.vue';
|
|
|
import newsLeft from '../../layout/news/newsLeft.vue';
|
|
|
import footinfo from '../../layout/index/foot.vue';
|
|
|
export default {
|
|
@@ -42,7 +45,7 @@ export default {
|
|
|
topInfo: null,//网络头部
|
|
|
newsRightList: null,//新闻右侧列表
|
|
|
total: null,
|
|
|
- type: { type: Boolean, default: false }
|
|
|
+ type: { type: String }
|
|
|
},
|
|
|
components: {
|
|
|
top,//头部
|
|
@@ -50,6 +53,7 @@ export default {
|
|
|
newsLeft,//新闻左侧
|
|
|
newsRight,//新闻右侧
|
|
|
footinfo,//底部信息
|
|
|
+ menuLeft,//菜单
|
|
|
},
|
|
|
data: () => ({}),
|
|
|
created() { },
|