File tree 1 file changed +10
-11
lines changed
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 41
41
<template v-if =" column .key === col " >
42
42
<router-link :set =" routerlink = routerlinks(record)" :to =" { path: routerlink[col] }" >{{ text }}</router-link >
43
43
</template >
44
- </div >
45
44
46
- <template v-if =" column . key === ' state' " >
47
- <status :text =" text ? text : ''" />{{ text }}
48
- </template >
45
+ <template v-else- if =" [ ' state' , ' status ' ]. includes ( column . key ) " >
46
+ <status :text =" text ? text : ''" />{{ text }}
47
+ </template >
49
48
50
- <template v-if =" column .key === ' status' " >
51
- <status :text =" text ? text : ''" />{{ text }}
52
- </template >
53
- </template >
49
+ <template v-else-if =" column .key === ' created' " >
50
+ {{ $toLocaleDate(text) }}
51
+ </template >
54
52
55
- <template v-slot :created =" { item } " >
56
- {{ $toLocaleDate(item) }}
53
+ <template v-else >
54
+ {{ text }}
55
+ </template >
56
+ </div >
57
57
</template >
58
-
59
58
</a-table >
60
59
61
60
<div v-if =" !defaultPagination" style =" display : block ; text-align : right ; margin-top : 10px ;" >
You can’t perform that action at this time.
0 commit comments