linwenxin 1 år sedan
förälder
incheckning
7f52cab6df
1 ändrade filer med 8 tillägg och 1 borttagningar
  1. 8 1
      src/components/NotifyBox/index.vue

+ 8 - 1
src/components/NotifyBox/index.vue

@@ -33,9 +33,16 @@
         <el-table-column align="center" label="标题" prop="title" min-width="160" show-overflow-tooltip />
         <el-table-column align="center" label="来源" prop="source" min-width="160" show-overflow-tooltip />
         <el-table-column align="center" label="时间" prop="issueTime" min-width="160" show-overflow-tooltip />
+        <el-table-column align="center" label="时间" prop="issueTime" min-width="160" show-overflow-tooltip >
+          <template slot-scope="scope">
+            {{scope.row.readFlag ? '已读':'未读'}}
+          </template>
+        </el-table-column>
         <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip>
           <template slot-scope="scope">
-            <el-button type="text" class="textColor" @click="lookInDialog(scope.row.id)">查看</el-button>
+            <el-button :style="{
+              color: scope.row.readFlag ? '#c0c4cc' : ''
+            }" type="text" class="textColor" @click="lookInDialog(scope.row.id)">查看</el-button>
           </template>
         </el-table-column>
       </el-table>