사용자 페이지 반응형 작업 완료.

지도사용요청 작성시 지역 등록 수 제한 변경 3 > 1
master
강석 최 2022-03-18 17:25:55 +09:00
parent d4cfa08330
commit fa36d004c7
6 changed files with 173 additions and 117 deletions

View File

@ -61,7 +61,7 @@
</tr> </tr>
<tr> <tr>
<th class="d-none d-sm-table-cell" colspan="2">요청 내용</th> <th class="d-none d-sm-table-cell" colspan="2">요청 내용</th>
<th class="d-table-cell d-sm-none">장소</th> <th class="d-table-cell d-sm-none">요청 내용</th>
<td style="text-align: center"><c:out value='${useRequestVO.user_msg}'/></td> <td style="text-align: center"><c:out value='${useRequestVO.user_msg}'/></td>
</tr> </tr>
<tr class="d-table-row d-sm-none"> <tr class="d-table-row d-sm-none">

View File

@ -4,21 +4,19 @@
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> <%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<script src="<c:url value='/js/map/request.js' />"></script>
<script type="text/javascript"> <script type="text/javascript">
var start = "${b_start}"; var start = "${b_start}";
var end = "${b_end}"; var end = "${b_end}";
var now = "${current_page}"; var now = "${current_page}";
</script> </script>
<div class="section_title"> <script src="<c:url value='/js/map/request.js' />"></script>
<!-- <p>현장 지원 시스템</p> -->
</div>
<div class="section_content"> <div class="section_content">
<h1 class="h4 m-3">지도사용 요청</h1> <h1 class="h4 m-3">지도사용 요청</h1>
<form:form commandName="useRequestSearchVO" id="searchForm" name="searchForm" method="get" > <form:form commandName="useRequestSearchVO" id="searchForm" name="searchForm" method="get" >
<div class="row justify-content-between bg-white mx-3 py-2"> <div class="row justify-content-between bg-white mx-3 py-2">
<div class="col-12 d-none d-sm-block">
<input type="hidden" name="id" /> <input type="hidden" name="id" />
<table class="table table-hover text-center"> <table class="table table-hover text-center">
<thead> <thead>
@ -33,16 +31,16 @@
<tbody> <tbody>
<c:if test="${count >= 1}"> <c:if test="${count >= 1}">
<c:forEach var="item" items="${useRequestList}" varStatus="idx"> <c:forEach var="item" items="${useRequestList}" varStatus="idx">
<tr> <tr class="clickAbleObj title-td" data-idx="${item.idx}">
<%--<a href="/map/request/<c:out value='${item.idx}' />">--%> <%--<a href="/map/request/<c:out value='${item.idx}' />">--%>
<td>${idx.count}</td> <td>${idx.count}</td>
<td class="title-td" data-idx="${item.idx}">${item.title}</td> <td>${item.title}</td>
<td class="td_date">${item.r_date}</td> <td class="td_date">${item.r_date}</td>
<td> <td>
<c:choose> <c:choose>
<c:when test="${item.status eq '99'}"><span class="status-bar status-warning"><c:out value='승인대기' /></span></c:when> <c:when test="${item.status eq '99'}"><span class="status-bar status-warning w-50 my-0 mx-auto"><c:out value='승인대기' /></span></c:when>
<c:when test="${item.status eq '0'}"><span class="status-bar status-success"><c:out value='승인' /></span></c:when> <c:when test="${item.status eq '0'}"><span class="status-bar status-success w-50 my-0 mx-auto"><c:out value='승인' /></span></c:when>
<c:when test="${item.status eq '-1'}"><span class="status-bar status-danger"><c:out value='반려' /></span></c:when> <c:when test="${item.status eq '-1'}"><span class="status-bar status-danger w-50 my-0 mx-auto"><c:out value='반려' /></span></c:when>
</c:choose> </c:choose>
</td> </td>
</tr> </tr>
@ -54,6 +52,34 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="col-12 d-block d-sm-none">
<c:if test="${count >= 1}">
<c:forEach var="item" items="${useRequestList}" varStatus="status">
<div class="row text-center border-0 ${status.first?'border-top':''} border-bottom border-2 border-dark clickAbleObj title-td" data-idx="${item.idx}">
<div class="col-4 py-1 border-bottom bg-secondary fw-bold" style="--bs-bg-opacity: .3">번호</div>
<div class="col-8 py-1 border-bottom"><c:out value="${item.idx}"/></div>
<div class="col-4 py-1 border-bottom bg-secondary fw-bold" style="--bs-bg-opacity: .3">작업명</div>
<div class="col-8 py-1 border-bottom"><c:out value="${item.title}"/></div>
<div class="col-4 py-1 border-bottom bg-secondary fw-bold" style="--bs-bg-opacity: .3">날짜</div>
<div class="col-8 py-1 border-bottom td_date"><c:out value="${item.r_date}"/></div>
<div class="col-4 py-1 bg-secondary fw-bold" style="--bs-bg-opacity: .3">상태</div>
<div class="col-8 py-1">
<c:choose>
<c:when test="${item.status eq '99'}"><span class="status-bar status-warning w-50 my-0 mx-auto"><c:out value='승인대기'/></span></c:when>
<c:when test="${item.status eq '0'}"><span class="status-bar status-success w-50 my-0 mx-auto"><c:out value='승인'/></span></c:when>
<c:when test="${item.status eq '-1'}"><span class="status-bar status-danger w-50 my-0 mx-auto"><c:out value='반려'/></span></c:when>
</c:choose>
</div>
</div>
</c:forEach>
</c:if>
<c:if test="${count == 0}">
<div class="row text-center border-0 border-top border-bottom border-2 border-dark clickAbleObj title-td" data-idx="${item.idx}">
<div class="col-12 py-2">요청한 목록이 없습니다.</div>
</div>
</c:if>
</div>
</div>
<div class="row justify-content-between mx-3 py-2"> <div class="row justify-content-between mx-3 py-2">
<div class="col-auto"></div> <div class="col-auto"></div>
<div class="col-auto"> <div class="col-auto">

