let baseState = false,
|
yyongState = false,
|
zhuantiState = false;
|
//左侧弹窗位置
|
var lT = new leftTopDatlog();
|
var rT = new rightTopDatlog();
|
//根目录点击事件
|
function RootClickData(parm) {
|
CloseAllScreenDialog();
|
ClearLocstrage();
|
TJBtnCheck();
|
|
if (parm == "" | parm == null) {
|
return false;
|
}
|
|
//点击飞到初始化位置
|
var currentId = sgworld.ProjectTree.FindItem(RootInitLocation);
|
if (currentId == "") return;
|
sgworld.Navigate.FlyTo(currentId);
|
|
//打开青海图层
|
sgworld.ProjectTree.SetVisibility("", false);
|
let initLayer = sgworld.ProjectTree.FindItem(RootInitLayer);
|
if (initLayer == "") return;
|
sgworld.ProjectTree.SetVisibility(initLayer, true);
|
sgworld.Navigate.FlyTo(initLayer);
|
|
//传递参数 基础数据
|
if (parm == RootCatlogExBase.Type) {
|
if (baseState == false) {
|
TBAX.createPmDialogDock("左上", url + "html/firstAndSecondCatlog.html?type=" + parm, lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
|
var LayerId = sgworld.ProjectTree.FindItem(RootCatlogExBase.name);
|
if (LayerId != "") { return false };
|
//确认图层关闭
|
var layer = sgworld.ProjectTree.LoadFlyLayer(RootCatlogExBase.Fly, '');
|
sgworld.ProjectTree.RenameGroup(layer, RootCatlogExBase.name);
|
//let CurrentID = sgworld.ProjectTree.FindItem(RootCatlogExBase.name);
|
//sgworld.ProjectTree.SetVisibility(CurrentID, false);
|
} else {
|
TBAX.setLMenu(JSON.stringify(lMenu));
|
}
|
baseState = !baseState;
|
yyongState = false;
|
zhuantiState = false;
|
}
|
|
//应用数据
|
if (parm == RootCatlogExYingYong.Type) {
|
|
if (yyongState == false) {
|
TBAX.createPmDialogDock("左上", url + "html/firstAndSecondCatlog.html?type=" + parm, lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
|
var LayerId = sgworld.ProjectTree.FindItem(RootCatlogExYingYong.name);
|
if (LayerId != "") { return false };
|
var layer = sgworld.ProjectTree.LoadFlyLayer(RootCatlogExYingYong.Fly, '');
|
sgworld.ProjectTree.SetVisibility(layer, false);
|
sgworld.ProjectTree.RenameGroup(layer, RootCatlogExYingYong.name);
|
} else {
|
TBAX.setLMenu(JSON.stringify(lMenu));
|
}
|
yyongState = !yyongState;
|
baseState = false;
|
zhuantiState = false;
|
}
|
|
//专题数据
|
if (parm == RootCatlogExBasezhuanti.Type) {
|
if (zhuantiState == false) {
|
TBAX.createPmDialogDock("左上", url + "html/firstAndSecondCatlog.html?type=" + parm, lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
|
|
var LayerId = sgworld.ProjectTree.FindItem(RootCatlogExBasezhuanti.name);
|
if (LayerId != "") { return false };
|
let layer = sgworld.ProjectTree.LoadFlyLayer(RootCatlogExBasezhuanti.Fly, '');
|
sgworld.ProjectTree.SetVisibility(layer, false);
|
sgworld.ProjectTree.RenameGroup(layer, RootCatlogExBasezhuanti.name);
|
} else {
|
TBAX.setLMenu(JSON.stringify(lMenu));
|
}
|
zhuantiState = !zhuantiState;
|
baseState = false;
|
yyongState = false;
|
}
|
}
|
|
|
//工具
|
function chaXun(type) {
|
TBAX.closeDialog("中间");
|
if (type == "1") {
|
TBAX.setFullBtnVisibility("a1", "false");
|
TBAX.setFullBtnVisibility("a2", "true");
|
TBAX.setFullBtnVisibility("a3", "true");
|
TBAX.setFullBtnVisibility("a4", "false");
|
TBAX.createPmDialogDock("中间", url + "html/tool.html", 1000, 50, 100, 450, -1, -1);
|
} else {
|
TBAX.setFullBtnVisibility("a1", "true");
|
TBAX.setFullBtnVisibility("a2", "false");
|
TBAX.closeDialog("中间");
|
TBAX.closeDialog("tool");
|
}
|
}
|
|
//菜单
|
function setMenu(param) {
|
TBAX.closeDialog("中间");
|
if (param == 1) {
|
TBAX.setFullBtnVisibility("a1", "true");
|
TBAX.setFullBtnVisibility("a2", "false");
|
TBAX.setFullBtnVisibility("a3", "false");
|
TBAX.setFullBtnVisibility("a4", "true");
|
TBAX.createPmDialogDock('中间', url + "html/menu.html", 1000, 50, 100, 450, -1, -1);
|
}
|
else {
|
TBAX.setFullBtnVisibility("a3", "true");
|
TBAX.setFullBtnVisibility("a4", "false");
|
TBAX.closeDialog("中间");
|
}
|
}
|
|
function fenX(type) {
|
// debugger;
|
var modleSigle = localStorage.getItem("type");
|
if (modleSigle == "" | modleSigle == null) {
|
return false;
|
}
|
if (type == "1") {
|
TBAX.setFullBtnVisibility("a5", "false");
|
TBAX.setFullBtnVisibility("a6", "true");
|
TBAX.closeDialog("左下");
|
TBAX.closeDialog("右中");
|
if (modleSigle != "湟水河") {
|
TBAX.closeDialog("右上");
|
}
|
TBAX.closeDialog("右下");
|
switch (modleSigle) {
|
case "QHLD":
|
case "QHCD":
|
case "QHDB":
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/QH2014.html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
case "QHHM":
|
case "QHSD":
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/QHFZ2014.html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
case "DLDB":
|
case "DLTD":
|
case "DLSD":
|
case "DLRL":
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/DL.html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
case "HHLD":
|
case "HHCD":
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/HH.html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
case "KCGZ":
|
case "KCXY":
|
case "DZZH":
|
case "DZZS":
|
case "QHCD":
|
case "STRL":
|
case "STBC":
|
case "KCDZ":
|
case "DLZD":
|
case "DLKC":
|
case "DZZS":
|
case "DLDZ":
|
case "QLHT":
|
case "QLML":
|
case "QLCD":
|
case "QLGM":
|
case "QLJC":
|
case "QLQY":
|
case "QLMY":
|
case "QLHD":
|
case "DL2010":
|
case "DL2018":
|
case "DL2019":
|
case "GF1":
|
case "GF1B":
|
case "GF1C":
|
case "GF1D":
|
case "GF2":
|
case "GF6":
|
case "QH2018":
|
case "QH2019":
|
case "SJXZ":
|
case "QLQY":
|
case "QLHD":
|
case "QLCD":
|
case "QLGM":
|
case "QLHT":
|
case "QLJC":
|
case "QLML":
|
case "QLMY":
|
case "SXSJ":
|
case "XJXZ":
|
case "ZY31":
|
case "ZY32":
|
case "DLSJ":
|
case "DMSJ":
|
case "GF701":
|
case "ZY33":
|
case "ZY2C":
|
case "GF5VIMS":
|
case "GF5AHSI":
|
case "HY-1C":
|
case "ZY02D_VNIC":
|
case "ZY02D_ASHI":
|
break;
|
case "湟水河":
|
var hshFID = localStorage.getItem("hshFID");
|
TBAX.createPmDialogDock("queryHSH", url + "html/caseWhere/queryHSH.html?hshFID=" + hshFID, 930, 450, 100, -1, -1, 400);
|
break;
|
default:
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/" + modleSigle + ".html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
}
|
}
|
else {
|
TBAX.setFullBtnVisibility("a5", "true");
|
TBAX.setFullBtnVisibility("a6", "false");
|
TBAX.closeDialog("左下");
|
TBAX.closeDialog("右中");
|
if (modleSigle != "湟水河") {
|
TBAX.closeDialog("右上");
|
} else {
|
TBAX.closeDialog("queryHSH");
|
}
|
TBAX.closeDialog("右下");
|
}
|
}
|
|
|
|
function Orangin() {
|
TBAX.setFullBtnVisibility("a5", "true");
|
TBAX.setFullBtnVisibility("a6", "false");
|
TBAX.closeDialog("右上");
|
}
|
|
|
function OranginOne() {
|
TBAX.setFullBtnVisibility("a5", "true");
|
TBAX.setFullBtnVisibility("a6", "false");
|
}
|