code review:banner 逻辑

This commit is contained in:
YunaiV 2023-10-21 19:59:41 +08:00
parent 4709c18a6e
commit 2dbfa77bee
5 changed files with 6 additions and 2 deletions

2
.env
View File

@ -11,7 +11,7 @@ VITE_OPEN=true
VITE_APP_TENANT_ENABLE=true VITE_APP_TENANT_ENABLE=true
# 验证码的开关 # 验证码的开关
VITE_APP_CAPTCHA_ENABLE=false VITE_APP_CAPTCHA_ENABLE=true
# 百度统计 # 百度统计
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc

View File

@ -201,20 +201,23 @@ const resetQuery = () => {
queryFormRef?.value?.resetFields() queryFormRef?.value?.resetFields()
handleQuery() handleQuery()
} }
/** 打开弹窗 */ /** 打开弹窗 */
const open = async () => { const open = async () => {
dialogVisible.value = true dialogVisible.value = true
resetQuery() resetQuery()
} }
defineExpose({ open }) // open defineExpose({ open }) // open
const handleSelectionChange = (val: CouponTemplateApi.CouponTemplateVO[]) => { const handleSelectionChange = (val: CouponTemplateApi.CouponTemplateVO[]) => {
emit( emit(
'update:multipleSelection', 'update:multipleSelection',
val.map((item) => ({ id: item.id, name: item.name })) val.map((item) => ({ id: item.id, name: item.name }))
) )
} }
const submitForm = () => { const submitForm = () => {
dialogVisible.value = false dialogVisible.value = false
} }
// TODO @puhui999 todo
</script> </script>
<style lang="scss" scoped></style>

View File

@ -42,6 +42,7 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="活动优先级"> <el-form-item label="活动优先级">
<!-- TODO @puhui999这个目前先写死主要是这个优惠类型不好用 promotion_type_enum因为优惠劵会员折扣都算 -->
<ActivityOrdersSort <ActivityOrdersSort
v-model:activity-orders="formData.activityOrders" v-model:activity-orders="formData.activityOrders"
:promotion-types="promotionTypes" :promotion-types="promotionTypes"