Selaa lähdekoodia

메인화면 수정

whakdo963 2 vuotta sitten
vanhempi
commit
ddaa791183
3 muutettua tiedostoa jossa 92 lisäystä ja 17 poistoa
  1. 10 5
      src/main/webapp/css/style.css
  2. 22 2
      src/main/webapp/js/app/main.js
  3. 60 10
      src/main/webapp/main.html

+ 10 - 5
src/main/webapp/css/style.css

@@ -127,9 +127,9 @@ a, button {outline:none !important; text-decoration:none !important;}
127 127
 #ITP_MAIN_HEADER .col_3 .itp_header_label {width:160px; padding:13px 16px; font-size:17px; font-weight:700; display:inline-block;}
128 128
 #ITP_MAIN_HEADER .col_3 .itp_header_result {width:auto; float: right; display:inline-block; font-size:18px; font-weight:700; color:blue; text-align: right; padding:12px;}
129 129
 
130
-#ITP_MAIN_HEADER .col_4 {background:#eee; width:22%; height:80px; display:inline-block; margin:5px 11px; border-radius:8px;}
131
-#ITP_MAIN_HEADER .col_4 .itp_header_label {padding:12px 18px 3px 18px; font-size:17px; font-weight:700;}
132
-#ITP_MAIN_HEADER .col_4 .itp_header_result {font-size:18px; font-weight:700; color:blue; text-align: right; padding:4px 18px;}
130
+#ITP_MAIN_HEADER .col_4 {background:#eee; width:22%; height:50px; display:inline-block; margin:5px 11px; border-radius:8px;}
131
+#ITP_MAIN_HEADER .col_4 .itp_header_label {width:125px; padding:13px 16px; font-size:17px; font-weight:700; display:inline-block;}
132
+#ITP_MAIN_HEADER .col_4 .itp_header_result {width:auto; float: right; display:inline-block; font-size:18px; font-weight:700; color:blue; text-align: right; padding:12px;}
133 133
 
134 134
 #ITP_NOTE_BAR {background:#eee; width:100%; height:160px; float:right; border-radius:15px;}
135 135
 #ITP_NOTE_BAR .itp_side_bar_header {padding-top:12px; text-align:center; font-size:17px;}
@@ -137,8 +137,13 @@ a, button {outline:none !important; text-decoration:none !important;}
137 137
 #ITP_NOTE_BAR .itp_side_bar_note label {width:15%; margin-bottom:8px;}
138 138
 #ITP_NOTE_BAR .itp_side_bar_note label.date {width:10%;}
139 139
 #ITP_NOTE_BAR .itp_side_bar_note div {position:relative; top:7px; width:74%; display:inline-block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
140
-#ITP_MAIN_GRAPH_AREA {width:80%; height:770px;}
141
-#ITP_MAIN_GRAPH_AREA .itp_graph_area {width:49.8%; height:380px; display:inline-block;}
140
+#ITP_MAIN_GRAPH_AREA {width:100%; height:1200px;}
141
+#ITP_MAIN_GRAPH_AREA .itp_graph_box {width:49.8%; height:400px; display:inline-block;}
142
+#ITP_MAIN_GRAPH_AREA .itp_graph_box .itp_graph_area {width:75%; height:400px; display:inline-block; float:right;}
143
+#ITP_MAIN_GRAPH_AREA .itp_graph_box .itp_graph_side {width:24%; height:400px; display:inline-block; }
144
+#ITP_MAIN_GRAPH_AREA .itp_graph_box .itp_graph_side select {width:88%; margin:12px; height:30px;}
145
+#ITP_MAIN_GRAPH_AREA .itp_graph_box .itp_graph_info_bar {width:50%; height:300px; margin:0 auto;}
146
+#ITP_MAIN_GRAPH_AREA .itp_graph_box .itp_graph_info_bar .itp_graph_info {margin-top:40px; padding: 24px 26px; background:#eee; width:80px; font-size:26px; height:205px; display:inline-block; border:1px solid #ccc; border-radius:15px;}
142 147
 /* ITP_HEADER */
143 148
 #ITP_HEADER .itp_head {font-family: 'GmarketSansMedium';width:100%; height:50px; position:relative; line-height:50px; z-index:100;}
144 149
 #ITP_HEADER .itp_tit {margin:0; padding:0; line-height:50px; font-size:20px;}

+ 22 - 2
src/main/webapp/js/app/main.js

@@ -38,7 +38,7 @@ google.charts.setOnLoadCallback(drawChartReq);
38 38
 google.charts.setOnLoadCallback(drawChartPodr);
39 39
 google.charts.setOnLoadCallback(drawChartReqUp);
40 40
 google.charts.setOnLoadCallback(drawChartcore);
41
-
41
+google.charts.setOnLoadCallback(drawLine);
42 42
 //구매요청 그래프
43 43
 function drawChartReq() {
44 44
   var data = google.visualization.arrayToDataTable([
@@ -80,7 +80,8 @@ function drawChartReqUp() {
80 80
 
81 81
   var options = {
82 82
       title: '구매요청 상위 품목(일주일)',
83
-	  legend: { position: 'left' }
83
+	  legend: { position: 'left' },
84
+	  bars: 'horizontal'
84 85
   };
85 86
 
86 87
   var chart = new google.charts.Bar(document.getElementById('ITP_PCH_REQ_UP_ITEM_GRAPH'));
@@ -109,6 +110,25 @@ function drawChartcore() {
109 110
   }
110 111
 
111 112
 
113
+function drawLine() {
114
+  var data = google.visualization.arrayToDataTable([
115
+    ['Year', '안전재고수량', '현재재고수량'],
116
+    ['품목1',  1000,      400],
117
+    ['품목2',  1170,      460],
118
+    ['품목3',  660,       1120],
119
+    ['품목4',  1660,      120],
120
+    ['품목5',  660,       520],
121
+  ]);
122
+
123
+  var options = {
124
+    title: '',
125
+    legend: { position: 'top' }
126
+  };
127
+
128
+  var chart = new google.visualization.LineChart(document.getElementById('ITP_SAFE_STCK_GRAPH'));
129
+
130
+  chart.draw(data, options);
131
+}
112 132
 
113 133
 var itp_fn_MAIN_NOTICE_grid = {
114 134
 	init: function() {

+ 60 - 10
src/main/webapp/main.html

@@ -160,9 +160,14 @@
160 160
 										<label class="date fn">2022.11.01</label>
161 161
 										<div class="fn">공지 1 내용 가나다라마바상라ㅣㅁㄴ리ㅏㄴ멀ㄴ얾ㅣ;ㅁ너ㅣㅏ런ㅁ이ㅏ;러</div>
162 162
 									</div>
163
+									<div class="itp_side_bar_note">
164
+										<label class="fn">공지 2제목</label>
165
+										<label class="date fn">2022.11.01</label>
166
+										<div class="fn">공지 1 내용 가나다라마바상라ㅣㅁㄴ리ㅏㄴ멀ㄴ얾ㅣ;ㅁ너ㅣㅏ런ㅁ이ㅏ;러</div>
167
+									</div>
163 168
 								</div>
164
-								<div id="ITP_MAIN_HEADER" style="display: none;">
165
-									<div class="col_4">
169
+								<div id="ITP_MAIN_HEADER" style="display: inline-block;">
170
+									<div class="col_4" style="margin-left:0">
166 171
 										<div class="itp_header_label">
167 172
 										구매요청 
168 173
 										</div>
@@ -170,7 +175,7 @@
170 175
 										10건
171 176
 										</div>
172 177
 									</div>
173
-									<div class="col_4">
178
+									<div class="col_4" style="margin:0 3%;">
174 179
 										<div class="itp_header_label">
175 180
 										발주진행
176 181
 										</div>
@@ -186,7 +191,7 @@
186 191
 										10건
187 192
 										</div>
188 193
 									</div>
189
-									<div class="col_4">
194
+									<div class="col_4" style="margin-right:0; float:right;">
190 195
 										<div class="itp_header_label">
191 196
 										구매가능금액
192 197
 										</div>
@@ -195,7 +200,7 @@
195 200
 										</div>
196 201
 									</div>
197 202
 								</div>
198
-								<div id="ITP_MAIN_HEADER" style="display: inline-block;">
203
+								<div id="ITP_MAIN_HEADER" style="display: none;">
199 204
 									<div class="col_3" style="margin-left:0">
200 205
 										<div class="itp_header_label">
201 206
 										구매요청 건수
@@ -221,11 +226,56 @@
221 226
 										</div>
222 227
 									</div>
223 228
 								</div>
224
-								<div id="ITP_MAIN_GRAPH_AREA" style="display:none;">
225
-									<div id="ITP_PCH_REQ_GRAPH" class="itp_graph_area"></div>
226
-									<div id="ITP_PCH_PODR_GRAPH" class="itp_graph_area"></div>
227
-									<div id="ITP_PCH_REQ_UP_ITEM_GRAPH" class="itp_graph_area"></div>
228
-									<div id="ITP_STTL_GRAPH" class="itp_graph_area"></div>
229
+								<div id="ITP_MAIN_GRAPH_AREA">
230
+									<div class="itp_graph_box">
231
+										<div class="itp_graph_side">
232
+											<select>
233
+												<option>fasdf</option>
234
+											</select>
235
+											<div class="itp_graph_info_bar">
236
+												<div class="itp_graph_info">구매요청</div>
237
+											</div>
238
+										</div>
239
+										<div id="ITP_PCH_REQ_GRAPH" class="itp_graph_area"></div>
240
+									</div>
241
+									<div class="itp_graph_box">
242
+										<div class="itp_graph_side">
243
+											<select>
244
+												<option>fasdf</option>
245
+											</select>
246
+											<div class="itp_graph_info_bar">
247
+												<div class="itp_graph_info">구매발주</div>
248
+											</div>
249
+										</div>
250
+										<div id="ITP_PCH_PODR_GRAPH" class="itp_graph_area"></div>
251
+									</div>
252
+									<div class="itp_graph_box">
253
+										<div class="itp_graph_side">
254
+											<select>
255
+												<option>fasdf</option>
256
+											</select>
257
+											<div class="itp_graph_info_bar">
258
+												<div class="itp_graph_info">매출순위</div>
259
+											</div>
260
+										</div>
261
+										<div id="ITP_PCH_REQ_UP_ITEM_GRAPH" class="itp_graph_area"></div>
262
+									</div>
263
+									<div class="itp_graph_box">
264
+										<div class="itp_graph_side">
265
+											<div class="itp_graph_info_bar">
266
+												<div class="itp_graph_info" style="padding-top:8px;">&nbsp;정&nbsp;&nbsp;산</div>
267
+											</div>
268
+										</div>
269
+										<div id="ITP_STTL_GRAPH" class="itp_graph_area"></div>
270
+									</div>
271
+									<div class="itp_graph_box" style="width:100%">
272
+										<div class="itp_graph_side" style="width:12%;">
273
+											<div class="itp_graph_info_bar">
274
+												<div class="itp_graph_info">안전재고</div>
275
+											</div>
276
+										</div>
277
+										<div id="ITP_SAFE_STCK_GRAPH" class="itp_graph_area" style="width:87%;"></div>
278
+									</div>
229 279
 								</div>
230 280
 							</div>
231 281
 						</article>