
--- client/views/layout/Header.vue
+++ client/views/layout/Header.vue
... | ... | @@ -42,8 +42,8 @@ |
42 | 42 |
}) |
43 | 43 |
.then(function (response) { |
44 | 44 |
vm.$showAlert("메세지", "로그아웃"); |
45 |
- if (response.data.checkMessage.status > 0) { |
|
46 |
- this.$store.commit("setLoginUser", null); |
|
45 |
+ if (response.data.checkMessage.status === 200) { |
|
46 |
+ vm.$store.commit("setLoginUser", null); |
|
47 | 47 |
vm.$router.push({ path: "/login.page", query: {} }); |
48 | 48 |
} |
49 | 49 |
}) |
--- client/views/pages/meta/TermManagement.vue
+++ client/views/pages/meta/TermManagement.vue
... | ... | @@ -139,16 +139,14 @@ |
139 | 139 |
<tr> |
140 | 140 |
<th>첨부파일</th> |
141 | 141 |
<td> |
142 |
- <span>{{ fileName }}</span> |
|
143 |
- <button class="blue-border-btn small-btn" @click="downLoadExecel">양식 다운로드</button> |
|
144 |
- <button class="blue-border-btn small-btn" @click="fileSelect">양식 업로드</button> |
|
145 |
- <input type="file" id="fileUpload" @change="handleFileChange" style="display: none" accept=".xlsx, .xls" /> |
|
142 |
+ <div class="flex item-center"> |
|
143 |
+ <span v-if="!$isEmpty(fileName)">{{ fileName }}</span> |
|
144 |
+ <button class="blue-border-btn small-btn" @click="downLoadExecel">양식 다운로드</button> |
|
145 |
+ <label for="fileUpload" class="blue-border-btn small-btn">양식 업로드</label> |
|
146 |
+ <input type="file" id="fileUpload" @change="handleFileChange" style="display: none" accept=".xlsx, .xls" /> |
|
147 |
+ </div> |
|
146 | 148 |
</td> |
147 | 149 |
</tr> |
148 |
- <!-- <tr> |
|
149 |
- <th>양식다운로드</th> |
|
150 |
- <td @click="downLoadExecel">행정표준용어 데이터 양식.xlsx</td> |
|
151 |
- </tr> --> |
|
152 | 150 |
</tbody> |
153 | 151 |
</table> |
154 | 152 |
</div> |
... | ... | @@ -356,11 +354,6 @@ |
356 | 354 |
}); |
357 | 355 |
} |
358 | 356 |
}, |
359 |
- // 파일 업로드 로직 |
|
360 |
- fileSelect: function () { |
|
361 |
- // 버튼 클릭시 file input 클릭 |
|
362 |
- document.getElementById("fileUpload").click(); |
|
363 |
- }, |
|
364 | 357 |
handleFileChange: function (event) { |
365 | 358 |
this.fileName = event.target.files[0].name; |
366 | 359 |
}, |
... | ... | @@ -385,12 +378,11 @@ |
385 | 378 |
data: formData, |
386 | 379 |
}) |
387 | 380 |
.then(function (response) { |
388 |
- let duplicateCheck = response.data.resultData.duplicateCheck; |
|
389 | 381 |
if (response.data.checkMessage.success) { |
390 | 382 |
vm.$showAlert( |
391 | 383 |
"success", |
392 | 384 |
"파일이 성공적으로 업로드되었습니다.<br>중복 데이터 : " + |
393 |
- duplicateCheck + |
|
385 |
+ response.data.resultData.duplicateCheck + |
|
394 | 386 |
"건 제외" |
395 | 387 |
); |
396 | 388 |
vm.fileName = ""; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?