浏览代码

代码格式

lrf402788946 5 年之前
父节点
当前提交
cefe2c88df

+ 4 - 5
src/layout/master/index/banner.vue

@@ -31,7 +31,7 @@ export default {
   data: () => ({
     input: '',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
@@ -47,10 +47,9 @@ export default {
   bottom: -35px;
   text-align: center;
 }
-.search .input{
-  width:734px;
-  height:82px;
-
+.search .input {
+  width: 734px;
+  height: 82px;
 }
 /deep/.search .el-input__inner {
   border-radius: 0;

+ 8 - 9
src/layout/master/index/company.vue

@@ -4,17 +4,17 @@
       <el-col :span="24">
         <el-col :span="24" class="top">
           <el-col :span="24" class="english">
-            {{companytop.english}}
+            {{ companytop.english }}
           </el-col>
           <el-col :span="24" class="title">
-            {{companytop.title}}
+            {{ companytop.title }}
           </el-col>
         </el-col>
         <el-col :span="24" class="info">
-          <el-col :span="12" class="companylist" v-for="(item,index) in companylist" :key="index">
+          <el-col :span="12" class="companylist" v-for="(item, index) in companylist" :key="index">
             <el-col :span="24">
-                <p class="title">{{item.title}}({{item.date}})</p>
-              </el-col>
+              <p class="title">{{ item.title }}({{ item.date }})</p>
+            </el-col>
           </el-col>
         </el-col>
       </el-col>
@@ -31,7 +31,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
@@ -43,7 +43,7 @@ p {
   padding: 0;
 }
 .top {
-  height:92px;
+  height: 92px;
   text-align: center;
 }
 .top .english {
@@ -57,7 +57,7 @@ p {
   font-size: 36px;
   font-family: 微软雅黑;
 }
-.companylist{
+.companylist {
   padding: 48px 10px 0 0;
 }
 .companylist .title {
@@ -68,4 +68,3 @@ p {
   white-space: nowrap;
 }
 </style>
-

+ 8 - 8
src/layout/master/index/contact.vue

@@ -4,27 +4,27 @@
       <el-col :span="24">
         <el-col :span="10" class="contact">
           <el-col :span="24" class="english">
-            {{contactinfo.english}}
+            {{ contactinfo.english }}
           </el-col>
           <el-col :span="24" class="title">
-            {{contactinfo.title}}
+            {{ contactinfo.title }}
           </el-col>
         </el-col>
         <el-col :span="14" class="right">
           <el-col :span="24" class="text">
-            <i class="el-icon-location-outline"></i><span>{{contactinfo.address}}</span>
+            <i class="el-icon-location-outline"></i><span>{{ contactinfo.address }}</span>
           </el-col>
           <el-col :span="24" class="text">
-            <i class="el-icon-phone-outline"></i><span>{{contactinfo.youzheng}}</span>
+            <i class="el-icon-phone-outline"></i><span>{{ contactinfo.youzheng }}</span>
           </el-col>
           <el-col :span="24" class="text">
-            <i class="el-icon-monitor"></i><span>{{contactinfo.rexian}}</span>
+            <i class="el-icon-monitor"></i><span>{{ contactinfo.rexian }}</span>
           </el-col>
           <el-col :span="24" class="text">
-            <i class="el-icon-printer"></i><span>{{contactinfo.chuanzhen}}</span>
+            <i class="el-icon-printer"></i><span>{{ contactinfo.chuanzhen }}</span>
           </el-col>
           <el-col :span="24" class="text">
-            <i class="el-icon-message"></i><span>{{contactinfo.email}}</span>
+            <i class="el-icon-message"></i><span>{{ contactinfo.email }}</span>
           </el-col>
         </el-col>
       </el-col>
@@ -40,7 +40,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 6 - 6
src/layout/master/index/fast.vue

@@ -4,22 +4,22 @@
       <el-col :span="24">
         <el-col :span="24" class="top">
           <el-col :span="24" class="english">
-            {{fasttop.english}}
+            {{ fasttop.english }}
           </el-col>
           <el-col :span="24" class="title">
-            {{fasttop.title}}
+            {{ fasttop.title }}
           </el-col>
         </el-col>
         <el-col :span="24" class="fast">
-          <el-col :span="6" class="fastlist" v-for="(item,index) in fastlist" :key="index">
+          <el-col :span="6" class="fastlist" v-for="(item, index) in fastlist" :key="index">
             <el-col :span="24" class="image">
               <el-image style="width:109px;height:113px;" :src="item.url"></el-image>
             </el-col>
             <el-col :span="24" class="title">
-              <el-link :underline="false" :href="item.link">{{item.title}}</el-link>
+              <el-link :underline="false" :href="item.link">{{ item.title }}</el-link>
             </el-col>
             <el-col :span="24" class="content">
-              <p>{{item.content}}</p>
+              <p>{{ item.content }}</p>
             </el-col>
           </el-col>
         </el-col>
@@ -37,7 +37,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 10 - 10
src/layout/master/index/foot.vue

@@ -4,10 +4,10 @@
       <el-col :span="24" class="foot">
         <div class="w_1200">
           <el-col :span="24" class="title">
-            {{footinfo.title}}
+            {{ footinfo.title }}
           </el-col>
           <el-col :span="24" class="title">
-            {{footinfo.jishu}}
+            {{ footinfo.jishu }}
           </el-col>
         </div>
       </el-col>
@@ -23,7 +23,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
@@ -35,14 +35,14 @@ export default {
   margin: 0 auto;
 }
 .foot {
-      background: #393939;
-    height: 185px;
-    text-align: center;
-    padding: 37px 0 0 0;
-    font-size: 24px;
-    color: #a7a7a7;
+  background: #393939;
+  height: 185px;
+  text-align: center;
+  padding: 37px 0 0 0;
+  font-size: 24px;
+  color: #a7a7a7;
 }
-.foot .title{
+.foot .title {
   padding: 20px 0 0 0;
 }
 </style>

+ 23 - 41
src/layout/master/index/huodong.vue

@@ -3,95 +3,77 @@
     <el-row>
       <el-col :span="24">
         <el-col :span="24" class="top">
-          <el-col :span="24" class="english">{{huodonginfo.english}}</el-col>
-          <el-col :span="24" class="title">{{huodonginfo.title}}</el-col>
+          <el-col :span="24" class="english">{{ huodonginfo.english }}</el-col>
+          <el-col :span="24" class="title">{{ huodonginfo.title }}</el-col>
         </el-col>
         <el-col :span="24" class="infoone">
           <el-col :span="24" class="infoonebei">
-            <span>01活动</span>
+            <span>01招聘</span>
           </el-col>
           <el-col :span="24" class="infoonelist">
             <el-tabs v-model="activeName" @tab-click="handleClick">
-              <el-tab-pane label="校内宣讲" name="first">
-                <el-col :span="24" class="list">
-                  <el-col :span="24" class="talksList" v-for="(item, index) in talksList" :key="index">
-                    <el-col :span="24" style="padding:0 0 12px 0;">
-                      <el-col :span="20">
-                        <span class="qiu"></span>
-                        <el-link :underline="false">
-                          <p class="title">{{item.title}}</p>
-                        </el-link>
-                      </el-col>
-                      <el-col :span="4">
-                        <p class="date">{{item.date}}</p>
-                      </el-col>
-                    </el-col>
-                    <el-col :span="24" class="text">
-                      <span>宣讲时间:{{item.time}}</span>&nbsp;
-                      <span>宣讲地点:{{item.address}}</span>
-                    </el-col>
-                  </el-col>
-                </el-col>
-              </el-tab-pane>
-              <el-tab-pane label="双选会" name="second">
+              <el-tab-pane label="双选会" name="first">
                 <el-col :span="24" class="list">
                   <el-col :span="24" class="talksList" v-for="(item, index) in fairsList" :key="index">
                     <el-col :span="24" style="padding:0 0 12px 0;">
                       <el-col :span="20">
                         <span class="qiu"></span>
                         <el-link :underline="false">
-                          <p class="title">{{item.title}}</p>
+                          <p class="title">{{ item.title }}</p>
                         </el-link>
                       </el-col>
                       <el-col :span="4">
-                        <p class="date">{{item.date}}</p>
+                        <p class="date">{{ item.date }}</p>
                       </el-col>
                     </el-col>
                     <el-col :span="24" class="text">
-                      <span>宣讲时间:{{item.time}}</span>&nbsp;
-                      <span>宣讲地点:{{item.address}}</span>
+                      <span>开始时间:{{ item.time }}</span
+                      >&nbsp;
+                      <span>招聘会地点:{{ item.address }}</span>
                     </el-col>
                   </el-col>
                 </el-col>
               </el-tab-pane>
-              <el-tab-pane label="校外宣讲" name="third">
+              <el-tab-pane label="宣讲会" name="second">
                 <el-col :span="24" class="list">
                   <el-col :span="24" class="talksList" v-for="(item, index) in talksoutList" :key="index">
                     <el-col :span="24" style="padding:0 0 12px 0;">
                       <el-col :span="20">
                         <span class="qiu"></span>
                         <el-link :underline="false">
-                          <p class="title">{{item.title}}</p>
+                          <p class="title">{{ item.title }}</p>
                         </el-link>
                       </el-col>
                       <el-col :span="4">
-                        <p class="date">{{item.date}}</p>
+                        <p class="date">{{ item.date }}</p>
                       </el-col>
                     </el-col>
                     <el-col :span="24" class="text">
-                      <span>宣讲时间:{{item.time}}</span>&nbsp;
-                      <span>宣讲地点:{{item.address}}</span>
+                      <span>宣讲时间:{{ item.time }}</span
+                      >&nbsp;
+                      <span>宣讲地点:{{ item.address }}</span>
                     </el-col>
                   </el-col>
                 </el-col>
               </el-tab-pane>
-              <el-tab-pane label="招聘快讯" name="fourth">
+              <el-tab-pane label="招聘快讯" name="third">
                 <el-col :span="24" class="list">
                   <el-col :span="24" class="talksList" v-for="(item, index) in infoList" :key="index">
                     <el-col :span="24" style="padding:0 0 12px 0;">
                       <el-col :span="20">
                         <span class="qiu"></span>
                         <el-link :underline="false">
-                          <p class="title">{{item.title}}</p>
+                          <p class="title">{{ item.title }}</p>
                         </el-link>
                       </el-col>
                       <el-col :span="4">
-                        <p class="date">{{item.date}}</p>
+                        <p class="date">{{ item.date }}</p>
                       </el-col>
                     </el-col>
                     <el-col :span="24" class="text">
-                      <span>宣讲时间:{{item.time}}</span>&nbsp;
-                      <span>宣讲地点:{{item.address}}</span>
+                      <span>宣讲时间:{{ item.time }}</span
+                      >&nbsp;
+                      <span>宣讲地点:{{ item.address }}</span>
                     </el-col>
                   </el-col>
                 </el-col>
@@ -117,9 +99,9 @@ export default {
   },
   components: {},
   data: () => ({
-    activeName: 'first'
+    activeName: 'first',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {
     handleClick(tab, event) {

+ 1 - 1
src/layout/master/index/login.vue

@@ -35,7 +35,7 @@ export default {
     qiye: require('../../../assets/qiye.png'),
     xuesheng: require('../../../assets/stu.png'),
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 12 - 12
src/layout/master/index/news.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24">
         <el-col :span="24" class="title">
-          <span>{{title}}</span>
+          <span>{{ title }}</span>
         </el-col>
         <el-col :span="24">
           <el-col :span="13" class="block">
@@ -17,11 +17,11 @@
           </el-col>
           <el-col :span="11" class="newsLi">
             <ul>
-              <li class="listdata"><span class="qiudata"></span>
+              <li class="listdata">
+                <span class="qiudata"></span>
                 <el-link :underline="false">今天(3月8日星期五)</el-link>
               </li>
-              <li class="list" v-for="(tag, index) in newsList" :key="index" :type="tag.type" @mouseover="shuYi(index)"
-                  :class="newListActive(tag)">
+              <li class="list" v-for="(tag, index) in newsList" :key="index" :type="tag.type" @mouseover="shuYi(index)" :class="newListActive(tag)">
                 <span class="qiu"></span>
                 <el-link :underline="false" class="newsListTit">{{ tag.title }}</el-link>
               </li>
@@ -43,14 +43,14 @@ export default {
   data: () => ({
     title: '就业新闻',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {
     shuYi(index) {
       this.$refs.shubiao.setActiveItem(`${index}`);
     },
     // eslint-disable-next-line no-unused-vars
-    newListActive(item) { },
+    newListActive(item) {},
   },
 };
 </script>
@@ -79,13 +79,13 @@ li {
 /deep/.el-carousel__container {
   height: 350px;
 }
-.block{
-  width:620px;
-  height:350px;
+.block {
+  width: 620px;
+  height: 350px;
 }
 .newsLi {
   width: 580px;
-  height:350px;
+  height: 350px;
   background-color: #eeeeee;
   overflow: hidden;
 }
@@ -116,7 +116,7 @@ li {
 .list:hover .el-link {
   color: #333;
 }
-.list:hover .qiu{
+.list:hover .qiu {
   background: #415285;
 }
 .qiudata {
@@ -124,7 +124,7 @@ li {
   width: 10px;
   height: 10px;
   background: #fff;
-  border:1px solid #ccc;
+  border: 1px solid #ccc;
   border-radius: 90px;
   margin: 0 15px;
 }

+ 10 - 10
src/layout/master/index/notice.vue

@@ -3,12 +3,12 @@
     <el-row>
       <el-col :span="24">
         <el-col :span="24" class="top">
-          <el-col :span="24" class="english">{{noticeinfo.english}}</el-col>
-          <el-col :span="24" class="title">{{noticeinfo.title}}</el-col>
+          <el-col :span="24" class="english">{{ noticeinfo.english }}</el-col>
+          <el-col :span="24" class="title">{{ noticeinfo.title }}</el-col>
         </el-col>
         <el-col :span="24" class="info">
           <el-col :span="24" class="infoBei">
-            <span>{{title}}</span>
+            <span>{{ title }}</span>
           </el-col>
           <el-col :span="24" class="infolist">
             <el-col :span="24" class="button">
@@ -22,13 +22,13 @@
                     <el-image style="width:100%;height:226px;" :src="item.url"></el-image>
                   </el-col>
                   <el-col :span="24" class="title">
-                    <p>{{item.title}}</p>
+                    <p>{{ item.title }}</p>
                   </el-col>
                   <el-col :span="24" class="text">
-                    <p>{{item.text}}</p>
+                    <p>{{ item.text }}</p>
                   </el-col>
                   <el-col :span="24" class="time">
-                    {{item.time}}
+                    {{ item.time }}
                   </el-col>
                 </el-link>
               </el-col>
@@ -51,7 +51,7 @@ export default {
   data: () => ({
     title: '最新公告',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
@@ -135,8 +135,8 @@ p {
   margin-right: 45px;
   box-shadow: 0 0 5px #ccc;
 }
-.content:last-child{
-  margin-right:0;
+.content:last-child {
+  margin-right: 0;
 }
 .content .image {
   width: 346px;
@@ -176,4 +176,4 @@ p {
   text-align: right;
   padding: 0 24px;
 }
-</style>
+</style>

+ 6 - 102
src/layout/master/index/other.vue

@@ -9,107 +9,17 @@
         </el-col>
         <el-col :span="24" class="infoonelist">
           <el-tabs v-model="activeName" @tab-click="handleClick">
-            <el-tab-pane label="事业单位" name="first">
+            <el-tab-pane v-for="(item, index) in otherList" :key="index" label="事业单位" :name="`${index}`">
               <el-col :span="24" class="list">
                 <el-col :span="24" class="listinfo" v-for="(item, index) in danweilist" :key="index">
                   <el-col :span="21">
                     <span class="qiu"></span>
                     <el-link :underline="false">
-                      <p class="title">{{item.title}}</p>
+                      <p class="title">{{ item.title }}</p>
                     </el-link>
                   </el-col>
                   <el-col :span="3" class="date">
-                    {{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="listinfo" v-for="(item, index) in gongwulist" :key="index">
-                  <el-col :span="21">
-                    <span class="qiu"></span>
-                    <el-link :underline="false">
-                      <p class="title">{{item.title}}</p>
-                    </el-link>
-                  </el-col>
-                  <el-col :span="3" class="date">
-                    {{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="listinfo" v-for="(item, index) in xuantiaolist" :key="index">
-                  <el-col :span="21">
-                    <span class="qiu"></span>
-                    <el-link :underline="false">
-                      <p class="title">{{item.title}}</p>
-                    </el-link>
-                  </el-col>
-                  <el-col :span="3" class="date">
-                    {{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="listinfo" v-for="(item, index) in xibulist" :key="index">
-                  <el-col :span="21">
-                    <span class="qiu"></span>
-                    <el-link :underline="false">
-                      <p class="title">{{item.title}}</p>
-                    </el-link>
-                  </el-col>
-                  <el-col :span="3" class="date">
-                    {{item.date}}
-                  </el-col>
-                </el-col>
-              </el-col>
-            </el-tab-pane>
-            <el-tab-pane label="特岗教师" name="fifth">
-              <el-col :span="24" class="list">
-                <el-col :span="24" class="listinfo" v-for="(item, index) in teganglist" :key="index">
-                  <el-col :span="21">
-                    <span class="qiu"></span>
-                    <el-link :underline="false">
-                      <p class="title">{{item.title}}</p>
-                    </el-link>
-                  </el-col>
-                  <el-col :span="3" class="date">
-                    {{item.date}}
-                  </el-col>
-                </el-col>
-              </el-col>
-            </el-tab-pane>
-            <el-tab-pane label="三支一扶" name="sisth">
-              <el-col :span="24" class="list">
-                <el-col :span="24" class="listinfo" v-for="(item, index) in sanzhilist" :key="index">
-                  <el-col :span="21">
-                    <span class="qiu"></span>
-                    <el-link :underline="false">
-                      <p class="title">{{item.title}}</p>
-                    </el-link>
-                  </el-col>
-                  <el-col :span="3" class="date">
-                    {{item.date}}
-                  </el-col>
-                </el-col>
-              </el-col>
-            </el-tab-pane>
-            <el-tab-pane label="大学生村官" name="seventh">
-              <el-col :span="24" class="list">
-                <el-col :span="24" class="listinfo" v-for="(item, index) in cunguanlist" :key="index">
-                  <el-col :span="21">
-                    <span class="qiu"></span>
-                    <el-link :underline="false">
-                      <p class="title">{{item.title}}</p>
-                    </el-link>
-                  </el-col>
-                  <el-col :span="3" class="date">
-                    {{item.date}}
+                    {{ item.date }}
                   </el-col>
                 </el-col>
               </el-col>
@@ -126,19 +36,13 @@
 export default {
   name: 'other',
   props: {
-    danweilist: null,
-    gongwulist: null,
-    xuantiaolist: null,
-    xibulist: null,
-    teganglist: null,
-    sanzhilist: null,
-    cunguanlist: null,
+    otherList: null,
   },
   components: {},
   data: () => ({
-    activeName: 'first'
+    activeName: 'first',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {
     handleClick(tab, event) {

+ 7 - 23
src/layout/master/index/recruit.vue

@@ -3,36 +3,21 @@
     <el-row>
       <el-col :span="24">
         <el-col :span="24" class="recruitbei">
-          <span>02招聘</span>
+          <span>02活动</span>
         </el-col>
         <el-col :span="24" class="infoonelist">
           <el-tabs v-model="activeName" @tab-click="handleClick">
-            <el-tab-pane label="吉林省事业单位招聘" name="first">
+            <el-tab-pane v-for="(item, index) in recruitList" :key="index" label="吉林省事业单位招聘" :name="`${index}`">
               <el-col :span="24" class="list">
                 <el-col :span="24" class="listinfo" v-for="(item, index) in shiyelist" :key="index">
                   <el-col :span="21">
                     <span class="qiu"></span>
                     <el-link :underline="false">
-                      <p class="title">{{item.title}}</p>
+                      <p class="title">{{ item.title }}</p>
                     </el-link>
                   </el-col>
                   <el-col :span="3" class="date">
-                    {{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="listinfo" v-for="(item, index) in teacherlist" :key="index">
-                  <el-col :span="21">
-                    <span class="qiu"></span>
-                    <el-link :underline="false">
-                      <p class="title">{{item.title}}</p>
-                    </el-link>
-                  </el-col>
-                  <el-col :span="3" class="date">
-                    {{item.date}}
+                    {{ item.date }}
                   </el-col>
                 </el-col>
               </el-col>
@@ -49,14 +34,13 @@
 export default {
   name: 'recruit',
   props: {
-    shiyelist: null,
-    teacherlist: null,
+    recruitList: null,
   },
   components: {},
   data: () => ({
-    activeName: 'first'
+    activeName: '1',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {
     handleClick(tab, event) {

+ 3 - 3
src/layout/master/index/rili.vue

@@ -4,8 +4,8 @@
       <el-col :span="24" class="rili">
         <div class="w_1200">
           <el-col :span="24" class="top">
-            <el-col :span="24" class="english">{{rilitop.english}}</el-col>
-            <el-col :span="24" class="title">{{rilitop.title}}</el-col>
+            <el-col :span="24" class="english">{{ rilitop.english }}</el-col>
+            <el-col :span="24" class="title">{{ rilitop.title }}</el-col>
           </el-col>
           <el-col :span="24" class="info">
             日历组件
@@ -24,7 +24,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 18 - 8
src/layout/master/index/top.vue

@@ -7,14 +7,19 @@
             <el-image style="width:77px;height:75px;" :src="topinfo.logo"></el-image>
           </el-col>
           <el-col :span="20" class="title">
-            {{topinfo.title}}
+            {{ topinfo.name }}
           </el-col>
         </el-col>
         <el-col :span="12">
           <el-col :span="1" class="shu"></el-col>
           <el-col :span="22" class="menulist">
+            <el-col :span="5" class="text">
+              <el-link :underline="false" @click="$router.push({ path: '/' })">首页</el-link>
+            </el-col>
             <el-col :span="5" class="text" v-for="(item, index) in menulist" :key="index">
-              <el-link :underline="false">{{item.title}}</el-link>
+              <el-link :underline="false" @click="$router.push({ path: getRouter(item) })" v-if="item.type === 'column'">{{ item.title }}</el-link>
+              <el-link :underline="false" @click="$router.push({ path: item.path })" v-if="item.type === 'content'">{{ item.title }}</el-link>
+              <el-link :underline="false" :href="item.url" v-if="item.type === 'url'">{{ item.title }}</el-link>
             </el-col>
           </el-col>
         </el-col>
@@ -24,6 +29,7 @@
 </template>
 
 <script>
+import _ from 'lodash';
 export default {
   name: 'top',
   props: {
@@ -34,21 +40,25 @@ export default {
   data: () => ({
     activeIndex: '1',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {
     handleSelect(key, keyPath) {
       // eslint-disable-next-line no-console
       console.log(key, keyPath);
-    }
+    },
+    getRouter(item) {
+      let path = _.get(item, `children[0].path`);
+      return path;
+    },
   },
 };
 </script>
 
 <style lang="less" scoped>
-.w_1200{
+.w_1200 {
   width: 1200px;
-  margin:0 auto;
+  margin: 0 auto;
 }
 .logo {
   padding: 30px 0;
@@ -77,7 +87,7 @@ export default {
   font-size: 25px;
   color: #415285;
 }
-.search{
-  text-align:center;
+.search {
+  text-align: center;
 }
 </style>

+ 6 - 6
src/layout/master/index/unit.vue

@@ -5,14 +5,14 @@
         <div class="w_1200">
           <el-col :span="24" class="top">
             <el-col :span="24" class="english">
-              {{unittop.english}}
+              {{ unittop.english }}
             </el-col>
             <el-col :span="24" class="title">
-              {{unittop.title}}
+              {{ unittop.title }}
             </el-col>
           </el-col>
           <el-col :span="24" class="info">
-            <el-col :span="4" class="unitlist" v-for="(item,index) in unitlist" :key="index">
+            <el-col :span="4" class="unitlist" v-for="(item, index) in unitlist" :key="index">
               <el-link :underline="false">
                 <el-image style="width:145px;height:145px;border-radius:90px;" :src="item.url"></el-image>
               </el-link>
@@ -33,7 +33,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
@@ -63,8 +63,8 @@ export default {
   font-size: 36px;
   font-family: 微软雅黑;
 }
-.unitlist{
+.unitlist {
   text-align: center;
-  margin:0 0 48px 0;
+  margin: 0 0 48px 0;
 }
 </style>

+ 1 - 2
src/layout/master/index/yizhan.vue

@@ -45,9 +45,8 @@ export default {
     company: require('../../../assets/companylogin.png'),
     xueshengzhidao: require('../../../assets/zhidao.png'),
     yongren: require('../../../assets/yongren.png'),
-
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 4 - 6
src/layout/master/login/maininfo.vue

@@ -1,9 +1,7 @@
 <template>
   <div id="maininfo">
     <el-row>
-      <el-col :span="24" class="image"
-              :style="'background: url(' + newsinfo.bgimg + ');background-position:center center;'">
-      </el-col>
+      <el-col :span="24" class="image" :style="'background: url(' + newsinfo.bgimg + ');background-position:center center;'"> </el-col>
       <el-col :span="24" class="login">
         <div class="w_1200">
           <el-col :span="15">
@@ -11,7 +9,7 @@
           </el-col>
           <el-col :span="8" class="loginform">
             <el-col :span="24" class="loginformTop">
-              <span class="title">{{newsinfo.title}}</span>
+              <span class="title">{{ newsinfo.title }}</span>
               <span class="jianyi">(建议您使用谷歌浏览器)</span>
               <el-button icon="el-icon-full-screen" class="button"></el-button>
             </el-col>
@@ -54,9 +52,9 @@ export default {
     form: {
       name: '',
       pass: '',
-    }
+    },
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {
     onSubmit() {

+ 2 - 2
src/layout/master/login/stutop.vue

@@ -6,7 +6,7 @@
           <el-image :src="topinfo.logo" style="width:75px;height:75px;"></el-image>
         </el-col>
         <el-col :span="22" class="text">
-          <p class="title">{{topinfo.title}}</p>
+          <p class="title">{{ topinfo.title }}</p>
         </el-col>
       </el-col>
     </el-row>
@@ -21,7 +21,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 3 - 3
src/layout/master/login/top.vue

@@ -6,8 +6,8 @@
           <el-image :src="topinfo.logo" style="width:100px;height:80px;"></el-image>
         </el-col>
         <el-col :span="22" class="text">
-          <p class="title">{{topinfo.title}}</p>
-          <p class="english">{{topinfo.english}}</p>
+          <p class="title">{{ topinfo.title }}</p>
+          <p class="english">{{ topinfo.english }}</p>
         </el-col>
       </el-col>
     </el-row>
@@ -22,7 +22,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 1 - 1
src/layout/master/news/banner.vue

@@ -16,7 +16,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 8 - 9
src/layout/master/news/newsright.vue

@@ -3,38 +3,37 @@
     <el-row>
       <el-col class="top">
         <el-col :span="24" class="english">
-          {{newsrightinfo.english}}
+          {{ newsrightinfo.english }}
         </el-col>
         <el-col :span="24" class="title">
-          {{newsrightinfo.title}}
+          {{ newsrightinfo.title }}
         </el-col>
       </el-col>
       <el-col :span="24" class="info">
         <el-col :span="24" class="infotop">
-          <el-col :span="24" class="newsrightlist" v-for="(item,index) in newsrightlist" :key="index">
+          <el-col :span="24" class="newsrightlist" v-for="(item, index) in newsrightlist" :key="index">
             <el-col :span="11" class="image">
               <el-image style="width:348px;height:229px;" :src="item.url"></el-image>
             </el-col>
             <el-col :span="13" class="text">
               <el-col :span="24" class="title">
                 <p>
-                  {{item.title}}
+                  {{ item.title }}
                 </p>
               </el-col>
               <el-col :span="24" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
               <el-col :span="24" class="content">
                 <p>
-                  {{item.content}}
+                  {{ item.content }}
                 </p>
               </el-col>
             </el-col>
           </el-col>
         </el-col>
         <el-col :span="24" class="page">
-          <el-pagination background layout="prev, pager, next, total, jumper" :total="16">
-          </el-pagination>
+          <el-pagination background layout="prev, pager, next, total, jumper" :total="16"> </el-pagination>
         </el-col>
       </el-col>
     </el-row>
@@ -50,7 +49,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 8 - 8
src/layout/master/notice/maininfo.vue

@@ -2,21 +2,21 @@
   <div id="maininfo">
     <el-row>
       <el-col :span="24" class="top">
-        <span>{{title}}</span>
+        <span>{{ title }}</span>
       </el-col>
-      <el-col :span="24" class="noticelist" v-for="(item,index) in noticelist" :key="index">
+      <el-col :span="24" class="noticelist" v-for="(item, index) in noticelist" :key="index">
         <el-col :span="5" class="image">
           <el-image style="width:222px;height:141px" :src="item.image"></el-image>
         </el-col>
         <el-col :span="19" class="text">
           <el-col :span="24" class="title">
-            <p>{{item.title}}</p>
+            <p>{{ item.title }}</p>
           </el-col>
           <el-col :span="24" class="content">
-            <p>{{item.content}}</p>
+            <p>{{ item.content }}</p>
           </el-col>
           <el-col :span="24" class="time">
-            {{item.time}}
+            {{ item.time }}
           </el-col>
         </el-col>
       </el-col>
@@ -34,7 +34,7 @@ export default {
   data: () => ({
     title: '最新公告',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
@@ -63,8 +63,8 @@ p {
   padding: 40px 0 0 0;
   border-bottom: 1px solid #ccc;
 }
-.noticelist:last-child{
-  border-bottom:none;
+.noticelist:last-child {
+  border-bottom: none;
 }
 .text .title p {
   font-size: 18px;

+ 4 - 5
src/layout/master/notice/noticeleft.vue

@@ -5,8 +5,8 @@
         <el-image style="width:303px;height:195px" :src="topimage"></el-image>
         <el-col :span="24" class="menu">
           <el-menu>
-            <el-menu-item :index="(index+'')" v-for="(item,index) in leftmenu" :key="index">
-              <span>{{item.title}}</span>
+            <el-menu-item :index="index + ''" v-for="(item, index) in leftmenu" :key="index">
+              <span>{{ item.title }}</span>
             </el-menu-item>
           </el-menu>
         </el-col>
@@ -25,7 +25,7 @@ export default {
   data: () => ({
     topimage: require('../../../assets/menutop.png'),
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {
     handleOpen(key, keyPath) {
@@ -35,8 +35,7 @@ export default {
     handleClose(key, keyPath) {
       // eslint-disable-next-line no-console
       console.log(key, keyPath);
-    }
-
+    },
   },
 };
 </script>

+ 4 - 4
src/layout/master/notice/noticeright.vue

@@ -3,16 +3,16 @@
     <el-row>
       <el-col :span="24" class="info">
         <el-col :span="24" class="title">
-          <p>{{noticedetail.title}}</p>
+          <p>{{ noticedetail.title }}</p>
         </el-col>
         <el-col :span="24" class="time">
-          {{noticedetail.time}}
+          {{ noticedetail.time }}
         </el-col>
         <el-col :span="24" class="image">
           <el-image style="width:650px;height:427px;" :src="noticedetail.url"></el-image>
         </el-col>
         <el-col :span="24" class="content">
-          <p>{{noticedetail.content}}</p>
+          <p>{{ noticedetail.content }}</p>
         </el-col>
       </el-col>
     </el-row>
@@ -27,7 +27,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 26 - 37
src/views/master/index/index.vue

@@ -26,19 +26,17 @@
       </el-col>
       <el-col :span="24" class="huodong">
         <div class="w_1200">
-          <huodong :huodonginfo="huodonginfo" :talksList="talksList" :fairsList="fairsList" :talksoutList="talksoutList"
-                   :infoList="infoList"></huodong>
+          <huodong :huodonginfo="huodonginfo" :fairsList="fairsList" :talksoutList="talksoutList" :infoList="infoList"></huodong>
         </div>
       </el-col>
       <el-col :span="24" class="recruit">
         <div class="w_1200">
-          <recruit :shiyelist="shiyelist" :teacherlist="teacherlist"></recruit>
+          <recruit :recruitList="recruitList"></recruit>
         </div>
       </el-col>
       <el-col :span="24" class="other">
         <div class="w_1200">
-          <other :danweilist="danweilist" :gongwulist="gongwulist" :xuantiaolist="xuantiaolist" :xibulist="xibulist"
-                 :teganglist="teganglist" :sanzhilist="sanzhilist" :cunguanlist="cunguanlist"></other>
+          <other :otherList="otherList"></other>
         </div>
       </el-col>
       <el-col :span="24" class="rili">
@@ -91,36 +89,27 @@ import foot from '../../../layout/master/index/foot.vue';
 export default {
   name: 'index',
   props: {
-    topinfo: null,//头部内容
-    menulist: null,//导航
-    bannerinfo: null,//banner图片
-    newsList: null,//新闻列表
-    noticeinfo: null,//通知公告头部内容
-    noticelist: null,//通知公告列表
-    huodonginfo: null,//活动头部内容
-    talksList: null,//校内宣讲会列表
-    fairsList: null,//双选会列表
-    talksoutList: null,//校外宣讲会列表
-    infoList: null,//招聘快讯列表
-    shiyelist: null,//吉林省事业单位列表
-    teacherlist: null,//吉林省教师招聘列表
-    danweilist: null,//事业单位列表
-    gongwulist: null,//公务员列表
-    xuantiaolist: null,//选调生列表
-    xibulist: null,//西部计划列表
-    teganglist: null,//特岗教师列表
-    sanzhilist: null,//三支一扶列表
-    cunguanlist: null,//大学生村官列表
-    rilitop: null,//日历头部内容
-    fasttop: null,//快速通道头部内容
-    fastlist: null,//快速通道列表
-    contactinfo: null,//联系我们内容
-    companytop: null,//招聘企业头部内容
-    companylist: null,//招聘企业列表
-    unittop: null,//合作单位头部内容
-    unitlist: null,//合作单位列表
-    footinfo: null,//底部内容
-
+    topinfo: null, //头部内容
+    menulist: null, //导航
+    bannerinfo: null, //banner图片
+    newsList: null, //新闻列表
+    noticeinfo: null, //通知公告头部内容
+    noticelist: null, //通知公告列表
+    huodonginfo: null, //活动头部内容
+    talksList: null, //校内宣讲会列表
+    fairsList: null, //双选会列表
+    talksoutList: null, //校外宣讲会列表
+    infoList: null, //招聘快讯列表
+    recruitList: null, //吉林省事业单位列表
+    rilitop: null, //日历头部内容
+    fasttop: null, //快速通道头部内容
+    fastlist: null, //快速通道列表
+    contactinfo: null, //联系我们内容
+    companytop: null, //招聘企业头部内容
+    companylist: null, //招聘企业列表
+    unittop: null, //合作单位头部内容
+    unitlist: null, //合作单位列表
+    footinfo: null, //底部内容
   },
   components: {
     top,
@@ -140,7 +129,7 @@ export default {
     foot,
   },
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
@@ -208,4 +197,4 @@ export default {
 .foot {
   height: 185px;
 }
-</style>
+</style>

+ 5 - 5
src/views/master/login/companys.vue

@@ -23,9 +23,9 @@ import foot from '../../../layout/master/index/foot.vue';
 export default {
   name: 'companys',
   props: {
-    topinfo: null,//头部内容
-    newsinfo: null,//中间登录
-    footinfo: null,//底部内容
+    topinfo: null, //头部内容
+    newsinfo: null, //中间登录
+    footinfo: null, //底部内容
   },
   components: {
     top,
@@ -33,10 +33,10 @@ export default {
     foot,
   },
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
-};  
+};
 </script>
 
 <style lang="less" scoped>

+ 5 - 5
src/views/master/login/student.vue

@@ -23,9 +23,9 @@ import foot from '../../../layout/master/index/foot.vue';
 export default {
   name: 'student',
   props: {
-    topinfo: null,//头部内容
-    newsinfo: null,//中间登录
-    footinfo: null,//底部内容
+    topinfo: null, //头部内容
+    newsinfo: null, //中间登录
+    footinfo: null, //底部内容
   },
   components: {
     stutop,
@@ -33,10 +33,10 @@ export default {
     foot,
   },
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
-};  
+};
 </script>
 
 <style lang="less" scoped>

+ 7 - 7
src/views/master/news/detail.vue

@@ -35,12 +35,12 @@ import foot from '../../../layout/master/index/foot.vue';
 export default {
   name: 'detail',
   props: {
-    topinfo: null,//头部内容
-    menulist: null,//导航
-    bannerinfo: null,//banner图片
-    leftmenu: null,//左侧导航
-    noticedetail: null,//新闻详情
-    footinfo: null,//底部信息
+    topinfo: null, //头部内容
+    menulist: null, //导航
+    bannerinfo: null, //banner图片
+    leftmenu: null, //左侧导航
+    noticedetail: null, //新闻详情
+    footinfo: null, //底部信息
   },
   components: {
     top,
@@ -50,7 +50,7 @@ export default {
     foot,
   },
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 8 - 8
src/views/master/news/list.vue

@@ -35,13 +35,13 @@ import foot from '../../../layout/master/index/foot.vue';
 export default {
   name: 'list',
   props: {
-    topinfo: null,//头部内容
-    menulist: null,//导航菜单
-    bannerinfo: null,//banner图片
-    leftmenu: null,//左侧导航菜单
-    newsrightinfo: null,//右侧头部标题
-    newsrightlist: null,//右侧列表
-    footinfo: null,//底部信息
+    topinfo: null, //头部内容
+    menulist: null, //导航菜单
+    bannerinfo: null, //banner图片
+    leftmenu: null, //左侧导航菜单
+    newsrightinfo: null, //右侧头部标题
+    newsrightlist: null, //右侧列表
+    footinfo: null, //底部信息
   },
   components: {
     top,
@@ -51,7 +51,7 @@ export default {
     foot,
   },
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 7 - 7
src/views/master/notice/detail.vue

@@ -35,12 +35,12 @@ import foot from '../../../layout/master/index/foot.vue';
 export default {
   name: 'detail',
   props: {
-    topinfo: null,//头部内容
-    menulist: null,//导航
-    bannerinfo: null,//banner图片
-    leftmenu: null,//左侧导航
-    noticedetail: null,//通知右侧内容
-    footinfo: null,//底部内容
+    topinfo: null, //头部内容
+    menulist: null, //导航
+    bannerinfo: null, //banner图片
+    leftmenu: null, //左侧导航
+    noticedetail: null, //通知右侧内容
+    footinfo: null, //底部内容
   },
   components: {
     top,
@@ -50,7 +50,7 @@ export default {
     foot,
   },
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 6 - 6
src/views/master/notice/list.vue

@@ -29,11 +29,11 @@ import foot from '../../../layout/master/index/foot.vue';
 export default {
   name: 'list',
   props: {
-    topinfo: null,//头部内容
-    menulist: null,//导航
-    bannerinfo: null,//banner图片
-    noticelist: null,//公告列表
-    footinfo: null,//底部内容
+    topinfo: null, //头部内容
+    menulist: null, //导航
+    bannerinfo: null, //banner图片
+    noticelist: null, //公告列表
+    footinfo: null, //底部内容
   },
   components: {
     top,
@@ -42,7 +42,7 @@ export default {
     foot,
   },
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };