公会主播管理 - 列表增加操作时间字段
This commit is contained in:
@@ -59,6 +59,11 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="adminName" align="center" label="操作人" />
|
||||
<el-table-column prop="enable" align="center" label="操作时间" >
|
||||
<template v-slot="scope">
|
||||
{{scope.row.enable ? convertTimestamp(scope.row.createTime) : convertTimestamp(scope.row.updateTime)}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- 分页 -->
|
||||
<el-pagination style="margin-top: 10px" class="paginationClass" :current-page="formData.page"
|
||||
@@ -180,6 +185,10 @@ export default {
|
||||
const handleCurrentChange = (val) => {
|
||||
formData.pageNum = val;
|
||||
getData();
|
||||
};
|
||||
const convertTimestamp =(time)=> {
|
||||
let date = new Date(time);
|
||||
return date.format("yyyy-MM-dd hh:mm:ss");
|
||||
};
|
||||
return {
|
||||
formData,
|
||||
@@ -191,7 +200,8 @@ export default {
|
||||
handleCurrentChange,
|
||||
addFun,
|
||||
detailPageFun,
|
||||
deleteId
|
||||
deleteId,
|
||||
convertTimestamp
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user