From 5667c3edf8cad557be2f3befa10cf80d96737ece Mon Sep 17 00:00:00 2001 From: yoon Date: Tue, 8 Apr 2025 18:45:27 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8=20?= =?UTF-8?q?=EC=84=A4=EB=AA=85=20=EC=97=86=EC=9D=84=EB=95=8C=20=ED=95=98?= =?UTF-8?q?=EC=9D=B4=ED=94=88=20=EB=B0=8F=20=EC=82=AD=EC=A0=9C=20=EC=BB=A8?= =?UTF-8?q?=ED=8E=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/list/ProjectCard.vue | 114 +++++++++++++++++----------- 1 file changed, 68 insertions(+), 46 deletions(-) diff --git a/src/components/list/ProjectCard.vue b/src/components/list/ProjectCard.vue index 5cdd8e4..7fae777 100644 --- a/src/components/list/ProjectCard.vue +++ b/src/components/list/ProjectCard.vue @@ -3,7 +3,7 @@
-
+
{{ title }}
@@ -12,42 +12,62 @@
+ -
- -
날짜
-
{{ strdate }} ~ {{ enddate }}
-
- -
- -
참여자
- -
- -
- -
설명
-
{{ description }}
-
- -
- - - -
- {{ address }} {{ addressdtail }} +
+
+ +
날짜
+
+
+ {{ strdate }} ~ {{ enddate }} +
+
+ + +
+
+ +
참여자
+
+
+ +
+
+ + +
+
+ +
설명
+
+
+ {{ description || '-' }} +
+
+ + +
+
+ + + +
+
+
{{ address }} {{ addressdtail }}
+
-
@@ -521,17 +541,19 @@ const handleUpdate = async () => { // 프로젝트 삭제 const handleDelete = () => { - $api.patch('project/delete', { - projctSeq: props.projctSeq, - projctCol: props.projctCol, - }) - .then(res => { - if (res.status === 200) { - toastStore.onToast('삭제가 완료되었습니다.', 's'); - projectStore.getProjectList(); - projectStore.getMemberProjects(); - } - }) + if (confirm('프로젝트를 삭제하시겠습니까?')) { + $api.patch('project/delete', { + projctSeq: props.projctSeq, + projctCol: props.projctCol, + }) + .then(res => { + if (res.status === 200) { + toastStore.onToast('프로젝트가 삭제되었습니다.', 's'); + projectStore.getProjectList(); + projectStore.getMemberProjects(); + } + }) + } }; // 컴포넌트 마운트 시 실행