Commit 15c26451 authored by dt-1640819025-xxmxd's avatar dt-1640819025-xxmxd

问题反馈时间戳转化

parent 5bd86904
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
{{ item.status }} {{ item.status }}
</div> </div>
<div class="div-time"> <div class="div-time">
{{ item.createTime }} {{ days(parseInt(item.createTime)).format("YYYY-MM-DD HH:mm") }}
<!-- {{ item.createTime }} -->
</div> </div>
</div> </div>
</template> </template>
...@@ -25,11 +26,12 @@ ...@@ -25,11 +26,12 @@
import { getFeedbackList } from "@/api/common"; import { getFeedbackList } from "@/api/common";
import { onReady } from "@dcloudio/uni-app"; import { onReady } from "@dcloudio/uni-app";
import axios from "axios"; import axios from "axios";
import { dayjs } from "dayjs"; import dayjs from "dayjs";
import { ref } from "vue"; import { ref } from "vue";
const pageNo = ref("1"); //初始页码 const pageNo = ref("1"); //初始页码
const pageSize = ref("10"); //每页数量 const pageSize = ref("10"); //每页数量
const days = dayjs;
let feedbackListData = ref([]); let feedbackListData = ref([]);
const postListData = () => { const postListData = () => {
...@@ -41,6 +43,7 @@ const postListData = () => { ...@@ -41,6 +43,7 @@ const postListData = () => {
}) })
.catch(res => {}); .catch(res => {});
}; };
onReady(() => { onReady(() => {
postListData(); postListData();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment