优化
This commit is contained in:
@@ -50,9 +50,12 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" width="100">
|
||||
<el-table-column label="状态" width="150">
|
||||
<template v-slot="scope">
|
||||
{{ filterLable("orderStatus", scope.row.status) }}
|
||||
<span v-if="scope.row.status == 'refund'" class="refund">
|
||||
({{ filterLable("refundType", scope.row.refundType) }})
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="订单信息" width="340">
|
||||
@@ -216,6 +219,7 @@ function filterLable(key, type) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 过滤退款条件
|
||||
function refundState(row) {
|
||||
switch (row.status) {
|
||||
@@ -297,6 +301,10 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.refund {
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user