
--- client/views/pages/equipment/EquipmentManagementSelect.jsx
+++ client/views/pages/equipment/EquipmentManagementSelect.jsx
... | ... | @@ -36,6 +36,56 @@ |
36 | 36 |
|
37 | 37 |
const navigate = useNavigate(); |
38 | 38 |
|
39 |
+ // 시스템 코드 - 장비 대여 상태 조회 |
|
40 |
+ const equipmentRentalStatesSelect = () => { |
|
41 |
+ // console.log('equipmentRentalStatesSelect Function Run'); |
|
42 |
+ // axios.get('/common/systemCode/equipmentRentalStatesSelect.json') |
|
43 |
+ // .then(function (response) { |
|
44 |
+ // console.log('equipmentRentalStatesSelect : ', response.data); |
|
45 |
+ // }).catch(function (error) { |
|
46 |
+ // console.log("equipmentRentalStatesSelect - error : ", error); |
|
47 |
+ // }); |
|
48 |
+ |
|
49 |
+ // fetch('/common/systemCode/equipmentRentalStatesSelect.json', { |
|
50 |
+ // method: "GET", |
|
51 |
+ // }) |
|
52 |
+ // .then((response) => response.json()) |
|
53 |
+ // .then((data) => { |
|
54 |
+ // console.log('equipmentRentalStatesSelect response : ', data); |
|
55 |
+ // }).catch((error) => { |
|
56 |
+ // console.log('equipmentRentalStatesSelect error : ', error); |
|
57 |
+ // }); |
|
58 |
+ |
|
59 |
+ // fetch('/common/systemCode/equipmentRentalStatesSelect.json', { |
|
60 |
+ // // headers: { |
|
61 |
+ // // Accept: "application / json", |
|
62 |
+ // // }, |
|
63 |
+ // method: "GET", |
|
64 |
+ // }) |
|
65 |
+ // .then((response) => response.json()) |
|
66 |
+ // .then((data) => console.log(data)); |
|
67 |
+ |
|
68 |
+ // fetch('https://dummyjson.com/products/1') |
|
69 |
+ // .then(res => res.json()) |
|
70 |
+ // .then(json => console.log(json)) |
|
71 |
+ } |
|
72 |
+ |
|
73 |
+ // fetch("https://jsonplaceholder.typicode.com/posts/1") |
|
74 |
+ // .then((response) => response.json()) |
|
75 |
+ // .then((data) => console.log(data)) |
|
76 |
+ |
|
77 |
+ // fetch("https://jsonplaceholder.typicode.com/posts/1", { |
|
78 |
+ // method : "POST", |
|
79 |
+ // headers : {"Content-Type": "application/json",}, |
|
80 |
+ // body: JSON.stringify({ |
|
81 |
+ // title: "Test", |
|
82 |
+ // body: "I am testing!", |
|
83 |
+ // userId: 1, |
|
84 |
+ // }), |
|
85 |
+ // }) |
|
86 |
+ // .then((response) => response.json()) |
|
87 |
+ // .then((json) => console.log(json)) |
|
88 |
+ |
|
39 | 89 |
// 대상자 목록 조회 |
40 | 90 |
const seniorSelectList = () => { |
41 | 91 |
console.log('seniorSelectList Function Run'); |
... | ... | @@ -542,6 +592,7 @@ |
542 | 592 |
|
543 | 593 |
// 마운트 시 실행 함수 |
544 | 594 |
React.useEffect(() => { |
595 |
+ equipmentRentalStatesSelect(); |
|
545 | 596 |
seniorSelectList(); |
546 | 597 |
workerSelectList(); |
547 | 598 |
|
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?