Commit 1a83a884 authored by rencs's avatar rencs

1.7 time css

parent ea646f30
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="支付时间"> <el-table-column align="center" label="支付时间">
<template slot-scope="scope"> <template slot-scope="scope">
<p v-if="scope.row.payTime">{{ scope.row.payTime }}</p> <p v-if="scope.row.payTime">{{ scope.row.payTimeStr }}</p>
<p v-else>/</p> <p v-else>/</p>
</template> </template>
</el-table-column> </el-table-column>
...@@ -199,6 +199,7 @@ import { mapGetters } from "vuex"; ...@@ -199,6 +199,7 @@ import { mapGetters } from "vuex";
import rsCode from "../../../utils/rsCode"; import rsCode from "../../../utils/rsCode";
// import dataFormattor from '../../../utils/dataFormattor' // import dataFormattor from '../../../utils/dataFormattor'
import { formatDate } from "utils/dateFormattor"; import { formatDate } from "utils/dateFormattor";
import { timestamp2Date } from "utils/dateUtils";
export default { export default {
name: "branchCompanyStock", name: "branchCompanyStock",
...@@ -332,7 +333,9 @@ export default { ...@@ -332,7 +333,9 @@ export default {
page2(this.listQuery).then((response) => { page2(this.listQuery).then((response) => {
console.log(response); console.log(response);
this.list = response.data.data; this.list = response.data.data;
this.list.map((item) => {
item.payTimeStr = timestamp2Date(item.payTime);
});
this.total = response.data.totalCount; this.total = response.data.totalCount;
}); });
setTimeout(() => { setTimeout(() => {
......
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