公会主播管理 - 列表增加操作时间字段

This commit is contained in:
2025-10-10 14:28:24 +08:00
parent 7f88482b2d
commit c715d99fa6

View File

@@ -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"
@@ -181,6 +186,10 @@ export default {
formData.pageNum = val;
getData();
};
const convertTimestamp =(time)=> {
let date = new Date(time);
return date.format("yyyy-MM-dd hh:mm:ss");
};
return {
formData,
addFormData,
@@ -191,7 +200,8 @@ export default {
handleCurrentChange,
addFun,
detailPageFun,
deleteId
deleteId,
convertTimestamp
}
}