|
@@ -62,7 +62,12 @@
|
|
|
<p>{{ scope.row.order_pay_price | fen2Yuan }}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="支付方式" prop="order_pay_type" sortable width="120">
|
|
|
+ <el-table-column
|
|
|
+ :filter-method="filterTag"
|
|
|
+ :filters="[{ text: '微信', value: 1 }, { text: '支付宝', value: 2 }, { text: '现场支付', value: 3 }, { text: '美团支付', value: 4 }, { text: '赠送', value: 5 }]"
|
|
|
+ filter-placement="bottom-end"
|
|
|
+ label="支付方式"
|
|
|
+ prop="order_pay_type">
|
|
|
<template slot-scope="scope">
|
|
|
<p>{{ ['', '微信', '支付宝', '现场支付', '美团支付', '赠送'][scope.row.order_pay_type] }}</p>
|
|
|
</template>
|
|
@@ -154,6 +159,9 @@ export default {
|
|
|
})
|
|
|
|
|
|
return sums
|
|
|
+ },
|
|
|
+ filterTag(value, row) {
|
|
|
+ return row.order_pay_type === value
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|