fix:修改课程管理/课程审核创建时间问题

This commit is contained in:
wyx
2022-12-04 23:07:31 +08:00
parent bd48789860
commit 1e52f94b28
3 changed files with 4 additions and 5 deletions

View File

@@ -3161,7 +3161,7 @@ const columns1 = [
key: "9",
align: "center",
customRender: ({text}) => {
return text ? getdateToTime(text * 1000) : "-";
return text ? text : "-";
},
},
{
@@ -3916,6 +3916,7 @@ export default defineComponent({
beginTime: startTime,
});
const {rows, total} = res.data.data;
console.log(res.data.data)
state.tableDataTotal1 = total;
const datas = traverseArr(
rows,

View File

@@ -65,7 +65,6 @@
import { reactive, toRefs, onMounted } from "vue";
import { courseListView } from "../../api/indexAudit";
import * as api1 from "@/api/index1";
import { toDate } from "../../api/method";
export default {
name: "CoursereViewed",
@@ -123,7 +122,7 @@ export default {
key: "time",
align: "center",
customRender: (time) => {
return <div style="color:#387DF7">{toDate(time.record.time, "Y-M-D h:m")}</div>;
return <div style="color:#387DF7">{time.record.time}</div>;
},
},

View File

@@ -318,7 +318,6 @@
<script>
import { reactive, toRefs, onMounted, ref } from "vue";
import { list, courseAuditView, courseDetail } from "../../api/indexAudit";
import { toDate } from "../../api/method";
import { message } from "ant-design-vue";
import { Editor } from "@wangeditor/editor-for-vue";
import { iframeUrl } from "../../api/method";
@@ -585,7 +584,7 @@ export default {
: "-",
change: "-",
creater: item.createName,
time: toDate(item.createTime, "Y-M-D h:m"),
time: item.createTime,
createrId: item.createId,
offId: item.offcourseId,
};