/** * 作者:王成 * 创建日期:2021年11月22日 * 操作系统:MAC * 描述:应用中心打开各项应用的方法集合 */ var yyzxUser = undefined; /* 初始化 */ mui.plusReady(function() { /* 获取存储的本地账户*/ getSaveUserInfo({ success: function(saveUser) { yyzxUser = saveUser; }, error: function(err) { muiAlertError(err); } }) }); /** * 打开待处理案件页面 */ function openWaitCheckCasePage() { createAndOpenPage({ htmlPath: 'zhzf-case-list.html', autoback: true, extras: { queryType: "Pending", pageFlag: casePageFlag.WaitCheck, title: '处理中案件', } }); } /** * 打开待复飞案件页面 */ function openWaitRepeatCasePage() { createAndOpenPage({ htmlPath: 'zhzf-case-list.html', autoback: true, extras: { queryType: "WaitRepeat", pageFlag: casePageFlag.WaitRepeat, title: '复飞中案件', } }); } /** * 打开待审核案件页面 */ function openWaitVerifyCasePage() { createAndOpenPage({ htmlPath: 'zhzf-case-list.html', autoback: true, extras: { queryType: "HandledYes", pageFlag: casePageFlag.WaitVerify, title: '审核中案件', } }); } /** * 打开已结案案件页面 */ function openCaseClosePage() { createAndOpenPage({ htmlPath: 'zhzf-case-list.html', autoback: true, extras: { queryType: "Audited", pageFlag: casePageFlag.CaseClose, title: '已结案案件', } }); } /** * 打开案件派发页面 */ function openWaitAssignCasePage() { createAndOpenPage({ htmlPath: 'zhzf-case-list.html', autoback: true, extras: { queryType: "AssignNo", pageFlag: casePageFlag.WaitAssign, title: '派发中案件', } }); } /** * 打开案件撤派页面 */ function openUndoAssignCasePage() { createAndOpenPage({ htmlPath: 'zhzf-case-list.html', autoback: true, extras: { queryType: "AssignYes", pageFlag: casePageFlag.UndoAssign, title: '撤派中案件', } }); } /** * 打开案件待督办案件页面 */ function openWaitSuperviseCasePage() { createAndOpenPage({ htmlPath: 'zhzf-case-list.html', autoback: true, extras: { queryType: "WaitSupervise", pageFlag: casePageFlag.WaitSupervise, title: '可督办案件', } }); } /** * 打开已督办案件页面 */ function openYesSuperviseCasePage() { createAndOpenPage({ htmlPath: 'zhzf-case-list.html', autoback: true, extras: { queryType: "YesSupervise", pageFlag: casePageFlag.YesSupervise, title: '被督办案件', } }); } /** * 打开统计排名页面 */ function openCountAndRankingPage() { createAndOpenPage({ htmlPath: 'page-khpm.html', title: '考核排名', autoback: true, }); } /** * 打开统计页面 */ function openCountPage() { showCountPage(); } /** * 各业务板块主页 * @param {String} flag 标识 */ function EventClickSubject(flag) { if (yyzxUser == undefined) { showNotPermission(); return; } if (yyzxUser.userType == userType.memberSH || yyzxUser.userType == userType.memberLD) { if (flag == 'zf') { createAndOpenPage({ htmlPath: 'sys-home-zhzf.html', title: '执法专题', autoback: true, }); } else if (flag == 'zd') { createAndOpenPage({ htmlPath: 'LandExpropriate-home.html', title: '征地专题', autoback: true, }); } else if (flag == 'gh') { createAndOpenPage({ htmlPath: 'sys-home-plan.html', title: '规划专题', autoback: true, }); } else if (flag == 'ld') { createAndOpenPage({ htmlPath: 'sys-home-forest.html', title: '林地专题', autoback: true, }); } else if (flag == 'gd') { createAndOpenPage({ htmlPath: 'sys-home-land-supply.html', title: '供地专题', autoback: true, }); } else if (flag == 'yj') { createAndOpenPage({ htmlPath: 'sys-home-contingency.html', title: '应急专题', autoback: true, }); } else if (flag === 'bdc') { createAndOpenPage({ htmlPath: 'sys-home-real-estate.html', title: '不动产专题', autoback: true, }); } else if (flag === 'rx') { createAndOpenPage({ htmlPath: 'sys-home-hotline.html', title: '热线专题', autoback: true, }); } else { muiAlert('建设中', '提示'); } } else if (yyzxUser.permissions !== undefined) { if (flag == 'zf') { createAndOpenPage({ htmlPath: 'sys-home-zhzf.html', title: '执法专题', autoback: true, }); } else { showNotPermission(); } } else { showNotPermission(); } } /* ++++++++++++++以下是征地相关事件+++++++++++++++++= */ /* 征收补偿安置项目查询 */ function zd_open_queryPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'LandExpropriate-query.html', autoback: true, title: '征收补偿安置项目查询' }); } /* 征收补偿安置项目面积分析 */ function zd_open_analysisPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'LandExpropriate-count-area.html', autoback: true, title: '征收补偿安置项目面积分析' }); } /* 征收补偿安置项目补偿金额分析 */ function zd_open_moneyAnalysisPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'LandExpropriate-count-money.html', autoback: true, title: '征收补偿安置项目补偿金额分析' }); } /* 征收补偿安置项目趋势分析 */ function zd_open_trendAnalysisPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'LandExpropriate-count-trend.html', autoback: true, title: '征收补偿安置项目趋势分析' }); } /* 林地查询 */ function ld_open_queryPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'Forest-query.html', autoback: true, title: '林地图斑查询' }); } /* 林地占比分析 */ function ld_open_analysisPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'Forest-count.html', autoback: true, title: '林地地类占比分析' }); } /* 森林防火摄像头 */ function ld_open_monitorPage() { /* 关闭侧滑菜单 */ closeMainMenu(); beginApp('com.videogo', '萤石云视频'); } /* 打开规划地类查询页面 */ function gh_open_landQueryPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'plan-land-query.html', autoback: true, title: '规划地类查询' }); } /* 打开规划管制区查询页面 */ function gh_open_regulateAreaQueryPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'plan-regulate-query.html', autoback: true, title: '规划管制区查询' }); } /* 打开规划统计分析页面 */ function gh_open_countPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'plan-count.html', autoback: true, title: '规划汇总统计分析' }); } /* 历年供地出让合同查询 */ function gd_open_queryPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'LandSupply-cr-query.html', autoback: true, title: '历年供地出让合同查询' }); } /* 打开历年供地出让宗地占比分析页面 */ function gd_open_analysisPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'LandSupply-count-area.html', autoback: true, title: '历年供地出让宗地占比分析' }); } /* 历年划拨供地查询 */ function gd_open_hb_queryPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'LandSupply-hb-query.html', autoback: true, title: '历年划拨供地查询' }); } /* 打开热线数据查询页面 */ function rx_open_queryPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'hotline-query.html', autoback: true, title: '热线数据查询' }); } /* 打开镇街资源统计页面 */ function cn_open_townResourceCountPage() { /* 关闭侧滑菜单 */ closeMainMenu(); createAndOpenPage({ htmlPath: 'page-town-resource-count.html', autoback: true, title: '镇街资源统计' }); } /** * 弹出正在建设的提示信息 */ function showBuildTips() { muiAlert('建设中...', '提示'); } /** * */ function showNotPermission() { muiAlert('您无权使用该功能!', '敬告'); } /** * 显示统计页 */ function showCountPage() { mui.openWindow({ url: 'page-case-count.html', id: 'page-case-count', styles: { top: '0px', bottom: '0px', left: '0px', right: '0px', background: 'transparent', }, show: { aniShow: 'slide-in-bottom', duration: '300', } }); }