
--- client/resources/api/main.js
+++ client/resources/api/main.js
... | ... | @@ -4,9 +4,6 @@ |
4 | 4 |
export const adminMainProc = () => { |
5 | 5 |
return apiClient.post(`/admin/main/adminMainProc.json`); |
6 | 6 |
} |
7 |
-export const findAplyToastsProc = () => { |
|
8 |
- return apiClient.post(`/admin/main/findAplyToastsProc.json`); |
|
9 |
-} |
|
10 | 7 |
|
11 | 8 |
// 공무원용 메인 페이지 |
12 | 9 |
export const governmentMainProc = data => { |
--- client/views/pages/adm/main/Main.vue
+++ client/views/pages/adm/main/Main.vue
... | ... | @@ -74,8 +74,7 @@ |
74 | 74 |
|
75 | 75 |
// API |
76 | 76 |
import { |
77 |
- adminMainProc, |
|
78 |
- findAplyToastsProc, |
|
77 |
+ adminMainProc |
|
79 | 78 |
} from "../../../../resources/api/main"; |
80 | 79 |
import { findBySysMenu } from "../../../../resources/api/menu"; |
81 | 80 |
|
... | ... | @@ -176,7 +175,6 @@ |
176 | 175 |
} |
177 | 176 |
this.chartData = datas; |
178 | 177 |
|
179 |
- this.fnFindAplyToasts(); |
|
180 | 178 |
} catch (error) { |
181 | 179 |
alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
182 | 180 |
} |
... | ... | @@ -253,24 +251,6 @@ |
253 | 251 |
} |
254 | 252 |
}, |
255 | 253 |
|
256 |
- // 온라인상담신청 알림 |
|
257 |
- async fnFindAplyToasts() { |
|
258 |
- try { |
|
259 |
- const response = await findAplyToastsProc(); |
|
260 |
- let aplyToasts = response.data.data; |
|
261 |
- let newAply = 0; |
|
262 |
- for (let aply of aplyToasts) { |
|
263 |
- if (aply.name == "신규등록") { |
|
264 |
- newAply = aply.count; |
|
265 |
- } |
|
266 |
- } |
|
267 |
- if (newAply != 0) { |
|
268 |
- alert("새로운 온라인상담신청이 " + newAply + "건 있습니다."); |
|
269 |
- } |
|
270 |
- } catch (error) { |
|
271 |
- alert("에러가 발생했습니다.\n시스템관리자에게 문의하세요."); |
|
272 |
- } |
|
273 |
- }, |
|
274 | 254 |
}, |
275 | 255 |
}; |
276 | 256 |
|
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?