瀏覽代碼

更新主站

lrf402788946 5 年之前
父節點
當前提交
ccf176da4e

+ 4 - 2
src/layout/master/index/contact.vue

@@ -11,7 +11,7 @@
           </el-col>
         </el-col>
         <el-col :span="14" class="right">
-          <el-col :span="24" class="text">
+          <!-- <el-col :span="24" class="text">
             <i class="el-icon-location-outline"></i><span>{{ contactinfo.address }}</span>
           </el-col>
           <el-col :span="24" class="text">
@@ -25,7 +25,8 @@
           </el-col>
           <el-col :span="24" class="text">
             <i class="el-icon-message"></i><span>{{ contactinfo.email }}</span>
-          </el-col>
+          </el-col> -->
+          <el-col :span="24" class="text" v-if="content" v-html="content"></el-col>
         </el-col>
       </el-col>
     </el-row>
@@ -37,6 +38,7 @@ export default {
   name: 'contact',
   props: {
     contactinfo: null,
+    content: null,
   },
   components: {},
   data: () => ({}),

+ 2 - 2
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.copyright }}
           </el-col>
           <el-col :span="24" class="title">
-            {{ footinfo.jishu }}
+            {{ footinfo.domain }}
           </el-col>
         </div>
       </el-col>

+ 15 - 11
src/layout/master/index/huodong.vue

@@ -12,7 +12,7 @@
           </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 label="双选会" name="1">
                 <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;">
@@ -34,9 +34,9 @@
                   </el-col>
                 </el-col>
               </el-tab-pane>
-              <el-tab-pane label="宣讲会" name="second">
+              <el-tab-pane label="宣讲会" name="2">
                 <el-col :span="24" class="list">
-                  <el-col :span="24" class="talksList" v-for="(item, index) in talksoutList" :key="index">
+                  <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>
@@ -56,7 +56,7 @@
                   </el-col>
                 </el-col>
               </el-tab-pane>
-              <el-tab-pane label="招聘快讯" name="third">
+              <el-tab-pane label="招聘快讯" name="3">
                 <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;">
@@ -71,15 +71,13 @@
                       </el-col>
                     </el-col>
                     <el-col :span="24" class="text">
-                      <span>宣讲时间:{{ item.time }}</span
-                      >&nbsp;
-                      <span>宣讲地点:{{ item.address }}</span>
+                      <span>招聘企业:{{ item.corpname }}</span>
                     </el-col>
                   </el-col>
                 </el-col>
               </el-tab-pane>
             </el-tabs>
-            <el-link :underline="false" class="add"><i class="el-icon-plus"></i></el-link>
+            <el-link :underline="false" class="add" @click="turnTo()"><i class="el-icon-plus"></i></el-link>
           </el-col>
         </el-col>
       </el-col>
@@ -94,19 +92,25 @@ export default {
     huodonginfo: null,
     talksList: null,
     fairsList: null,
-    talksoutList: null,
     infoList: null,
   },
   components: {},
   data: () => ({
-    activeName: 'first',
+    activeName: '1',
   }),
   created() {},
   computed: {},
   methods: {
     handleClick(tab, event) {
       // eslint-disable-next-line no-console
-      console.log(tab, event);
+      // console.log(tab, event);
+    },
+    turnTo() {
+      let type = '';
+      if (this.activeName === `1`) type = `jobfair`;
+      else if (this.activeName === `2`) type = `talk`;
+      else if (this.activeName === `3`) type = `jobinfo`;
+      this.$router.push({ path: `/master/jobs/${type}` });
     },
   },
 };

+ 2 - 14
src/layout/master/index/login.vue

@@ -2,24 +2,12 @@
   <div id="login">
     <el-row>
       <el-col :span="24">
-        <el-col :span="8" class="login">
-          <el-link :underline="false">
-            <el-image :src="shengyuan"></el-image>
-            <p class="mainTwoTit">生源信息</p>
-          </el-link>
-        </el-col>
-        <el-col :span="8" class="login">
-          <el-link :underline="false">
+        <el-col :span="24" class="login">
+          <el-link :underline="false" href="http://hr.smart.cc-lotus.info/www/login">
             <el-image :src="qiye"></el-image>
             <p class="mainTwoTit">单位登录/注册</p>
           </el-link>
         </el-col>
