fix(订单详情): 修复报错
This commit is contained in:
parent
ed762c7613
commit
b6895f78fe
@ -73,7 +73,7 @@
|
|||||||
<div class="blockquote">{{ $t('pages.inAppPurchaseDetails.section.statusFlow') }}</div>
|
<div class="blockquote">{{ $t('pages.inAppPurchaseDetails.section.statusFlow') }}</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<el-steps align-center :space="200" :active="order.details.statusSteps.length" finish-status="success" style="margin: 10px 0px;">
|
<el-steps align-center :space="200" :active="order.details.statusSteps.length" finish-status="success" style="margin: 10px 0px;">
|
||||||
<el-step v-for="(item, index) in order.details.statusSteps" :key="index" :title="getOrderStatus(item.status).label" :description="item.createTime" />
|
<el-step v-for="(item, index) in order.details.statusSteps" :key="index" :title="getOrderStatus(item.status).label" :description="getElementText(item.createTime)" />
|
||||||
</el-steps>
|
</el-steps>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -127,7 +127,7 @@
|
|||||||
v-for="(item, index) in order.details.payNotices"
|
v-for="(item, index) in order.details.payNotices"
|
||||||
:key="index"
|
:key="index"
|
||||||
placement="top"
|
placement="top"
|
||||||
:timestamp="item.createTime"
|
:timestamp="getElementText(item.createTime)"
|
||||||
>
|
>
|
||||||
<div class="event-info">
|
<div class="event-info">
|
||||||
<div class="event-info-item">{{ $t('pages.inAppPurchaseDetails.label.eventId') }}: {{ item.eventId }}</div>
|
<div class="event-info-item">{{ $t('pages.inAppPurchaseDetails.label.eventId') }}: {{ item.eventId }}</div>
|
||||||
@ -243,6 +243,12 @@ export default {
|
|||||||
getOrderFactory(details) {
|
getOrderFactory(details) {
|
||||||
return (details && details.factory) || {}
|
return (details && details.factory) || {}
|
||||||
},
|
},
|
||||||
|
getElementText(value) {
|
||||||
|
if (value === undefined || value === null) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
return String(value)
|
||||||
|
},
|
||||||
loadInAppPurchase() {
|
loadInAppPurchase() {
|
||||||
const that = this
|
const that = this
|
||||||
that.orderLoading = true
|
that.orderLoading = true
|
||||||
|
|||||||
@ -41,8 +41,9 @@ if (isMock()) {
|
|||||||
|
|
||||||
// initialize ElementUI and runtime locale
|
// initialize ElementUI and runtime locale
|
||||||
const DEFAULT_TABLE_COLUMN_MIN_WIDTH = 120
|
const DEFAULT_TABLE_COLUMN_MIN_WIDTH = 120
|
||||||
|
const TABLE_COLUMN_MIN_WIDTH_PATCH_FLAG = '__defaultMinWidthPatched__'
|
||||||
|
|
||||||
if (TableColumn && TableColumn.methods && !TableColumn.methods.__defaultMinWidthPatched__) {
|
if (TableColumn && TableColumn.methods && !TableColumn[TABLE_COLUMN_MIN_WIDTH_PATCH_FLAG]) {
|
||||||
const originalSetColumnWidth = TableColumn.methods.setColumnWidth
|
const originalSetColumnWidth = TableColumn.methods.setColumnWidth
|
||||||
TableColumn.methods.setColumnWidth = function(column) {
|
TableColumn.methods.setColumnWidth = function(column) {
|
||||||
const nextColumn = originalSetColumnWidth.call(this, column)
|
const nextColumn = originalSetColumnWidth.call(this, column)
|
||||||
@ -57,7 +58,11 @@ if (TableColumn && TableColumn.methods && !TableColumn.methods.__defaultMinWidth
|
|||||||
|
|
||||||
return nextColumn
|
return nextColumn
|
||||||
}
|
}
|
||||||
TableColumn.methods.__defaultMinWidthPatched__ = true
|
delete TableColumn.methods[TABLE_COLUMN_MIN_WIDTH_PATCH_FLAG]
|
||||||
|
Object.defineProperty(TableColumn, TABLE_COLUMN_MIN_WIDTH_PATCH_FLAG, {
|
||||||
|
value: true,
|
||||||
|
configurable: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
Vue.use(ElementUI, { size: Cookies.get('size') || 'medium' })
|
Vue.use(ElementUI, { size: Cookies.get('size') || 'medium' })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user