Browse Source

资讯管理修改

lcmxs 1 year ago
parent
commit
89831d5713
1 changed files with 20 additions and 11 deletions
  1. 20 11
      src/views/COUNSELINGMESSAGE/index.vue

+ 20 - 11
src/views/COUNSELINGMESSAGE/index.vue

@@ -28,20 +28,29 @@
     <!--列表-->
     <el-table v-loading="loading" :data="COUNSELINGMESSAGEList" @selection-change="handleSelectionChange" height="calc(100vh - 300px)">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="标题信息" align="center" prop="title" />
-      <el-table-column label="发布日期" align="center" prop="createTime" />
-      <el-table-column label="上报日期" align="center" prop="deptId" />
-      <el-table-column label="审核日期" align="center" prop="deptId" />
-      <el-table-column label="提交审核日期" align="center" prop="deptId" />
+      <el-table-column label="标题信息" align="center" prop="title" width="220px"/>
+      <el-table-column label="创建时间" align="center" prop="createTime" >
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="更新时间" align="center" prop="updateTime" >
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="审核日期" align="center" prop="auditTime" >
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.auditTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
       <el-table-column label="信息状态" align="center" prop="status">
         <template slot-scope="scope">
-          <span v-if="scope.row.status == 0"><el-tag>草稿</el-tag></span>
+          <span v-if="scope.row.status == 0"><el-tag type="info">草稿</el-tag></span>
           <span v-if="scope.row.status == 1"><el-tag type="warning">审核中</el-tag></span>
-          <span v-if="scope.row.status == 2"><el-tag type="danger">审核驳回</el-tag></span>
-          <span v-if="scope.row.status == 3"><el-tag type="success">已审核</el-tag></span>
-          <span v-if="scope.row.status == 4"><el-tag type="success">已发布</el-tag></span>
-          <span v-if="scope.row.status == 5"><el-tag type="info">已下架</el-tag></span>
-          <span v-if="scope.row.status == 6"><el-tag>已置顶</el-tag></span>
+          <span v-if="scope.row.status == 2"><el-tag type="danger">已审核</el-tag></span>
+          <span v-if="scope.row.status == 3"><el-tag type="success">已上报</el-tag></span>
+          <span v-if="scope.row.status == 4"><el-tag >已发布</el-tag></span>
         </template>
       </el-table-column>