-        <el-col :span="8" class="login">
-          <el-link :underline="false">
-            <el-image :src="xuesheng"></el-image>
-            <p class="mainTwoTit">学生登录</p>
-          </el-link>
-        </el-col>
       </el-col>
     </el-row>
   </div>

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

@@ -9,7 +9,7 @@
           <el-col :span="13" class="block">
             <el-carousel ref="shubiao">
               <el-carousel-item v-for="(item, index) in newsList" :key="index" :name="`${index}`">
-                <el-link :underline="false" @click="$router.push({ path: `/news/detail?id=${item.id}` })">
+                <el-link :underline="false" @click="$router.push({ path: `/info/detail?id=${item.id}` })">
                   <el-image style="width:620px;height:350px;" :src="item.pic" class="newsList"></el-image>
                 </el-link>
               </el-carousel-item>
@@ -28,7 +28,7 @@
                 :type="tag.type"
                 @mouseover="shuYi(index)"
                 :class="newListActive(tag)"
-                @click="$router.push({ path: `/news/detail?id=${tag.id}` })"
+                @click="$router.push({ path: `/info/detail?id=${tag.id}` })"
               >
                 <span class="qiu"></span>
                 <el-link :underline="false" class="newsListTit">{{ tag.title }}</el-link>

+ 16 - 5
src/layout/master/index/notice.vue

@@ -12,14 +12,14 @@
           </el-col>
           <el-col :span="24" class="infolist">
             <el-col :span="24" class="button">
-              <el-button class="icon" style="margin: 0 43px 0 0;"><i class="el-icon-arrow-left"></i></el-button>
-              <el-button class="icon" style="margin: 0 10px;"><i class="el-icon-arrow-right"></i></el-button>
+              <el-button class="icon" style="margin: 0 43px 0 0;"><i class="el-icon-plus"></i></el-button>
+              <!-- <el-button class="icon" style="margin: 0 10px;"><i class="el-icon-arrow-right"></i></el-button> -->
             </el-col>
             <el-col :span="24" class="noticelist">
               <el-col :span="8" class="content" v-for="(item, index) in noticelist" :key="index">
-                <el-link :underline="false" @click.native="$router.push({ path: `/notice/detail?id=${item.id}` })">
+                <el-link :underline="false" @click.native="$router.push({ path: `/info/detail?id=${item.id}` })">
                   <el-col :span="24" class="image">
-                    <el-image style="width:100%;height:226px;" :src="item.url"></el-image>
+                    <el-image style="width:100%;height:226px;" :src="item.pic"></el-image>
                   </el-col>
                   <el-col :span="24" class="title">
                     <p>{{ item.title }}</p>
@@ -50,10 +50,21 @@ export default {
   components: {},
   data: () => ({
     title: '最新公告',
+    skip: 0,
+    limit: 3,
   }),
   created() {},
   computed: {},
-  methods: {},
+  methods: {
+    toSearch(type) {
+      if (type === 'up') {
+        this.skip === 0 ? '' : this.skip - this.limit;
+      } else {
+        this.skip + this.limit;
+      }
+      this.$emit('search', { skip: this.skip, limit: this.limit });
+    },
+  },
 };
 </script>
 

+ 11 - 7
src/layout/master/index/other.vue

@@ -9,23 +9,23 @@
         </el-col>
         <el-col :span="24" class="infoonelist">
           <el-tabs v-model="activeName" @tab-click="handleClick">
-            <el-tab-pane v-for="(item, index) in otherList" :key="index" label="事业单位" :name="`${index}`">
+            <el-tab-pane v-for="(item, index) in otherList" :key="index" :label="item.title" :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="24" class="listinfo" v-for="(child, index) in item.children" :key="index">
                   <el-col :span="21">
                     <span class="qiu"></span>
                     <el-link :underline="false">
-                      <p class="title">{{ item.title }}</p>
+                      <p class="title">{{ child.title }}</p>
                     </el-link>
                   </el-col>
                   <el-col :span="3" class="date">
-                    {{ item.date }}
+                    {{ child.publish_time }}
                   </el-col>
                 </el-col>
               </el-col>
             </el-tab-pane>
           </el-tabs>
-          <el-link :underline="false" class="add"><i class="el-icon-plus"></i></el-link>
+          <el-link :underline="false" class="add" @click="turnTo()"><i class="el-icon-plus"></i></el-link>
         </el-col>
       </el-col>
     </el-row>