View File

@ -13,26 +13,29 @@
<div class="section_content"> <div class="section_content">
<input type="hidden" id="layers" name="layers" /> <input type="hidden" id="layers" name="layers" />
<input type="hidden" id="places" name="places" /> <input type="hidden" id="places" name="places" />
<input type="hidden" id="status" value="${useRequestVO.status}"/>
<c:choose> <c:choose>
<c:when test="${useRequestVO.status eq '99' }"> <c:when test="${useRequestVO.status eq '99' }"><%--승인대기--%>
<table class="detail_table"> <table class="detail_table">
<tbody> <tbody>
<tr> <tr>
<th colspan="2">작업명</th> <th class="d-none d-sm-table-cell" colspan="2">작업명</th>
<th class="d-table-cell d-sm-none">작업명</th>
<td><input type="text" class="form-control" id="title" name="title" value="${useRequestVO.title}" /></td> <td><input type="text" class="form-control" id="title" name="title" value="${useRequestVO.title}" /></td>
</tr> </tr>
<tr> <tr>
<th colspan="2">기간</th> <th class="d-none d-sm-table-cell" colspan="2">기간</th>
<th class="d-table-cell d-sm-none">기간</th>
<td> <td>
<input type="text" class="form-control input-datepicker" id="startDate" name="s_date" onchange="dateChange('start');" readonly value="${useRequestVO.s_date}"> ~ <input type="text" class="form-control input-datepicker" id="startDate" name="s_date" onchange="dateChange('start');" readonly value="${useRequestVO.s_date}"> ~
<input type="text" class="form-control input-datepicker" id="endDate" name="e_date" onchange="dateChange('end');" readonly value="${useRequestVO.e_date}"> <input type="text" class="form-control input-datepicker" id="endDate" name="e_date" onchange="dateChange('end');" readonly value="${useRequestVO.e_date}">
</td> </td>
</tr> </tr>
<tr> <tr>
<th colspan="2">장소</th> <th class="d-none d-sm-table-cell" colspan="2">장소</th>
<th class="d-table-cell d-sm-none">장소</th>
<td id="area_select_td"> <td id="area_select_td">
<div> <%--<div>
<select class="form-control input-area-select" id="city" name="city" onchange="changeAreaList(this.value, this.name)"> <select class="form-control input-area-select" id="city" name="city" onchange="changeAreaList(this.value, this.name)">
<option value="0">::시/도::</option> <option value="0">::시/도::</option>
<c:forEach var="item" items="${cityList}" varStatus="status"> <c:forEach var="item" items="${cityList}" varStatus="status">
@ -48,8 +51,8 @@
<option value="0">::선택::</option> <option value="0">::선택::</option>
</select> </select>
<span class="glyphicon glyphicon-plus point-cursor" onclick="addAreaBtn();"></span> <span class="glyphicon glyphicon-plus point-cursor" onclick="addAreaBtn();"></span>
</div> </div>--%>
<div id="addedArea" class="addedArea"> <div id="addedArea" class="addedArea mt-0">
<c:forEach var="item" items="${selectArea}" varStatus="status"> <c:forEach var="item" items="${selectArea}" varStatus="status">
<span id="addedAreaWrap${status.index}" class="addedAreaWrap"> <span id="addedAreaWrap${status.index}" class="addedAreaWrap">
<c:out value="${item.name}" /> <c:out value="${item.name}" />
@ -61,18 +64,23 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th rowspan="3">레이어</th> <th class="d-none d-sm-table-cell" colspan="2">요청 내용</th>
<th class="d-table-cell d-sm-none">요청 내용</th>
<td><textarea class="form-control" rows="3" style="resize:none;" name="user_msg">${useRequestVO.user_msg}</textarea></td>
</tr>
<tr class="d-table-row d-sm-none">
<th colspan="3">레이어</th>
</tr>
<tr>
<th class="d-none d-sm-table-cell" rowspan="3">레이어</th>
<th><label>지하시설물</label></th> <th><label>지하시설물</label></th>
<td> <td>
<c:forEach var="item" items="${layersVO}" varStatus="status"> <c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'facility'}"> <c:if test="${item.code eq 'facility'}">
<c:set var="faciltySize" value="${faciltySize+1}" /> <c:set var="faciltySize" value="${faciltySize+1}" />
<label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" value="${item.layer}" <c:forEach var="item2" items="${layers}" varStatus="status2"> <label class="layer-label">
<c:if test="${item.layer eq item2}"> <input type="checkbox" name="${item.code}" id="${item.code}" value="${item.layer}"
checked ${fn:contains(useRequestVO.layers, item.layer)?'checked':''}/>${item.name}
</c:if>
</c:forEach>
/>${item.name}
</label> </label>
</c:if> </c:if>
</c:forEach> </c:forEach>
@ -83,12 +91,9 @@
<td> <td>
<c:forEach var="item" items="${layersVO}" varStatus="status"> <c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'structure'}"> <c:if test="${item.code eq 'structure'}">
<label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" value="${item.layer}" <c:forEach var="item2" items="${layers}" varStatus="status2"> <label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" value="${item.layer}"
<c:if test="${item.layer eq item2}"> ${fn:contains(useRequestVO.layers, item.layer)?'checked':''}/>${item.name}
checked </label>
</c:if>
</c:forEach>
/>${item.name}</label>
</c:if> </c:if>
</c:forEach> </c:forEach>
</td> </td>
@ -98,20 +103,13 @@
<td> <td>
<c:forEach var="item" items="${layersVO}" varStatus="status"> <c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'ground'}"> <c:if test="${item.code eq 'ground'}">
<label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" value="${item.layer}" <c:forEach var="item2" items="${layers}" varStatus="status2"> <label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" value="${item.layer}"
<c:if test="${item.layer eq item2}"> ${fn:contains(useRequestVO.layers, item.layer)?'checked':''}/>${item.name}
checked </label>
</c:if>
</c:forEach>
/>${item.name}</label>
</c:if> </c:if>
</c:forEach> </c:forEach>
</td> </td>
</tr> </tr>
<tr>
<th colspan="2">요청 내용</th>
<td><textarea class="form-control" rows="3" style="resize:none;" name="user_msg">${useRequestVO.user_msg}</textarea></td>
</tr>
</tbody> </tbody>
</table> </table>
<div class="section_btn"> <div class="section_btn">
@ -127,26 +125,51 @@
<c:otherwise> <c:otherwise>
<table class="detail_table"> <table class="detail_table">
<tbody> <tbody>
<tr> <tr class="d-none d-sm-table-row">
<th colspan="2">작업명</th> <th colspan="2">작업명</th>
<td class="title-td">${useRequestVO.title}</td> <td class="title-td">${useRequestVO.title}</td>
<th colspan="1">상태</th> <th>상태</th>
<td colspan="1" class="text-center" > <td class="text-center" >
<c:if test="${useRequestVO.status ne '99' }"> <c:if test="${useRequestVO.status ne '99' }">
<c:choose> <c:choose>
<c:when test="${useRequestVO.status eq '0' }"><span class="label label-success"><c:out value='사용중' /></span></c:when> <c:when test="${useRequestVO.status eq '0' }">
<c:otherwise><span class="label label-danger"><c:out value='사용불가' /></span></c:otherwise> <span class="status-bar status-success"><c:out value='사용중' /></span>
</c:when>
<c:otherwise>
<span class="status-bar status-danger"><c:out value='사용불가' /></span>
</c:otherwise>
</c:choose>
</c:if>
</td>
</tr>
<tr class="d-table-row d-sm-none">
<th>작업명</th>
<td>${useRequestVO.title}</td>
</tr>
<tr class="d-table-row d-sm-none">
<th>상태</th>
<td>
<c:if test="${useRequestVO.status ne '99' }">
<c:choose>
<c:when test="${useRequestVO.status eq '0' }">
<span class="status-bar status-success w-50 text-center"><c:out value='사용중' /></span>
</c:when>
<c:otherwise>
<span class="status-bar status-danger w-50 text-center"><c:out value='사용불가' /></span>
</c:otherwise>
</c:choose> </c:choose>
</c:if> </c:if>
</td> </td>
</tr> </tr>
<tr> <tr>
<th colspan="2">기간</th> <th class="d-none d-sm-table-cell" colspan="2">기간</th>
<th class="d-table-cell d-sm-none">기간</th>
<td colspan="3">${useRequestVO.s_date} ~ ${useRequestVO.e_date}</td> <td colspan="3">${useRequestVO.s_date} ~ ${useRequestVO.e_date}</td>
</tr> </tr>
<tr> <tr>
<th rowspan="1" colspan="2">장소</td> <th class="d-none d-sm-table-cell" colspan="2">장소</th>
<td colspan="4"> <th class="d-table-cell d-sm-none">장소</th>
<td colspan="3">
<c:forEach var="item" items="${selectArea}" varStatus="status"> <c:forEach var="item" items="${selectArea}" varStatus="status">
<div id="addedBlock${status.index}"> <div id="addedBlock${status.index}">
${item.name} ${item.name}
@ -155,21 +178,23 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th rowspan="3" colspan="1">레이어</th> <th class="d-none d-sm-table-cell" colspan="2">요청 내용</th>
<th><label>지하시설물</label></th> <th class="d-table-cell d-sm-none">요청 내용</th>
<td colspan="4"> <td colspan="3">${useRequestVO.user_msg}</td>
</tr>
<tr class="d-table-row d-sm-none">
<th colspan="3">레이어</th>
</tr>
<tr>
<th class="d-none d-sm-table-cell" rowspan="3">레이어</th>
<th>지하시설물</th>
<td colspan="3">
<div class="setting_content2" class="facility"> <div class="setting_content2" class="facility">
<c:forEach var="item" items="${layersVO}" varStatus="status"> <c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'facility'}"> <c:if test="${item.code eq 'facility'}">
<c:set var="faciltySize" value="${faciltySize+1}" />
<label class="layer-label"> <label class="layer-label">
<input type="checkbox" class="me-2" name="${item.code}" id="${item.code}" disabled="disabled" value="${item.layer}" <input type="checkbox" class="me-2" name="${item.code}" id="${item.code}" value="${item.layer}"
<c:forEach var="item2" items="${layers}" varStatus="status2"> ${fn:contains(useRequestVO.layers, item.layer)?'checked':''}/>${item.name}
<c:if test="${item.layer eq item2}">
checked
</c:if>
</c:forEach>
/>${item.name}
</label> </label>
</c:if> </c:if>
</c:forEach> </c:forEach>
@ -178,16 +203,13 @@
</tr> </tr>
<tr> <tr>
<th>지하구조물</th> <th>지하구조물</th>
<td colspan="4"> <td colspan="3">
<div class="setting_content2" class="structure"> <div class="setting_content2" class="structure">
<c:forEach var="item" items="${layersVO}" varStatus="status"> <c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'structure'}"> <c:if test="${item.code eq 'structure'}">
<label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" disabled="disabled" value="${item.layer}" <c:forEach var="item2" items="${layers}" varStatus="status2"> <label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" value="${item.layer}"
<c:if test="${item.layer eq item2}"> ${fn:contains(useRequestVO.layers, item.layer)?'checked':''}/> ${item.name}
checked </label>
</c:if>
</c:forEach>
/> ${item.name}</label>
</c:if> </c:if>
</c:forEach> </c:forEach>
</div> </div>
@ -195,28 +217,23 @@
</tr> </tr>
<tr> <tr>
<th><label>지반</label></th> <th><label>지반</label></th>
<td colspan="4"> <td colspan="3">
<div class="setting_content2" class="ground"> <div class="setting_content2" class="ground">
<c:forEach var="item" items="${layersVO}" varStatus="status"> <c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'ground'}"> <c:if test="${item.code eq 'ground'}">
<label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" disabled="disabled" value="${item.layer}" <c:forEach var="item2" items="${layers}" varStatus="status2"> <label class="layer-label">
<c:if test="${item.layer eq item2}"> <input type="checkbox" name="${item.code}" id="${item.code}" value="${item.layer}"
checked ${fn:contains(useRequestVO.layers, item.layer)?'checked':''}/>${item.name}
</c:if> </label>
</c:forEach>
/>${item.name}</label>
</c:if> </c:if>
</c:forEach> </c:forEach>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<th>요청 내용</th> <th class="d-none d-sm-table-cell" colspan="2">전달 메세지</th>
<td colspan="4">${useRequestVO.user_msg}</td> <th class="d-table-cell d-sm-none">전달 메세지</th>
</tr> <td colspan="3">${useRequestVO.admin_msg}</td>
<tr>
<th>전달 메세지</th>
<td colspan="4">${useRequestVO.admin_msg}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -13,18 +13,21 @@
<table class="detail_table"> <table class="detail_table">
<tbody> <tbody>
<tr> <tr>
<th colspan="2">작업명</th> <th class="d-none d-sm-table-cell" colspan="2">작업명</th>
<th class="d-table-cell d-sm-none">작업명</th>
<td><input type="text" class="form-control" id="title" name="title" autocomplete="off"/></td> <td><input type="text" class="form-control" id="title" name="title" autocomplete="off"/></td>
</tr> </tr>
<tr> <tr>
<th colspan="2">기간</th> <th class="d-none d-sm-table-cell" colspan="2">기간</th>
<th class="d-table-cell d-sm-none">기간</th>
<td> <td>
<input type="text" class="form-control input-datepicker" readonly id="startDate" name= "s_date" onchange="dateChange('start');"> ~ <input type="text" class="form-control input-datepicker" readonly id="startDate" name= "s_date" onchange="dateChange('start');"> ~
<input type="text" class="form-control input-datepicker" readonly id="endDate" name="e_date" onchange="dateChange('end');"> <input type="text" class="form-control input-datepicker" readonly id="endDate" name="e_date" onchange="dateChange('end');">
</td> </td>
</tr> </tr>
<tr> <tr>
<th colspan="2">장소</th> <th class="d-none d-sm-table-cell" colspan="2">장소</th>
<th class="d-table-cell d-sm-none">장소</th>
<td id="area_select_td"> <td id="area_select_td">
<div> <div>
<select id="city" name="city" onchange="changeAreaList(this.value, this.name)" class="form-control input-area-select"> <select id="city" name="city" onchange="changeAreaList(this.value, this.name)" class="form-control input-area-select">
@ -46,7 +49,15 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th rowspan="3">레이어</th> <th class="d-none d-sm-table-cell" colspan="2">요청 내용</th>
<th class="d-table-cell d-sm-none">요청 내용</th>
<td><textarea class="form-control" rows="3" style="resize:none;" name=user_msg></textarea></td>
</tr>
<tr class="d-table-row d-sm-none">
<th colspan="3">레이어</th>
</tr>
<tr>
<th class="d-none d-sm-table-cell" rowspan="3">레이어</th>
<th><label>지하시설물</label></th> <th><label>지하시설물</label></th>
<td> <td>
<c:forEach var="item" items="${layersVO}" varStatus="status"> <c:forEach var="item" items="${layersVO}" varStatus="status">
@ -76,16 +87,9 @@
</c:forEach> </c:forEach>
</td> </td>
</tr> </tr>
<tr>
<th colspan="2">요청 내용</th>
<td><textarea class="form-control" rows="3" style="resize:none;" name=user_msg></textarea></td>
</tr>
</tbody> </tbody>
</table> </table>
<input type="hidden" id="layers" name="layers"/> <input type="hidden" id="layers" name="layers"/>
<input type="hidden" id="places" name="places"/> <input type="hidden" id="places" name="places"/>
<div class="section_btn"> <div class="section_btn">
<p class="search_p1"> <p class="search_p1">

