fix 案例发布时间

This commit is contained in:
BOE\10867418
2023-04-18 14:55:54 +08:00
parent ca5cf6b4b5
commit db97911c09

View File

@@ -37,7 +37,9 @@
<!-- 以下为导出按钮 -->
<div class="btnzs">
<div class="btnz btnz3" @click="exportAllbtnz">
<div><img src="../../assets/images/coursewareManage/export1.png" alt="" /></div>
<div>
<img src="../../assets/images/coursewareManage/export1.png" alt="" />
</div>
<div class="btnzText">导出</div>
</div>
</div>
@@ -55,6 +57,22 @@
onChange: onSelectChange,
}"
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'sysCreateTime'">
<a-tooltip placement="topRight">
<template #title>
<span>{{
record.sysCreateTime &&
dayjs(record.sysCreateTime).format("YYYY-MM-DD HH:mm:ss")
}}</span>
</template>
<span>{{
record.sysCreateTime &&
dayjs(record.sysCreateTime).format("YYYY-MM-DD HH:mm:ss")
}}</span>
</a-tooltip>
</template>
</template>
</a-table>
<div class="tableBox">
<div class="pa">
@@ -75,6 +93,7 @@
</div>
</template>
<script>
import dayjs from "dayjs";
import { ref, toRefs, reactive, onMounted } from "vue";
import { message } from "ant-design-vue";
import * as api from "../../api/indexOvervoew";
@@ -93,7 +112,7 @@ export default {
title: "",
author: "",
authorName: "",
selectedRowKeys : [],
selectedRowKeys: [],
});
// 表格数据
let tableData = ref([]);
@@ -215,11 +234,11 @@ export default {
state.author = "";
getTableData();
};
const searchData=async()=>{
state.pageNo=1
state.pageSize=10
getTableData()
}
const searchData = async () => {
state.pageNo = 1;
state.pageSize = 10;
getTableData();
};
// 导出列表信息
const exportAllbtnz = async () => {
if (state.selectedRowKeys?.length > 0) {
@@ -269,6 +288,7 @@ export default {
searchData,
tableData,
columns,
dayjs,
changePagination,
exportAllbtnz,
onSelectChange,