@@ -40,14 +40,18 @@ export default {
   },
   components: {},
   data: () => ({
-    activeName: 'first',
+    activeName: '0',
   }),
   created() {},
   computed: {},
   methods: {
     handleClick(tab, event) {
       // eslint-disable-next-line no-console
-      console.log(tab, event);
+    },
+    turnTo() {
+      let column = this.otherList[this.activeName].id;
+      let title = this.otherList[this.activeName].title;
+      this.$router.push({ path: `/master/notice/${column}`, query: { news_type: '0', title: title } });
     },
   },
 };

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

@@ -7,23 +7,23 @@
         </el-col>
         <el-col :span="24" class="infoonelist">
           <el-tabs v-model="activeName" @tab-click="handleClick">
-            <el-tab-pane v-for="(item, index) in recruitList" :key="index" label="吉林省事业单位招聘" :name="`${index}`">
+            <el-tab-pane v-for="(item, index) in recruitList" :key="index" :label="item.title" :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="24" class="listinfo" v-for="(child, index) in item.children" :key="index">
                   <el-col :span="21">
                     <span class="qiu"></span>
                     <el-link :underline="false">
-                      <p class="title">{{ item.title }}</p>
+                      <p class="title">{{ child.title }}</p>
                     </el-link>
                   </el-col>
                   <el-col :span="3" class="date">
-                    {{ item.date }}
+                    {{ child.publish_time }}
                   </el-col>
                 </el-col>
               </el-col>
             </el-tab-pane>
           </el-tabs>
-          <el-link :underline="false" class="add"><i class="el-icon-plus"></i></el-link>
+          <el-link :underline="false" class="add" @click="turnTo()"><i class="el-icon-plus"></i></el-link>
         </el-col>
       </el-col>
     </el-row>
@@ -38,14 +38,19 @@ export default {
   },
   components: {},
   data: () => ({
-    activeName: '1',
+    activeName: '0',
   }),
   created() {},
   computed: {},
   methods: {
     handleClick(tab, event) {
       // eslint-disable-next-line no-console
-      console.log(tab, event);
+      // console.log(tab, event);
+    },
+    turnTo() {
+      let column = this.recruitList[this.activeName].id;
+      let title = this.recruitList[this.activeName].title;
+      this.$router.push({ path: `/master/notice/${column}`, query: { news_type: '0', title: title } });
     },
   },
 };

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

@@ -4,7 +4,7 @@
       <el-col :span="24">
         <el-col :span="12">
           <el-col :span="4" class="logo">
-            <el-image style="width:77px;height:75px;" :src="topinfo.logo"></el-image>
+            <img style="width:77px;height:75px;" :src="topinfo.logo" />
           </el-col>
           <el-col :span="20" class="title">
             {{ topinfo.name }}

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

@@ -14,7 +14,7 @@
           <el-col :span="24" class="info">
             <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-image style="width:145px;height:145px;border-radius:90px;" :src="item.pic" @click="toOpen(item.url)"></el-image>
               </el-link>
             </el-col>
           </el-col>
@@ -35,7 +35,11 @@ export default {
   data: () => ({}),
   created() {},
   computed: {},
-  methods: {},
+  methods: {
+    toOpen(url) {
+      window.open(url);
+    },
+  },
 };
 </script>
 

+ 50 - 12
src/layout/master/news/newsright.vue

@@ -1,7 +1,7 @@
 <template>
   <div id="mainRight">
     <el-row>
-      <el-col class="top">
+      <el-col class="top" id="list_top">
         <el-col :span="24" class="english">
           {{ newsrightinfo.english }}
         </el-col>
@@ -16,24 +16,56 @@
               <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">
+              <el-col :span="24" class="title" @click.native="$router.push({ name: 'master_detail', params: { type: type, id: item.id } })">
                 <p>
                   {{ item.title }}
                 </p>
               </el-col>
