
--- client/views/common/commonPlugin.js
+++ client/views/common/commonPlugin.js
... | ... | @@ -187,13 +187,8 @@ |
187 | 187 |
|
188 | 188 |
// 기본 검색 객체 생성 |
189 | 189 |
Vue.config.globalProperties.$getDefaultSerchItem = function (key, type) { |
190 |
- |
|
191 | 190 |
let value1 = null; |
192 | 191 |
let value2 = null; |
193 |
- if (type === 'dates') { |
|
194 |
- value1 = moment().add("-1", "M").format('YYYY-MM-DD'); |
|
195 |
- value2 = moment().format('YYYY-MM-DD'); |
|
196 |
- } |
|
197 | 192 |
return { |
198 | 193 |
key: key, |
199 | 194 |
value: value1, |
--- client/views/pages/dbConnection/DBConnectionDetail.vue
+++ client/views/pages/dbConnection/DBConnectionDetail.vue
... | ... | @@ -238,8 +238,12 @@ |
238 | 238 |
data: vm.connectionDB, |
239 | 239 |
}); |
240 | 240 |
|
241 |
- vm.$showAlert("메세지", "삭제되었습니다."); |
|
242 |
- vm.$router.push("/dbConnectionList.page"); |
|
241 |
+ if (response.data.resultData.dbConnection.checkMessage.success) { |
|
242 |
+ vm.$showAlert("메세지", "삭제되었습니다."); |
|
243 |
+ vm.$router.push("/dbConnectionList.page"); |
|
244 |
+ } else { |
|
245 |
+ vm.$showAlert("메세지", response.data.resultData.dbConnection.checkMessage.message); |
|
246 |
+ } |
|
243 | 247 |
} catch (error) { |
244 | 248 |
vm.$showAlert( |
245 | 249 |
"에러 발생", |
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?