【招生小程序】 优化# 按钮冒泡事件无效

master
kaeery 2025-02-28 12:37:36 +08:00
parent 86dd65acb3
commit 46ba82e344
3 changed files with 10 additions and 7 deletions

View File

@ -35,9 +35,9 @@
:labelWidth="120" :labelWidth="120"
/> />
</TFormItem> </TFormItem>
<TFormItem prop="recruitTeacherName"> <TFormItem prop="telemarketingTeacherName">
<TInputField <TInputField
v-model="form.recruitTeacherName" v-model="form.telemarketingTeacherName"
label="电销老师" label="电销老师"
placeholder="" placeholder=""
inputAlign="left" inputAlign="left"
@ -132,11 +132,12 @@ const form = ref({
studentName: '', studentName: '',
phone: '', phone: '',
basicInformation: '', basicInformation: '',
state: 1, state: null,
isConversion: 0, isConversion: 0,
remark: '', remark: '',
accomplishTime: '', accomplishTime: '',
followUpTime: '' followUpTime: '',
telemarketingTeacherName: ''
}) })
const parseStatusText = computed( const parseStatusText = computed(
() => optionsMap.stateOptions.find(item => item.value == form.value.state)?.label () => optionsMap.stateOptions.find(item => item.value == form.value.state)?.label
@ -159,6 +160,7 @@ const setFormData = () => {
form.value[key] = clueDetailInfo.value[key] form.value[key] = clueDetailInfo.value[key]
} }
} }
console.log(form.value)
} }
</script> </script>

View File

@ -1,11 +1,12 @@
<template> <template>
<view class="flex flex-col bg-white rounded-[16rpx] mb-[20rpx]" @click.stop="handleCardClick"> <view class="flex flex-col bg-white rounded-[16rpx] mb-[20rpx]">
<view <view
class="flex justify-between px-[24rpx] py-[12rpx] border-b border-solid border-[#F3F3F3]" class="flex justify-between px-[24rpx] py-[12rpx] border-b border-solid border-[#F3F3F3]"
@click="handleCardClick"
> >
<slot name="title" /> <slot name="title" />
</view> </view>
<view class="px-[24rpx] py-[16rpx] flex flex-col gap-[16rpx]"> <view class="px-[24rpx] py-[16rpx] flex flex-col gap-[16rpx]" @click="handleCardClick">
<slot name="content" /> <slot name="content" />
</view> </view>
<slot name="action" v-if="isSlotAction" /> <slot name="action" v-if="isSlotAction" />

View File

@ -140,7 +140,7 @@ const showAction = computed(() => {
) )
}) })
// //
const handleGet = async () => { const handleGet = async e => {
const { const {
item: { id } item: { id }
} = props } = props