-              <el-col :span="24" class="time">
-                {{ item.time }}
-              </el-col>
-              <el-col :span="24" class="content">
-                <p>
-                  {{ item.content }}
-                </p>
-              </el-col>
+
+              <span v-if="type === 'talk'">
+                <el-col :span="24" class="time">
+                  {{ item.time }}
+                </el-col>
+                <el-col :span="24" class="content">
+                  <p>举办企业: {{ item.corpname }}</p>
+                </el-col>
+                <el-col :span="24" class="content">
+                  <p>主办学校:{{ item.schname }}</p>
+                </el-col>
+                <el-col :span="24" class="content">
+                  <p>举办地址:{{ item.address }}</p>
+                </el-col>
+              </span>
+              <span v-if="type === 'jobfair'">
+                <el-col :span="24" class="time">
+                  <p>举办时间:{{ item.time }}</p>
+                </el-col>
+                <el-col :span="24" class="content">
+                  <p>主办方:{{ item.organizer }}</p>
+                </el-col>
+                <el-col :span="24" class="content">
+                  <p>举办地址:{{ item.address }}</p>
+                </el-col>
+                <el-col :span="24" class="content">
+                  <p>举办城市:{{ item.city }}</p>
+                </el-col>
+              </span>
+              <span v-else>
+                <el-col :span="24" class="content">
+                  <p>招聘企业:{{ item.corpname }}</p>
+                </el-col>
+                <el-col :span="24" class="content">
+                  <p>招聘学校:{{ item.schname }}</p>
+                </el-col>
+                <el-col :span="24" class="content">
+                  <p>招聘类型:{{ `${item.is_practice}` === '0' ? '全职' : '实习' }}</p>
+                </el-col>
+              </span>
             </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 @current-change="search" :page-size="4" layout="total, prev, pager, next, jumper" :total="totalRow"> </el-pagination>
         </el-col>
       </el-col>
     </el-row>
@@ -46,12 +78,18 @@ export default {
   props: {
     newsrightinfo: null,
     newsrightlist: null,
+    totalRow: { type: Number, default: 0 },
+    type: null,
   },
   components: {},
   data: () => ({}),
   created() {},
   computed: {},
-  methods: {},
+  methods: {
+    search(page) {
+      this.$emit('search', page);
+    },
+  },
 };
 </script>
 

+ 14 - 7
src/layout/master/notice/maininfo.vue

@@ -1,12 +1,12 @@
 <template>
   <div id="maininfo">
     <el-row>
-      <el-col :span="24" class="top">
+      <el-col :span="24" class="top" id="list_top">
         <span>{{ title }}</span>
       </el-col>
       <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-image style="width:222px;height:141px" :src="item.pic"></el-image>
         </el-col>
         <el-col :span="19" class="text">
           <el-col :span="24" class="title">
@@ -16,10 +16,13 @@
             <p>{{ item.content }}</p>
           </el-col>
           <el-col :span="24" class="time">
-            {{ item.time }}
+            {{ item.publish_time }}
           </el-col>
         </el-col>
       </el-col>
+      <el-col :span="24" style="text-align:right">
+        <el-pagination @current-change="search" :page-size="8" layout="total, prev, pager, next, jumper" :total="totalRow"> </el-pagination>
+      </el-col>
     </el-row>
   </div>
 </template>
@@ -28,15 +31,19 @@
 export default {
   name: 'maininfo',
   props: {
+    title: null,
     noticelist: null,
+    totalRow: { type: Number, default: 0 },
   },
   components: {},
-  data: () => ({
-    title: '最新公告',
-  }),
+  data: () => ({}),
   created() {},
   computed: {},
-  methods: {},
+  methods: {
+    search(page) {
+      this.$emit('search', page);
+    },
+  },
 };
 </script>
 

+ 7 - 3
src/layout/master/notice/noticeleft.vue

@@ -4,8 +4,8 @@
       <el-col :span="24">
         <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">
+          <el-menu :default-active="active" :router="true">
+            <el-menu-item v-for="(item, index) in leftmenu" :key="index" :index="item.path">
               <span>{{ item.title }}</span>
             </el-menu-item>
           </el-menu>
@@ -26,7 +26,11 @@ export default {
     topimage: require('../../../assets/menutop.png'),
   }),
   created() {},
