diff --git a/applicationFE/src/views/softwareCatalog/SoftwareCatalogList.vue b/applicationFE/src/views/softwareCatalog/SoftwareCatalogList.vue
index 57a4100..9f760e3 100644
--- a/applicationFE/src/views/softwareCatalog/SoftwareCatalogList.vue
+++ b/applicationFE/src/views/softwareCatalog/SoftwareCatalogList.vue
@@ -59,10 +59,26 @@
{{ catalog.catalogDescription }}
-
연동 workflow
+
+
+
+
+
관련 정보
+
TAGS
@@ -341,4 +385,11 @@
body {
font-feature-settings: "cv03", "cv04", "cv11";
}
+
+ .btn-grid-list {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ grid-column-gap: 10px;
+ grid-row-gap: 10px;
+ }
\ No newline at end of file
diff --git a/applicationFE/src/views/softwareCatalog/components/softwareCatalogForm.vue b/applicationFE/src/views/softwareCatalog/components/softwareCatalogForm.vue
index b02ee71..ac10007 100644
--- a/applicationFE/src/views/softwareCatalog/components/softwareCatalogForm.vue
+++ b/applicationFE/src/views/softwareCatalog/components/softwareCatalogForm.vue
@@ -130,8 +130,6 @@ onMounted(async () => {
})
const setInit = async () => {
- console.log("setInit props.catalogIdx : ", props.catalogIdx)
- console.log("porps.mode : ", props.mode)
if(props.mode == 'update') {
await _getSoftwareCatalogDetail()
} else {
@@ -193,29 +191,48 @@ const handleFileChange = (event: any) => {
}
const createSoftwareCatalog = async () => {
- if(props.mode == 'new') {
- const formData = new FormData();
- formData.append('iconFile', files.value);
-
- catalogDto.value.catalogRefData = refData.value;
- formData.append('catalogDto', new Blob([JSON.stringify(catalogDto.value)], {
- type: 'application/json'
- }));
-
+ const formData = new FormData();
+ formData.append('iconFile', files.value);
+
+ catalogDto.value.catalogRefData = refData.value;
+ formData.append('catalogDto', new Blob([JSON.stringify(catalogDto.value)], {
+ type: 'application/json'
+ }));
+
+ if(props.mode == 'new') {
const response = await axios.post(baseUrl + '/catalog/software', formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
});
-
+
if(response.data) {
- toast.success('등록되었습니다.')
- emit('get-list')
+ if(response.data.data == null) {
+ toast.error('등록 할 수 없습니다.')
+ setInit();
+ } else {
+ toast.success('등록되었습니다.')
+ emit('get-list')
+ }
} else {
toast.error('등록 할 수 없습니다.')
+ setInit();
}
+
} else {
- const response = await axios.put(baseUrl + '/catalog/software')
+ const response = await axios.put(baseUrl + '/catalog/software', formData, {
+ headers: {
+ 'Content-Type': 'multipart/form-data'
+ }
+ });
+
+ if(response.data) {
+ toast.success('수정되었습니다.')
+ emit('get-list')
+ } else {
+ toast.error('수정 할 수 없습니다.')
+ setInit();
+ }
}
}
diff --git a/applicationFE/src/views/softwareCatalog/components/softwareCatalogLog.vue b/applicationFE/src/views/softwareCatalog/components/softwareCatalogLog.vue
new file mode 100644
index 0000000..2d12fb7
--- /dev/null
+++ b/applicationFE/src/views/softwareCatalog/components/softwareCatalogLog.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+ Build Log
+
+ Loading...
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file