guhongwei 5 years ago
parent
commit
1a2bee331b
2 changed files with 51 additions and 16 deletions
  1. 38 0
      src/layout/master/notice/jobinfo.vue
  2. 13 16
      src/layout/master/notice/noticeright.vue

+ 38 - 0
src/layout/master/notice/jobinfo.vue

@@ -0,0 +1,38 @@
+<template>
+  <div id="jobinfo">
+    <el-row>
+      <el-col :span="24">
+        <el-col :span="24" class="info">
+          <el-col :span="24" class="title">
+            <p>{{ noticedetail.title }}</p>
+          </el-col>
+          <el-col :span="24" class="time">
+            {{ noticedetail.corpname }}
+          </el-col>
+          <el-col :span="24" class="image" v-if="noticedetail.url">
+            <el-image style="width:650px;height:427px;" :src="noticedetail.url"></el-image>
+          </el-col>
+          <el-col :span="24" class="content">
+            <p>{{ noticedetail.content }}</p>
+          </el-col>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'jobinfo',
+  props: {
+    noticedetail: null,
+  },
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>

+ 13 - 16
src/layout/master/notice/noticeright.vue

@@ -1,35 +1,32 @@
 <template>
   <div id="noticeright">
     <el-row>
-      <el-col :span="24" class="info">
-        <el-col :span="24" class="title">
-          <p>{{ noticedetail.title }}</p>
-        </el-col>
-        <el-col :span="24" class="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>
-        </el-col>
-      </el-col>
+      <span v-if="type === 'jobinfo'">
+        <jobinfo :noticedetail="noticedetail"></jobinfo>
+      </span>
     </el-row>
   </div>
 </template>
 
 <script>
+import jobinfo from './jobinfo.vue';
 export default {
   name: 'noticeright',
   props: {
     noticedetail: null,
+    type: null,
+  },
+  components: {
+    jobinfo,
   },
-  components: {},
   data: () => ({}),
   created() {},
   computed: {},
-  methods: {},
+  methods: {
+    search(page) {
+      this.$emit('search', page);
+    },
+  },
 };
 </script>