|
@@ -84,13 +84,13 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="startDate" label="开始时间" width="160">
|
|
<el-table-column prop="startDate" label="开始时间" width="160">
|
|
|
- <template slot-scope="{ row }">{{ formatDateTime(row.startDate) }}</template>
|
|
|
|
|
|
|
+ <template slot-scope="{ row }">{{ formatTime(row.startDate) }}</template>
|
|
|
<template slot="header">
|
|
<template slot="header">
|
|
|
<span class="sort-header" @click.stop="onSortClick('startDate', $event)">开始时间<span v-if="sortIndex('startDate') !== null" class="sort-index" :class="sortClass('startDate') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('startDate') }}</span>{{ sortIcon('startDate') }}</span>
|
|
<span class="sort-header" @click.stop="onSortClick('startDate', $event)">开始时间<span v-if="sortIndex('startDate') !== null" class="sort-index" :class="sortClass('startDate') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('startDate') }}</span>{{ sortIcon('startDate') }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="endDate" label="结束时间" width="160">
|
|
<el-table-column prop="endDate" label="结束时间" width="160">
|
|
|
- <template slot-scope="{ row }">{{ formatDateTime(row.endDate) }}</template>
|
|
|
|
|
|
|
+ <template slot-scope="{ row }">{{ formatTime(row.endDate) }}</template>
|
|
|
<template slot="header">
|
|
<template slot="header">
|
|
|
<span class="sort-header" @click.stop="onSortClick('endDate', $event)">结束时间<span v-if="sortIndex('endDate') !== null" class="sort-index" :class="sortClass('endDate') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('endDate') }}</span>{{ sortIcon('endDate') }}</span>
|
|
<span class="sort-header" @click.stop="onSortClick('endDate', $event)">结束时间<span v-if="sortIndex('endDate') !== null" class="sort-index" :class="sortClass('endDate') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('endDate') }}</span>{{ sortIcon('endDate') }}</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -104,7 +104,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="createdAt" label="创建时间" width="160">
|
|
<el-table-column prop="createdAt" label="创建时间" width="160">
|
|
|
- <template slot-scope="{ row }">{{ formatDateTime(row.createdAt) }}</template>
|
|
|
|
|
|
|
+ <template slot-scope="{ row }">{{ formatTime(row.createdAt) }}</template>
|
|
|
<template slot="header">
|
|
<template slot="header">
|
|
|
<span class="sort-header" @click.stop="onSortClick('createdAt', $event)">创建时间<span v-if="sortIndex('createdAt') !== null" class="sort-index" :class="sortClass('createdAt') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('createdAt') }}</span>{{ sortIcon('createdAt') }}</span>
|
|
<span class="sort-header" @click.stop="onSortClick('createdAt', $event)">创建时间<span v-if="sortIndex('createdAt') !== null" class="sort-index" :class="sortClass('createdAt') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('createdAt') }}</span>{{ sortIcon('createdAt') }}</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -139,12 +139,12 @@
|
|
|
<el-tag :type="statusType(currentOrder.status)" size="small">{{ statusText(currentOrder.status) }}</el-tag>
|
|
<el-tag :type="statusType(currentOrder.status)" size="small">{{ statusText(currentOrder.status) }}</el-tag>
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="支付方式">{{ currentOrder.paymentMethod || '-' }}</el-descriptions-item>
|
|
<el-descriptions-item label="支付方式">{{ currentOrder.paymentMethod || '-' }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="开始时间">{{ formatDateTime(currentOrder.startDate) }}</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="结束时间">{{ formatDateTime(currentOrder.endDate) }}</el-descriptions-item>
|
|
|
|
|
|
|
+ <el-descriptions-item label="开始时间">{{ formatTime(currentOrder.startDate) }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="结束时间">{{ formatTime(currentOrder.endDate) }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="是否早期续费">{{ currentOrder.isEarlyRenewal ? '是' : '否' }}</el-descriptions-item>
|
|
<el-descriptions-item label="是否早期续费">{{ currentOrder.isEarlyRenewal ? '是' : '否' }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="已发放CF值">{{ currentOrder.cfRewardGiven || 0 }} CF</el-descriptions-item>
|
|
<el-descriptions-item label="已发放CF值">{{ currentOrder.cfRewardGiven || 0 }} CF</el-descriptions-item>
|
|
|
- <el-descriptions-item label="创建时间">{{ formatDateTime(currentOrder.createdAt) }}</el-descriptions-item>
|
|
|
|
|
- <el-descriptions-item label="支付时间">{{ formatDateTime(currentOrder.paidAt) }}</el-descriptions-item>
|
|
|
|
|
|
|
+ <el-descriptions-item label="创建时间">{{ formatTime(currentOrder.createdAt) }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="支付时间">{{ formatTime(currentOrder.paidAt) }}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
@@ -230,17 +230,7 @@ export default {
|
|
|
const map = { pending: '待支付', paid: '已支付', cancelled: '已取消' }
|
|
const map = { pending: '待支付', paid: '已支付', cancelled: '已取消' }
|
|
|
return map[status] || status
|
|
return map[status] || status
|
|
|
},
|
|
},
|
|
|
- formatDateTime(dateStr) {
|
|
|
|
|
- if (!dateStr) return '-'
|
|
|
|
|
- const d = new Date(dateStr)
|
|
|
|
|
- if (isNaN(d)) return dateStr.toString().substring(0, 19)
|
|
|
|
|
- return d.getFullYear() + '-' +
|
|
|
|
|
- String(d.getMonth() + 1).padStart(2, '0') + '-' +
|
|
|
|
|
- String(d.getDate()).padStart(2, '0') + ' ' +
|
|
|
|
|
- String(d.getHours()).padStart(2, '0') + ':' +
|
|
|
|
|
- String(d.getMinutes()).padStart(2, '0') + ':' +
|
|
|
|
|
- String(d.getSeconds()).padStart(2, '0')
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|