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

This commit is contained in:
2025-10-10 14:28:24 +08:00
parent 840b9f217b
commit 23f582f376

View File

@@ -59,6 +59,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="adminName" align="center" label="操作人" /> <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-table>
<!-- 分页 --> <!-- 分页 -->
<el-pagination style="margin-top: 10px" class="paginationClass" :current-page="formData.page" <el-pagination style="margin-top: 10px" class="paginationClass" :current-page="formData.page"
@@ -180,6 +185,10 @@ export default {
const handleCurrentChange = (val) => { const handleCurrentChange = (val) => {
formData.pageNum = val; formData.pageNum = val;
getData(); getData();
};
const convertTimestamp =(time)=> {
let date = new Date(time);
return date.format("yyyy-MM-dd hh:mm:ss");
}; };
return { return {
formData, formData,
@@ -191,7 +200,8 @@ export default {
handleCurrentChange, handleCurrentChange,
addFun, addFun,
detailPageFun, detailPageFun,
deleteId deleteId,
convertTimestamp
} }
} }