order-express-info.vue
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<Modal v-model="showModal" :title="title" width="700">
<div class="content">
<Table border :columns="tableCols" :data="expressList"></Table>
</div>
<div slot="footer">
<Button type="text" size="large" @click="hide">关闭</Button>
</div>
</Modal>
</template>
<script>
import timeFormat from 'filters/time-format';
export default {
name: 'OrderExpressInfo',
props: [],
data() {
return {
title: '订单物流轨迹',
showModal: false,
expressList: [],
tableCols: [
{
title: '轨迹',
key: 'acceptRemark',
align: 'center',
width: 500,
},
{
title: '创建时间',
align: 'center',
render: (h, params) => {
return (
<div>
<span>{timeFormat(params.row.createTime)}</span>
</div>
);
},
},
],
};
},
methods: {
show(info) {
this.showModal = true;
this.expressList = info;
},
hide() {
this.showModal = false;
},
},
};
</script>