|
@@ -83,7 +83,7 @@
|
83
|
83
|
prop="updateDate"
|
84
|
84
|
align="center"
|
85
|
85
|
label="缴费完成时间">
|
86
|
|
- <template slot-scope="scope">{{ formatDate(scope.row.updateDate) }}</template>
|
|
86
|
+ <template slot-scope="scope">{{ formatDateTime(scope.row.updateDate) }}</template>
|
87
|
87
|
</el-table-column>
|
88
|
88
|
</el-table>
|
89
|
89
|
<div class="block-page">
|
|
@@ -147,6 +147,20 @@ export default {
|
147
|
147
|
// return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
|
148
|
148
|
return year + '-' + month + '-' + day
|
149
|
149
|
},
|
|
150
|
+ formatDateTime(val) {
|
|
151
|
+ if (val === null || val === '') {
|
|
152
|
+ return ''
|
|
153
|
+ }
|
|
154
|
+ var value = new Date(val)
|
|
155
|
+ var year = value.getFullYear()
|
|
156
|
+ var month = value.getMonth() + 1
|
|
157
|
+ var day = value.getDate()
|
|
158
|
+ var hour = value.getHours()
|
|
159
|
+ var minutes = value.getMinutes()
|
|
160
|
+ var seconds = value.getSeconds()
|
|
161
|
+ // return year + '-' + month + '-' + day
|
|
162
|
+ return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
|
|
163
|
+ },
|
150
|
164
|
showPayType(obj) {
|
151
|
165
|
let str = ''
|
152
|
166
|
switch (obj) {
|