|
@@ -9,7 +9,9 @@
|
|
|
<el-col :span="24">
|
|
|
<el-col :span="24" class="menu" :style="`background:${backColor}`">
|
|
|
<div class="w_1200">
|
|
|
- <native></native>
|
|
|
+ <slot name="native">
|
|
|
+ <!-- <native></native> -->
|
|
|
+ </slot>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -17,10 +19,10 @@
|
|
|
<div class="w_1200">
|
|
|
<el-col :span="24" class="mainTop">
|
|
|
<el-col :span="16" class="news">
|
|
|
- <news :newsList="newsList"></news>
|
|
|
+ <news :news="news"></news>
|
|
|
</el-col>
|
|
|
<el-col :span="7" class="notice">
|
|
|
- <notice :noticeList="noticeList"></notice>
|
|
|
+ <notice :notice="notice"></notice>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="mainLogin">
|
|
@@ -28,7 +30,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="mainData">
|
|
|
<el-col :span="7" class="RiLi">
|
|
|
- <calendar :calendar="calendar"></calendar>
|
|
|
+ <slot name="calendar"></slot>
|
|
|
+ <!-- <calendar :calendar="calendar"></calendar> -->
|
|
|
</el-col>
|
|
|
<el-col :span="16" class="recruit">
|
|
|
<recruit :talksList="talksList" :fairsList="fairsList" :talksoutList="talksoutList" :infoList="infoList"> </recruit>
|
|
@@ -76,11 +79,11 @@
|
|
|
|
|
|
<script>
|
|
|
import top from '@publics/src/layout/index/top.vue';
|
|
|
-import native from '@publics/src/layout/index/native.vue';
|
|
|
+// import native from '@publics/src/layout/index/native.vue';
|
|
|
import news from '@publics/src/layout/index/news.vue';
|
|
|
import notice from '@publics/src/layout/index/notice.vue';
|
|
|
import login from '@publics/src/layout/index/login.vue';
|
|
|
-import calendar from '@publics/src/layout/index/calendar.vue';
|
|
|
+// import calendar from '@publics/src/layout/index/calendar.vue';
|
|
|
import recruit from '@publics/src/layout/index/recruit.vue';
|
|
|
import fast from '@publics/src/layout/index/fast.vue';
|
|
|
import cause from '@publics/src/layout/index/cause.vue';
|
|
@@ -94,8 +97,8 @@ export default {
|
|
|
name: 'index',
|
|
|
props: {
|
|
|
topInfo: null, //头部信息
|
|
|
- newsList: null, //新闻模块
|
|
|
- noticeList: null, //公告模块
|
|
|
+ news: null, //新闻模块
|
|
|
+ notice: null, //公告模块
|
|
|
calendar: null, //日历(这里应该是凹槽,允许自定义组件放入)
|
|
|
talksList: null, //校内宣讲会列表
|
|
|
fairsList: null, //校内招聘会列表
|
|
@@ -112,11 +115,11 @@ export default {
|
|
|
},
|
|
|
components: {
|
|
|
top, //头部
|
|
|
- native, //导航
|
|
|
+ // native, //导航 slot
|
|
|
news, //新闻
|
|
|
notice, //通告
|
|
|
login, //登录
|
|
|
- calendar, //日历
|
|
|
+ // calendar, //日历 slot
|
|
|
recruit, //招聘
|
|
|
fast, //快速链接
|
|
|
cause, //吉林省事业单位/教师招聘
|