瀏覽代碼

时间更新

guhongwei 5 年之前
父節點
當前提交
d5bc79ed04
共有 3 個文件被更改,包括 10 次插入4 次删除
  1. 5 2
      src/views/info/detail.vue
  2. 1 1
      src/views/info/list.vue
  3. 4 1
      src/views/jobinfo/list.vue

+ 5 - 2
src/views/info/detail.vue

@@ -22,7 +22,7 @@
           <!-- <el-col :span="24" align="right" style="font-size: 0.8rem;">插件</el-col> -->
           <!-- <el-col :span="24" align="right" style="font-size: 0.8rem;">插件</el-col> -->
           <el-col :span="24" align="center" style="font-size: 1.5rem; padding-top: 1rem;">{{ info.title }}</el-col>
           <el-col :span="24" align="center" style="font-size: 1.5rem; padding-top: 1rem;">{{ info.title }}</el-col>
           <el-col :span="24" align="right" class="date">
           <el-col :span="24" align="right" class="date">
-            发布时间:{{ info.meta && info.meta.createdAt ? new Date(info.meta.createdAt).toLocaleDateString() : '' || '' }}
+            发布时间:{{ info.publish_time }}
             <!-- 点击人次:26125 -->
             <!-- 点击人次:26125 -->
           </el-col>
           </el-col>
           <el-col :span="24" style="text-align:center">
           <el-col :span="24" style="text-align:center">
@@ -51,7 +51,10 @@ export default {
   data: () => ({
   data: () => ({
     info: {},
     info: {},
     loading: true,
     loading: true,
-    menuList: [{ index: '1', name: '学校简介' }, { index: '2', name: '学校概括' }],
+    menuList: [
+      { index: '1', name: '学校简介' },
+      { index: '2', name: '学校概括' },
+    ],
   }),
   }),
   created() {
   created() {
     this.search();
     this.search();

+ 1 - 1
src/views/info/list.vue

@@ -21,7 +21,7 @@
         <el-link :underline="false" @click="$router.push({ path: '/info/detail', query: { id: item.id } })"> {{ item.title }}</el-link>
         <el-link :underline="false" @click="$router.push({ path: '/info/detail', query: { id: item.id } })"> {{ item.title }}</el-link>
       </el-col>
       </el-col>
       <el-col :span="3" style="color:#999999; padding-top: 0.7rem;">
       <el-col :span="3" style="color:#999999; padding-top: 0.7rem;">
-        <span style="padding: 0.5rem 0;">{{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}</span>
+        <span style="padding: 0.5rem 0;">{{ item.publish_time }}</span>
       </el-col>
       </el-col>
     </el-row>
     </el-row>
     <el-row style="margin-top:1rem;">
     <el-row style="margin-top:1rem;">

+ 4 - 1
src/views/jobinfo/list.vue

@@ -90,7 +90,10 @@ export default {
     totalRow: 0,
     totalRow: 0,
     list: [],
     list: [],
     loading: false,
     loading: false,
-    filter: [{ label: '企业名称', name: 'corpname' }, { label: '标题', name: 'title' }],
+    filter: [
+      { label: '企业名称', name: 'corpname' },
+      { label: '标题', name: 'title' },
+    ],
   }),
   }),
   created() {
   created() {
     this.search();
     this.search();