-  computed: {},
+  computed: {
+    active() {
+      return this.$route.path;
+    },
+  },
   methods: {
     handleOpen(key, keyPath) {
       // eslint-disable-next-line no-console

+ 5 - 4
src/views/master/index/index.vue

@@ -26,7 +26,7 @@
       </el-col>
       <el-col :span="24" class="huodong">
         <div class="w_1200">
-          <huodong :huodonginfo="huodonginfo" :fairsList="fairsList" :talksoutList="talksoutList" :infoList="infoList"></huodong>
+          <huodong :huodonginfo="huodonginfo" :fairsList="fairsList" :talksList="talksList" :infoList="infoList"></huodong>
         </div>
       </el-col>
       <el-col :span="24" class="recruit">
@@ -49,7 +49,7 @@
       </el-col>
       <el-col :span="24" class="contact">
         <div class="w_1200">
-          <contact :contactinfo="contactinfo"></contact>
+          <contact :contactinfo="contactinfo" :content="content"></contact>
         </div>
       </el-col>
       <el-col :span="24" class="yizhan">
@@ -96,15 +96,16 @@ export default {
     noticeinfo: null, //通知公告头部内容
     noticelist: null, //通知公告列表
     huodonginfo: null, //活动头部内容
-    talksList: null, //校内宣讲会列表
     fairsList: null, //双选会列表
-    talksoutList: null, //校外宣讲会列表
+    talksList: null, //校外宣讲会列表
     infoList: null, //招聘快讯列表
     recruitList: null, //吉林省事业单位列表
+    otherList: null,
     rilitop: null, //日历头部内容
     fasttop: null, //快速通道头部内容
     fastlist: null, //快速通道列表
     contactinfo: null, //联系我们内容
+    content: null,
     companytop: null, //招聘企业头部内容
     companylist: null, //招聘企业列表
     unittop: null, //合作单位头部内容

+ 5 - 6
src/views/master/news/detail.vue

@@ -11,11 +11,11 @@
       </el-col>
       <el-col :span="24" class="main">
         <div class="w_1200">
-          <el-col :span="4" class="mainLeft">
+          <!-- <el-col :span="4" class="mainLeft">
             <noticeleft :leftmenu="leftmenu"></noticeleft>
-          </el-col>
-          <el-col :span="20" class="mainRight">
-            <noticeright :noticedetail="noticedetail"></noticeright>
+          </el-col> -->
+          <el-col :span="24" class="mainRight">
+            <noticeright :noticedetail="noticedetail" :type="type"></noticeright>
           </el-col>
         </div>
       </el-col>
@@ -41,11 +41,11 @@ export default {
     leftmenu: null, //左侧导航
     noticedetail: null, //新闻详情
     footinfo: null, //底部信息
+    type: null,
   },
   components: {
     top,
     banner,
-    noticeleft,
     noticeright,
     foot,
   },
@@ -77,7 +77,6 @@ export default {
   text-align: center;
 }
 .mainRight {
-  width: 883px;
   background-color: #f8f2f2;
   height: 1568px;
   text-align: center;

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

@@ -15,7 +15,7 @@
             <noticeleft :leftmenu="leftmenu"></noticeleft>
           </el-col>
           <el-col :span="20" class="newsright">
-            <newsright :newsrightinfo="newsrightinfo" :newsrightlist="newsrightlist"></newsright>
+            <newsright @search="search" :newsrightinfo="newsrightinfo" :newsrightlist="newsrightlist" :type="type" :totalRow="totalRow"></newsright>
           </el-col>
         </div>
       </el-col>
@@ -42,6 +42,8 @@ export default {
     newsrightinfo: null, //右侧头部标题
     newsrightlist: null, //右侧列表
     footinfo: null, //底部信息
+    type: null, //数据类型
+    totalRow: { type: Number, default: 0 },
   },
   components: {
     top,
@@ -53,7 +55,11 @@ export default {
   data: () => ({}),
   created() {},
   computed: {},
-  methods: {},
+  methods: {
+    search(page) {
+      this.$emit('search', page);
+    },
+  },
 };
 </script>
 

+ 8 - 2
src/views/master/notice/list.vue

@@ -11,7 +11,7 @@
       </el-col>
       <el-col :span="24" class="main">
         <div class="w_1200">
-          <maininfo :noticelist="noticelist"></maininfo>
+          <maininfo :title="title" :noticelist="noticelist" @search="search" :totalRow="totalRow"></maininfo>
         </div>
       </el-col>
       <el-col :span="24" class="foot">
@@ -29,11 +29,13 @@ import foot from '../../../layout/master/index/foot.vue';
 export default {
   name: 'list',
   props: {
+    title: null,
     topinfo: null, //头部内容
     menulist: null, //导航
     bannerinfo: null, //banner图片
     noticelist: null, //公告列表
     footinfo: null, //底部内容
+    totalRow: { type: Number, default: 0 },
   },
   components: {
     top,
@@ -44,7 +46,11 @@ export default {
   data: () => ({}),
   created() {},
   computed: {},
-  methods: {},
+  methods: {
+    search(page) {
+      this.$emit('search', page);
+    },
+  },
 };
 </script>