123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 |
- /**
- * 作者:王成
- * 创建日期: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',
- }
- });
- }
|