|
@@ -97,7 +97,7 @@
|
97
|
97
|
prop="openingDate"
|
98
|
98
|
label="开盘时间">
|
99
|
99
|
<template slot-scope="scope">
|
100
|
|
- <span>{{(scope.row.openingDate || '').split(' ')[0]}}</span>
|
|
100
|
+ <span>{{formateDate((scope.row.openingDate || '').split(' ')[0])}}</span>
|
101
|
101
|
</template>
|
102
|
102
|
</el-table-column>
|
103
|
103
|
<el-table-column
|
|
@@ -119,7 +119,7 @@
|
119
|
119
|
prop="createDate"
|
120
|
120
|
label="录入时间">
|
121
|
121
|
<template slot-scope="scope">
|
122
|
|
- <span>{{(scope.row.createDate || '').split(' ')[0]}}</span>
|
|
122
|
+ <span>{{ formateDate((scope.row.createDate || '').split(' ')[0])}}</span>
|
123
|
123
|
</template>
|
124
|
124
|
</el-table-column>
|
125
|
125
|
<el-table-column
|
|
@@ -157,6 +157,7 @@
|
157
|
157
|
import { createNamespacedHelpers } from 'vuex';
|
158
|
158
|
const {mapState: mapBuildingState, mapActions: mapBuildingActions} = createNamespacedHelpers('building')
|
159
|
159
|
import { mapState } from 'vuex'
|
|
160
|
+import dayjs from 'dayjs'
|
160
|
161
|
|
161
|
162
|
export default {
|
162
|
163
|
data() {
|
|
@@ -271,6 +272,9 @@ export default {
|
271
|
272
|
})
|
272
|
273
|
})
|
273
|
274
|
},
|
|
275
|
+ formateDate(dt) {
|
|
276
|
+ return !dt ? '' : dayjs(dt).format('YYYY-MM-DD HH:mm')
|
|
277
|
+ },
|
274
|
278
|
handleUnPulic (row) {
|
275
|
279
|
this.$confirm('确认取消发布此数据?', '提示', {
|
276
|
280
|
confirmButtonText: '确定',
|