주석추가

This commit is contained in:
yoon 2025-02-20 15:43:37 +09:00
parent a816978ba3
commit 52809ba743

View File

@ -233,6 +233,7 @@ const selectedYear = computed(() => {
if (!selectedCategory.value || selectedCategory.value === 900101) { if (!selectedCategory.value || selectedCategory.value === 900101) {
return null; return null;
} }
// category label
return yearCategory.value.find(item => item.value === selectedCategory.value)?.label || null; return yearCategory.value.find(item => item.value === selectedCategory.value)?.label || null;
}); });
@ -251,6 +252,7 @@ const closeCreateModal = () => {
isCreateModalOpen.value = false; isCreateModalOpen.value = false;
}; };
// ::
const handleAddressUpdate = addressData => { const handleAddressUpdate = addressData => {
address.value = addressData.address; address.value = addressData.address;
detailAddress.value = addressData.detailAddress; detailAddress.value = addressData.detailAddress;
@ -296,11 +298,13 @@ const closeEditModal = () => {
isEditModalOpen.value = false; isEditModalOpen.value = false;
}; };
// +
const allColors = computed(() => { const allColors = computed(() => {
const existingColor = { value: selectedProject.value.PROJCTCOL, label: selectedProject.value.projctcolor }; const existingColor = { value: selectedProject.value.PROJCTCOL, label: selectedProject.value.projctcolor };
return [existingColor, ...colorList.value]; return [existingColor, ...colorList.value];
}); });
//
const hasChanges = computed(() => { const hasChanges = computed(() => {
const original = projectList.value.find(p => p.PROJCTSEQ === selectedProject.value.PROJCTSEQ); const original = projectList.value.find(p => p.PROJCTSEQ === selectedProject.value.PROJCTSEQ);
if (!original) return false; if (!original) return false;
@ -317,6 +321,7 @@ const hasChanges = computed(() => {
); );
}); });
// ::
const updateAddress = (addressData) => { const updateAddress = (addressData) => {
selectedProject.value = { selectedProject.value = {
...selectedProject.value, ...selectedProject.value,
@ -353,7 +358,6 @@ const handleUpdate = () => {
}); });
}; };
//
onMounted(async () => { onMounted(async () => {
await getProjectList(); await getProjectList();
await userStore.userInfo(); await userStore.userInfo();