최고관리자 로그인 오류 수정

main
이범준 5 months ago
parent e76752b404
commit 2e82093d5c

@ -20,8 +20,8 @@
</div> </div>
<script> <script>
function fnGoToEditSgg(selected){ function fnGoToEditSgg(selected){
var sggMainMenuNum = "62";
var menuUrl = $("#menus").find("li[data-key='"+sggMainMenuNum+"'] a").attr("onclick").split("'")[1]; let menuUrl = wctx.url("/mngt/mngt03/010/main.do");
let curTabId = getActiveRootTabArea().id; let curTabId = getActiveRootTabArea().id;

@ -486,22 +486,19 @@ $("#btnFastSearch--top").on( "click", function() {
$("#fastTerm--top").onEnterPress(fnGlobalFastSearch); $("#fastTerm--top").onEnterPress(fnGlobalFastSearch);
function fnGlobalFastSearch(){ function fnGlobalFastSearch(){
var integrationSearchMenuNum = "17";
var integrationSearchUrl = wctx.url("/sprt/sprt01/010/main.do");
var url = $("#menus").find("li[data-key='"+integrationSearchMenuNum+"'] a").attr("onclick").split("'")[1]; if(mainTabs.getDataset().find(i => i.url == integrationSearchUrl) != null){
if(mainTabs.getDataset().find(i => i.id == integrationSearchMenuNum) != null){ mainTabs.close(integrationSearchUrl);
mainTabs.close(url);
} }
var itegrationSearchMenu = $("#menus").find("li[data-key='"+integrationSearchMenuNum+"'] a")[0];
if($("#fastTerm--top").val() != ""){ if($("#fastTerm--top").val() != ""){
var fastTerm = $("#fastTerm--top").val(); var fastTerm = $("#fastTerm--top").val();
var fastBy = $("#fastBy--top").val(); var fastBy = $("#fastBy--top").val();
openMenu(url+"?fastBy="+fastBy+"&fastTerm="+fastTerm); openMenu(integrationSearchUrl+"?fastBy="+fastBy+"&fastTerm="+fastTerm);
} else { } else {
openMenu(url); openMenu(integrationSearchUrl);
} }
} }

@ -370,7 +370,15 @@
//사용하지 않는 연계와 관련된 메뉴 제거 //사용하지 않는 연계와 관련된 메뉴 제거
//새올민원 관련 메뉴 제거 //새올민원 관련 메뉴 제거
if(SYS_LINK_INFO.CVLCPT_LINK_SE_CD != '01'){ if(SYS_LINK_INFO.CVLCPT_LINK_SE_CD != '01'){
$("ul[id='menus']").find("li[class='menu-item'][data-key='22']").remove(); var seallMenuUrl = wctx.url("/cvlc/cvlc04/010/main.do");
$("ul[id='menus']").find("li[class='menu-item']").each(function(){
if($(this).children("a[onclick]").length > 0){
let oc = $(this).children("a[onclick]").attr("onclick").split("'");
if(oc.length == 3 && oc[1] == seallMenuUrl){
$(this).remove();
}
}
});
} }
//사용자별 선택가능한 업무 렌더링 //사용자별 선택가능한 업무 렌더링

@ -119,6 +119,10 @@ function login() {
rememberCredentials: $("#remember").prop("checked") rememberCredentials: $("#remember").prop("checked")
}; };
if(params.orgID == "default"){
params.orgID = "";
}
json.post({ json.post({
url:wctx.url("/login.do"), url:wctx.url("/login.do"),
data:params, data:params,

Loading…
Cancel
Save