View File

@ -5,13 +5,13 @@
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<style> <style>
.section_content{ .section_content{
width: 620px; max-width: 620px;
} }
</style> </style>
<form:form commandName="userVO" name="updateForm" action="/map/userUpdate" id="updateForm" method="post"> <form:form commandName="userVO" name="updateForm" action="/map/userUpdate" id="updateForm" method="post">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" /> <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
<input type="hidden" name="userid" value="${userVO.userid}" /> <input type="hidden" name="userid" value="${userVO.userid}" />
<div class="section_content ms-5"> <div class="section_content mx-3">
<div class="join_top"> <div class="join_top">
<h2><span class="glyphicon glyphicon-edit"></span> 회원 정보 수정</h2> <h2><span class="glyphicon glyphicon-edit"></span> 회원 정보 수정</h2>
</div> </div>

View File

@ -24,6 +24,15 @@ $(document).on('click', '#mapRequestModalBtn', function (){
$(document).on('click', '.title-td', function (){ $(document).on('click', '.title-td', function (){
mapRequestModalOpen('/map/request/'+$(this).attr("data-idx")); mapRequestModalOpen('/map/request/'+$(this).attr("data-idx"));
}) })
$(document).on('change', '.layer-label', function (){
const status = $("#status").val()
if(status !== undefined && status !== '99'){
const checkBox = $(this).find("input")[0]
checkBox.checked = !checkBox.checked;
}
})
function mapRequestModalOpen(url){ function mapRequestModalOpen(url){
$.ajax({ $.ajax({
url: url, url: url,
@ -76,7 +85,7 @@ function fn_link_page(pageNo) {
function addAreaBtn(){ function addAreaBtn(){
var addedAreaWrapCnt = $(".addedAreaWrap").length; var addedAreaWrapCnt = $(".addedAreaWrap").length;
if(addedAreaWrapCnt < 3){ if(addedAreaWrapCnt < 1){
if($("#city").val() != "0"){ if($("#city").val() != "0"){
areaAddCount++; areaAddCount++;
var selectAreaCode = null; var selectAreaCode = null;