|
@@ -1,8 +1,61 @@
|
|
|
<template>
|
|
|
<div id="right">
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <p>right</p>
|
|
|
+ <el-row class="main">
|
|
|
+ <el-col :span="24" class="right">
|
|
|
+ <el-tabs v-model="activeName" class="tabs">
|
|
|
+ <el-tab-pane label="专题研讨" name="first">
|
|
|
+ <el-col :span="24" class="list">
|
|
|
+ <el-col :span="24" class="ztytList" v-for="(item, index) in ztytList" :key="index">
|
|
|
+ <el-col :span="20" class="title textOver">
|
|
|
+ <span></span>
|
|
|
+ {{ item.title }}
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" class="date textOver">
|
|
|
+ {{ item.date }}
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="技术问答" name="second">
|
|
|
+ <el-col :span="24" class="list">
|
|
|
+ <el-col :span="24" class="ztytList" v-for="(item, index) in jswdList" :key="index">
|
|
|
+ <el-col :span="20" class="title textOver">
|
|
|
+ <span></span>
|
|
|
+ {{ item.title }}
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" class="date textOver">
|
|
|
+ {{ item.date }}
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="行业研究" name="third">
|
|
|
+ <el-col :span="24" class="list">
|
|
|
+ <el-col :span="24" class="ztytList" v-for="(item, index) in hyyjList" :key="index">
|
|
|
+ <el-col :span="20" class="title textOver">
|
|
|
+ <span></span>
|
|
|
+ {{ item.title }}
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" class="date textOver">
|
|
|
+ {{ item.date }}
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="教育培训" name="fourth">
|
|
|
+ <el-col :span="24" class="list">
|
|
|
+ <el-col :span="24" class="ztytList" v-for="(item, index) in jypxList" :key="index">
|
|
|
+ <el-col :span="20" class="title textOver">
|
|
|
+ <span></span>
|
|
|
+ {{ item.title }}
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" class="date textOver">
|
|
|
+ {{ item.date }}
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -15,10 +68,17 @@ export default {
|
|
|
return { title: this.$route.meta.title };
|
|
|
},
|
|
|
name: 'right',
|
|
|
- props: {},
|
|
|
+ props: {
|
|
|
+ ztytList: { type: Array },
|
|
|
+ jswdList: { type: Array },
|
|
|
+ hyyjList: { type: Array },
|
|
|
+ jypxList: { type: Array },
|
|
|
+ },
|
|
|
components: {},
|
|
|
data: function() {
|
|
|
- return {};
|
|
|
+ return {
|
|
|
+ activeName: 'first',
|
|
|
+ };
|
|
|
},
|
|
|
created() {},
|
|
|
methods: {},
|
|
@@ -29,4 +89,57 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped></style>
|
|
|
+<style lang="less" scoped>
|
|
|
+.main {
|
|
|
+ height: 615px;
|
|
|
+ overflow: hidden;
|
|
|
+ .right {
|
|
|
+ width: 690px;
|
|
|
+ height: 615px;
|
|
|
+ background: #fff;
|
|
|
+ padding: 0 20px;
|
|
|
+ .tabs {
|
|
|
+ height: 595px;
|
|
|
+ overflow: hidden;
|
|
|
+ margin: 20px 0 0 0;
|
|
|
+ .list {
|
|
|
+ height: 520px;
|
|
|
+ overflow: hidden;
|
|
|
+ .ztytList {
|
|
|
+ padding: 0 0 12px 0;
|
|
|
+ .title {
|
|
|
+ color: #555;
|
|
|
+ span {
|
|
|
+ display: inline-block;
|
|
|
+ width: 4px;
|
|
|
+ height: 4px;
|
|
|
+ background: #666;
|
|
|
+ border-radius: 90px;
|
|
|
+ position: relative;
|
|
|
+ top: -4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .date {
|
|
|
+ text-align: right;
|
|
|
+ color: #555;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/deep/.el-tabs__item.is-active {
|
|
|
+ color: #005293;
|
|
|
+}
|
|
|
+/deep/.el-tabs__active-bar {
|
|
|
+ background-color: #005293;
|
|
|
+}
|
|
|
+/deep/.el-tabs__item {
|
|
|
+ font-size: 20px;
|
|
|
+ line-height: 30px;
|
|
|
+}
|
|
|
+/deep/.el-tabs__item:hover {
|
|
|
+ color: #005293;
|
|
|
+}
|
|
|
+</style>
|