Selaa lähdekoodia

政策制度时间格式

mengy 3 vuotta sitten
vanhempi
commit
71cb8826c7

+ 2 - 1
shanXiPlatform/src/views/systemManagement/policySystem/index.vue

@@ -32,7 +32,8 @@
32 32
             <el-table-column prop="title" label="标题" align="center" />
33 33
             <el-table-column prop="publishTime" label="发布时间" align="center">
34 34
               <template slot-scope="scope">
35
-                <span>{{scope.row.publishTime}}</span>
35
+                <span v-if="scope.row.publishTime">{{scope.row.publishTime.slice(0,16)}}</span>
36
+                <span v-if="!scope.row.publishTime">{{scope.row.publishTime}}</span>
36 37
               </template>
37 38
             </el-table-column>
38 39
             <el-table-column prop="publishUserName" label="发布人" align="center" />