fixes ui
This commit is contained in:
parent
f944538912
commit
8d565ce4fb
|
@ -176,7 +176,7 @@
|
||||||
class="elevation-1 set-table-content"
|
class="elevation-1 set-table-content"
|
||||||
>
|
>
|
||||||
<template v-slot:item.date="{ item }">
|
<template v-slot:item.date="{ item }">
|
||||||
<span>{{ isoStringToNormalDate(item.raw.updatedAt) }}</span>
|
<span>{{ isoStringToNormalDate(item.raw.createdAt) }}</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item.order="{ item }">
|
<template v-slot:item.order="{ item }">
|
||||||
<span>{{ item.raw.incrementId }}</span>
|
<span>{{ item.raw.incrementId }}</span>
|
||||||
|
@ -257,6 +257,11 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
isoStringToNormalDate(date) {
|
||||||
|
let tmp = new Date(date).toISOString().split('T')[0];
|
||||||
|
tmp= tmp.split("-") ;
|
||||||
|
return tmp[1] + "/" + tmp[2] + "/" + tmp[0];
|
||||||
|
},
|
||||||
viewMyOrder(itemId) {
|
viewMyOrder(itemId) {
|
||||||
this.$store.dispatch("orderlist/fetchOrderList", itemId);
|
this.$store.dispatch("orderlist/fetchOrderList", itemId);
|
||||||
this.$router
|
this.$router
|
||||||
|
@ -273,11 +278,7 @@ export default {
|
||||||
const [year, month, day] = date.split("-");
|
const [year, month, day] = date.split("-");
|
||||||
return `${month}/${day}/${year}`;
|
return `${month}/${day}/${year}`;
|
||||||
},
|
},
|
||||||
isoStringToNormalDate(date) {
|
|
||||||
let newDateTime = Date.parse(date);
|
|
||||||
let tmp = new Date(newDateTime).toLocaleDateString().split("/");
|
|
||||||
return (date = tmp[1] + "/" + tmp[0] + "/" + tmp[2]);
|
|
||||||
},
|
|
||||||
// searchOrder() {
|
// searchOrder() {
|
||||||
// this.$store.dispatch("orderlist/fetchSearchOrder");
|
// this.$store.dispatch("orderlist/fetchSearchOrder");
|
||||||
// },
|
// },
|
||||||
|
|
Loading…
Reference in New Issue