Commit c87de719 by chenyu

update: update

parent cf86b97b
...@@ -67,9 +67,20 @@ ...@@ -67,9 +67,20 @@
</div> </div>
</div> </div>
<div v-loading="loading"> <div v-loading="loading">
<el-table :data="tableData" style="width: 100%" @sort-change="sortChange"> <el-table
ref="table"
:data="tableData"
style="width: 100%"
@sort-change="sortChange"
:default-sort="{prop: 'date', order: 'descending'}"
>
<el-table-column label="活动名称" prop="activityName" /> <el-table-column label="活动名称" prop="activityName" />
<el-table-column label="活动时间" sortable="custom" width="250px"> <el-table-column
label="活动时间"
prop="date"
sortable="custom"
width="250px"
>
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<div>{{ getTimeAll(row.beginTime) }}&nbsp;</div> <div>{{ getTimeAll(row.beginTime) }}&nbsp;</div>
<div>{{ getTimeAll(row.endTime) }}</div> <div>{{ getTimeAll(row.endTime) }}</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment