주석추가

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