From 480b2061f8b8b03ad96c4e17737151950f1806ac Mon Sep 17 00:00:00 2001 From: ltx <1006158920@qq.com> Date: Thu, 12 Mar 2026 18:05:33 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=E9=A1=B9=E7=9B=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/match/project/index.vue | 87 +++++++++++++++++++++++++++++-- 1 file changed, 82 insertions(+), 5 deletions(-) diff --git a/src/views/match/project/index.vue b/src/views/match/project/index.vue index fae780a..e39ee38 100644 --- a/src/views/match/project/index.vue +++ b/src/views/match/project/index.vue @@ -30,7 +30,7 @@ - + @@ -41,16 +41,63 @@ - - + + - + + +
+ + + + + + + + + + + + +
+ @@ -92,6 +139,20 @@ const formRef = ref(); const initParam = ref({ refresh: true, }); + +const addGroup = () => { + formData.value.groups.push({ + groupName: '', + birthDateStart: '', + birthDateEnd: '', + gender: '', + }); +}; + +const removeGroup = () => { + formData.value.groups.pop(); +}; + const formData = ref({ name: '', projectTypeId: '', @@ -99,6 +160,14 @@ const formData = ref({ fee: '', durationMinutes: '0', durationSeconds: '0', + groups: [ + { + groupName: '', + birthDateStart: '', + birthDateEnd: '', + gender: '', + }, + ], }); const formRules = ref({ @@ -154,7 +223,7 @@ const dialogTitle = ref('新增'); const onOpenMenu = (row) => { console.log(row); - dialogTitle.value = row.id ? '编辑' : '新增'; + dialogTitle.value = row ? '编辑' : '新增'; formData.value = { name: '', projectTypeId: '', @@ -162,6 +231,14 @@ const onOpenMenu = (row) => { fee: '', durationMinutes: '0', durationSeconds: '0', + groups: [ + { + groupName: '', + birthDateStart: '', + birthDateEnd: '', + gender: '', + }, + ], }; if (row) { formData.value = row;