code review:优惠劵管理

This commit is contained in:
YunaiV
2023-06-03 23:15:11 +08:00
parent 7c6d7e8061
commit 51e76ffd53
3 changed files with 13 additions and 33 deletions

View File

@ -142,17 +142,6 @@ const statusTabs = reactive([
const queryFormRef = ref<FormInstance | null>(null)
onMounted(() => {
getList()
// 设置 statuses 过滤
for (const dict of getIntDictOptions(DICT_TYPE.PROMOTION_COUPON_STATUS)) {
statusTabs.push({
label: dict.label,
value: dict.value as string
})
}
})
/** 查询列表 */
const getList = async () => {
loading.value = true
@ -197,4 +186,15 @@ const onTabChange = (tabName) => {
queryParams.status = tabName === 'all' ? undefined : tabName
getList()
}
onMounted(() => {
getList()
// 设置 statuses 过滤
for (const dict of getIntDictOptions(DICT_TYPE.PROMOTION_COUPON_STATUS)) {
statusTabs.push({
label: dict.label,
value: dict.value as string
})
}
})
</script>