Selaa lähdekoodia

其他游学活动信息

15591641157 2 kuukautta sitten
vanhempi
commit
87135b2a45

+ 3 - 0
packages/merchant/src/components/data-form.vue

@@ -107,6 +107,9 @@ const submit = () => {
 const validate = async (): Promise<{ valid: boolean; errors: any[] }> => {
   return await form.value!.validate()
 }
+onShow(() => {
+  console.log('App Show',modelValue)
+})
 defineExpose({
   validate,
   submitDisabled,

+ 4 - 3
packages/merchant/src/pages/agent/designer/archives/activity/others/index.vue

@@ -23,8 +23,8 @@ import dayjs from 'dayjs'
 const id = ref()
 const actionSheetStatus = ref(false)
 const formData = ref({})
-const schema = ref<DataFormSchema<Omit<DesignerEvent, 'id' | 'createTime' | 'userId'>>>({
-  participationDate: {
+const schema = ref<DataFormSchema<Omit<DesignerEvent, 'id' | 'createTime'  | 'userId'>>>({
+  applyTime: {
     type: 'TimePick',
     label: messages.objects.designerEvent.applyTime,
     required: true,
@@ -40,7 +40,7 @@ const schema = ref<DataFormSchema<Omit<DesignerEvent, 'id' | 'createTime' | 'use
   },
 })
 const rules = ref({
-  participationDate: [
+  applyTime: [
     {
       required: true,
       message: '请选择活动时间',
@@ -75,6 +75,7 @@ const handleSubmit = async () => {
 }
 const handleEdit = (item: DesignerEvent) => {
   formData.value = item
+  console.log(formData.value,"formData.value")
   actionSheetStatus.value = true
 }
 const handleDelete = async (item: DesignerEvent) => {