mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 20:28:45 +08:00 
			
		
		
		
	code review:banner 逻辑
This commit is contained in:
		@@ -201,20 +201,23 @@ const resetQuery = () => {
 | 
			
		||||
  queryFormRef?.value?.resetFields()
 | 
			
		||||
  handleQuery()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/** 打开弹窗 */
 | 
			
		||||
const open = async () => {
 | 
			
		||||
  dialogVisible.value = true
 | 
			
		||||
  resetQuery()
 | 
			
		||||
}
 | 
			
		||||
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
 | 
			
		||||
 | 
			
		||||
const handleSelectionChange = (val: CouponTemplateApi.CouponTemplateVO[]) => {
 | 
			
		||||
  emit(
 | 
			
		||||
    'update:multipleSelection',
 | 
			
		||||
    val.map((item) => ({ id: item.id, name: item.name }))
 | 
			
		||||
  )
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const submitForm = () => {
 | 
			
		||||
  dialogVisible.value = false
 | 
			
		||||
}
 | 
			
		||||
// TODO @puhui999:提前 todo,先不用改;未来单独成组件,其它模块可以服用;例如说,满减送,可以选择优惠劵;
 | 
			
		||||
</script>
 | 
			
		||||
<style lang="scss" scoped></style>
 | 
			
		||||
 
 | 
			
		||||
@@ -42,6 +42,7 @@
 | 
			
		||||
      </el-col>
 | 
			
		||||
      <el-col :span="24">
 | 
			
		||||
        <el-form-item label="活动优先级">
 | 
			
		||||
          <!-- TODO @puhui999:这个目前先写死;主要是,这个优惠类型不好用 promotion_type_enum;因为优惠劵、会员折扣都算。 -->
 | 
			
		||||
          <ActivityOrdersSort
 | 
			
		||||
            v-model:activity-orders="formData.activityOrders"
 | 
			
		||||
            :promotion-types="promotionTypes"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user