Commit 83f573a9 authored by Xuguangxing's avatar Xuguangxing

feat: 处理优惠券筛选条件

parent f5281f51
......@@ -137,6 +137,8 @@ const columns: object[] = [
}, {}),
render: (h, params) => {
const obj = receiverTypeList.find(item => item.id === params.row.receiverType) || {};
// 处理优惠券列表显示券码的问题
if (params.row.receiverType == 4) return h('div', '券码兑换');
return h('div', obj.name);
},
},
......
......@@ -49,6 +49,11 @@ export default class CouponTableModal extends Vue {
return item;
});
return { data: couponInfoList.filter(v => v.receiverType != 4) || [], total: res?.pageInfo?.totalCount };
return { data: couponInfoList.map(item => {
if (item.receiverType == 4) {
item._disabled = true;
}
return item;
}) || [], total: res?.pageInfo?.totalCount };
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment