This commit is contained in:
@@ -2691,15 +2691,20 @@ $usr_id = session('usr_id');
|
||||
position: new naver.maps.LatLng(lat, lng),
|
||||
title: "매물ID: <?= $data['rcpt_key'] ?>",
|
||||
map: map,
|
||||
zIndex: 50
|
||||
zIndex: 50,
|
||||
icon: {
|
||||
content: '<img src="/plugin/img/pin.png" style="width:32px;height:32px;" />', // HTML 방식
|
||||
anchor: new naver.maps.Point(16, 32) // 앵커 포인트 (보통 하단 중앙)
|
||||
}
|
||||
});
|
||||
|
||||
// 마커에 정보창 추가
|
||||
var infoWindow = new naver.maps.InfoWindow({
|
||||
content: `
|
||||
<div style="padding:10px;min-width:200px;">
|
||||
<div style="font-size:13px;line-height:1.6;">
|
||||
<div><strong>매물ID:</strong> <?= esc($data['rcpt_atclno'] ?? '') ?></div>
|
||||
</div>
|
||||
<div style="font-size:13px;line-height:1.6;">
|
||||
<div><strong>매물ID:</strong> <?= esc($data['rcpt_atclno'] ?? '') ?></div>
|
||||
</div>
|
||||
</div>
|
||||
`,
|
||||
borderWidth: 1,
|
||||
@@ -2710,83 +2715,58 @@ $usr_id = session('usr_id');
|
||||
pixelOffset: new naver.maps.Point(10, -10)
|
||||
});
|
||||
|
||||
// 마커 클릭 시 정보창 열기/닫기
|
||||
naver.maps.Event.addListener(marker, 'click', function () {
|
||||
if (infoWindow.getMap()) {
|
||||
infoWindow.close();
|
||||
} else {
|
||||
infoWindow.open(map, marker);
|
||||
}
|
||||
});
|
||||
|
||||
// 마커 클릭 시 정보창 열기/닫기
|
||||
// naver.maps.Event.addListener(marker, 'click', function () {
|
||||
// if (infoWindow.getMap()) {
|
||||
// infoWindow.close();
|
||||
// } else {
|
||||
// infoWindow.open(map, marker);
|
||||
// }
|
||||
// });
|
||||
|
||||
// 페이지 로드 시 정보창 자동으로 열기
|
||||
infoWindow.open(map, marker);
|
||||
|
||||
if (assignArr.length > 0) {
|
||||
for (var i = 0; i < assignArr.length; i++) {
|
||||
|
||||
|
||||
marker = new naver.maps.Marker({
|
||||
var additionalMarker = new naver.maps.Marker({
|
||||
position: new naver.maps.LatLng(assignArr[i].rcpt_y, assignArr[i].rcpt_x),
|
||||
map: map,
|
||||
zIndex: 50
|
||||
});
|
||||
|
||||
var addWindow = new naver.maps.InfoWindow({
|
||||
content: `
|
||||
<div style="padding:10px;min-width:200px;">
|
||||
<div style="font-size:13px;line-height:1.6;">
|
||||
<div><strong>매물ID:</strong> ${assignArr[i].rcpt_atclno} </div>
|
||||
</div>
|
||||
</div>
|
||||
`,
|
||||
borderWidth: 1,
|
||||
borderColor: '#ddd',
|
||||
backgroundColor: '#fff',
|
||||
anchorSize: new naver.maps.Size(10, 10),
|
||||
anchorSkew: true,
|
||||
pixelOffset: new naver.maps.Point(10, -10)
|
||||
});
|
||||
|
||||
// 추가 마커 클릭 이벤트 - 클로저를 사용하여 각 마커별 정보창 참조 유지
|
||||
// (function (marker, infoWin) {
|
||||
// naver.maps.Event.addListener(marker, 'click', function () {
|
||||
// if (infoWin.getMap()) {
|
||||
// infoWin.close();
|
||||
// } else {
|
||||
// infoWin.open(map, marker);
|
||||
// }
|
||||
// });
|
||||
// })(additionalMarker, addWindow);
|
||||
|
||||
}
|
||||
// // 현재 매물과 동일한 것은 건너뛰기 (이미 메인 마커로 표시됨)
|
||||
// if (assignArr[i].rcpt_sq == '<?= $data['rcpt_sq'] ?>') continue;
|
||||
|
||||
// // assignArr[i]의 좌표 사용
|
||||
// var assignLat = parseFloat(assignArr[i].rcpt_y || 0);
|
||||
// var assignLng = parseFloat(assignArr[i].rcpt_x || 0);
|
||||
|
||||
// // 좌표가 유효하지 않으면 건너뛰기
|
||||
// if (assignLat === 0 || assignLng === 0) continue;
|
||||
|
||||
// // 추가 마커 생성 (기본 빨간색 마커 아이콘 사용)
|
||||
// var submarker = new naver.maps.Marker({
|
||||
// position: new naver.maps.LatLng(assignLat, assignLng),
|
||||
// title: "매물ID: " + assignArr[i].rcpt_atclno,
|
||||
// map: map,
|
||||
// zIndex: 40,
|
||||
// icon: {
|
||||
// content: '<div style="background-color:#ff0000;width:12px;height:12px;border-radius:50%;border:2px solid white;box-shadow:0 2px 4px rgba(0,0,0,0.3);"></div>',
|
||||
// anchor: new naver.maps.Point(8, 8)
|
||||
// }
|
||||
// });
|
||||
|
||||
// // 정보창 생성 (클로저 문제 해결을 위해 즉시실행함수 사용)
|
||||
// (function (marker, info) {
|
||||
// var subinfoWindow = new naver.maps.InfoWindow({
|
||||
// content: `
|
||||
// <div style="padding:10px;min-width:200px;">
|
||||
// <div style="font-size:13px;line-height:1.6;">
|
||||
// <div><strong>매물ID:</strong> ${info.rcpt_atclno}</div>
|
||||
// </div>
|
||||
// </div>
|
||||
// `,
|
||||
// borderWidth: 1,
|
||||
// borderColor: '#ddd',
|
||||
// backgroundColor: '#fff',
|
||||
// anchorSize: new naver.maps.Size(10, 10),
|
||||
// anchorSkew: true,
|
||||
// pixelOffset: new naver.maps.Point(10, -10)
|
||||
// });
|
||||
|
||||
// // 마커 클릭 이벤트
|
||||
// naver.maps.Event.addListener(marker, 'click', function () {
|
||||
// if (subinfoWindow.getMap()) {
|
||||
// subinfoWindow.close();
|
||||
// } else {
|
||||
// subinfoWindow.open(map, marker);
|
||||
// }
|
||||
// });
|
||||
// })(submarker, assignArr[i]);
|
||||
// }
|
||||
}
|
||||
|
||||
// 페이지 로드 시 정보창 자동으로 열기
|
||||
infoWindow.open(map, marker);
|
||||
|
||||
|
||||
// 업로드파일 선택
|
||||
$("#uploadPick").on("click", function () {
|
||||
if (!dz) return;
|
||||
|
||||
@@ -174,19 +174,20 @@ $usr_nm = session('usr_nm');
|
||||
<label class="form-label mb-1">현재상태</label>
|
||||
<div class="d-flex gap-1">
|
||||
<select name="rcpt_stat1" class="form-select form-select-sm">
|
||||
<option value="">예약확인지연</option>
|
||||
|
||||
<option value="">선택</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "STEP_VERIFICATION"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="rcpt_stat2" id="srcGugun" class="form-select form-select-sm">
|
||||
<!-- <select name="rcpt_stat2" id="srcGugun" class="form-select form-select-sm">
|
||||
<option value="">-상태2-</option>
|
||||
</select>
|
||||
<select name="rcpt_stat3" id="srcDong" class="form-select form-select-sm">
|
||||
<option value="">-상태3-</option>
|
||||
</select>
|
||||
</select> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -655,7 +656,7 @@ $usr_nm = session('usr_nm');
|
||||
{ data: null, render: fn_prd_render },
|
||||
{ data: 'rcpt_product_info1' },
|
||||
<?php if ($usr_level != "45"): ?>
|
||||
{ data: 'dept_nm' },
|
||||
{ data: 'dept_nm' },
|
||||
{ data: 'usr_nm' },
|
||||
<?php endif; ?>
|
||||
{ data: 'parcel_out_yn' },
|
||||
@@ -684,7 +685,7 @@ $usr_nm = session('usr_nm');
|
||||
if (!rowData) return;
|
||||
|
||||
const rcpt_atclno = rowData.rcpt_atclno;
|
||||
location.href = "<?= site_url('article/receipt/detail') ?>/" + rcpt_atclno;
|
||||
window.open("<?= site_url('article/receipt/detail') ?>/" + rcpt_atclno, '_blank');
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user