/**
 * 社区基本信息
 */
 var community_conf={
    title:'兴卫村社区网格化信息指挥中心',
    name:'兴卫村社区',
    sqjbxx:{
        type:"负责人信息"
    
    },
    socketId:"fdda7757-25cc-40bf-a0bb-2046ee0b2956",
    //地图轮廓
    shp:"xwsq",
    extent:{
        xmax: 118.855999  ,
        xmin: 118.825664  ,
        ymax: 32.117907  ,
        ymin: 32.097072,
        spatialReference: { "wkid": 4326 }
    },
    map:[
		//测试环境
      {name:"影像",url:"http://61.155.110.210:7008/mapurl/earth_image_geodetic/MapServer"},
      {name:"注记",url:"http://61.155.110.210:7008/mapurl/earth_image_anno_geodetic/MapServer"}
	  // 发布环境
        //  {name:"影像",url:"mapurl/earth_image_geodetic/MapServer"},
        //  {name:"注记",url:"mapurl/earth_image_anno_geodetic/MapServer"}
        //发布环境
       // {name:"影像",url:"https://geomatrix.club/tilemap/earth_image_geodetic/MapServer"},
       // {name:"注记",url:"https://geomatrix.club/tilemap/earth_image_anno_geodetic/MapServer"}
    ],
    //一键呼叫
    notification:{
        //测试 //
        // url:"ws://61.155.110.210:7023"

        //发布
        url:"wss_yjhj"

    },
    //动环
    serverparameter:{
        id:"001",
       // 测试
        //  url:"ws://61.155.110.210:7024"

        //发布
        url:"wss_dh"
    },
    //vue组件注册
    viewNameList:["hjws","jmzx","gdgl","spaq","dagl","zsysq","wyryfb","hdgl","hjbh","zaaq","aqsc","rkgl","zdry","dqfwzx","ggfw","zyzfwz","sbsx","dwzx","list","fyry","rmfx","tygl","doublezero","fivetype","flgl"],
    leftviewNameList:["list","tree","tree_dq","treezyz","tree_rmfx","tree_aby","tree_ty","tree_fl"],
}
//党小组
var party_conf = [
    {
        "marktype": "1",
        "text1": '第一党小组',
        "name": '第一党小组',
        "color": '#f2f2f2',
        "show": false,
        "layers": [],
        "children": []
    },{
        "marktype": "2",
        "text1": '第二党小组',
        "name": '第二党小组',
        "color": '#f2f2f2',
        "show": false,
        "layers": [],
        "children": []
    }, {
        "marktype": "3",
        "text1": '第三党小组',
        "name": '第三党小组',
        "color": '#f2f2f2',
        "show": false,
        "layers": [],
        "children": []
    }, {
        "marktype": "4",
        "text1": '第四党小组',
        "name": '第四党小组',
        "color": '#f2f2f2',
        "show": false,
        "layers": [],
        "children": []
    }, {
        "marktype": "5",
        "text1": '第五党小组',
        "name": '第五党小组',
        "color": '#f2f2f2',
        "show": false,
        "layers": [],
        "children": []
    }, {
        "marktype": "6",
        "text1": '第六党小组',
        "name": '第六党小组',
        "color": '#f2f2f2',
        "show": false,
        "layers": [],
        "children": []
    }, {
        "marktype": "7",
        "text1": '第七党小组',
        "name": '第七党小组',
        "color": '#f2f2f2',
        "show": false,
        "layers": [],
        "children": []
    },  {
        "marktype": "8",
        "text1": '第八党小组',
        "name": '第八党小组',
        "color": '#f2f2f2',
        "show": false,
        "layers": [],
        "children": []
    }, {
        "marktype": "9",
        "text1": '第九党小组',
        "name": '第九党小组',
        "color": '#f2f2f2',
        "show": false,
        "layers": [],
        "children": []
    }];
/*
 * 重点人员
 */
var zdry_conf = [
    {
        "marktype": "3",
        "text1": '涉毒人员',
        "name": '重点人员1',
        "color": 'turquoise',
        "show": false,
        "layers": [],
        "children": [],
        "extenddata":"sd",
        "icon":"img/icon/du.png",
    },
    {
        "marktype": "4",
        "text1": '摸排稳控',
        "name": '重点人员2',
        "color": 'teal',
        "show": false,
        "layers": [],
        "children": [],
        "extenddata":"mpwk",
        "icon":"img/icon/fang.png",
    },
    {
        "marktype": "5",
        "text1": '刑释人员',
        "name": '重点人员3',
        "color": 'cornflowerblue',
        "show": false,
        "layers": [],
        "children": [],
        "icon":"img/icon/shi.png",
    },
   
    {
        "marktype": "6",
        "text1": '优抚对象（老退伍战士）',
        "name": '优抚对象（老退伍战士）',
        "color": 'coral',
        "show": false,
        "layers": [],
        "children": [],
        "icon":"img/icon/yfdx.png",
    },
    {
        "marktype": "10",
        "text1": '退伍军人',
        "name": '退伍军人',
        "color": 'OliveDrab',
        "show": false,
        "layers": [],
        "children": [],
        "extenddata":"soldier",
        "icon":"img/icon/jr.png",
    }
];
//重点服务对象，icon代表图标，extenddata代表是否有详细信息
var zdry_conf1 = [{
        "marktype": "1",
        "text1": '病残',
        "name": '病残',
        "color": '#129c29',
        "show": false,
        "layers": [],
        "children": [],
        "icon":"img/icon/cjr.png",
        "extenddata":"cj"
    },
    {
        "marktype": "2",
        "text1": '少数民族人员',
        "name": '少数民族人员',
        "color": '#9ACD32',
        "show": false,
        "layers": [],
        "children": [],
        "icon":"img/icon/ssmz.png"
    },
    {
        "marktype": "7",
        "text1": '60岁以上独居老人',
        "name": '60岁以上独居老人',
        "color": '#778899',
        "show": false,
        "layers": [],
        "children": [],
        "icon":"img/icon/djlr.png",
        "extenddata":"60djlr"
    },
    {
        "marktype": "9",
        "text1": '80,90岁老人',
        "name": '80,90岁老人',
        "color": '#9c2c8f',
        "show": false,
        "layers": [],
        "children": [],
        "icon":"img/icon/gllr.png"
    },
    {
        "marktype": "8",
        "text1": '低保户',
        "name": '低保户',
        "color": '#ADD8E6',
        "show": false,
        "layers": [],
        "children": [],
        "icon":"img/icon/dbh.png"
    },
    {
        "marktype": "11",
        "text1": '空巢老人',
        "name": '空巢老人',
        "color": '#DAA520',
        "show": false,
        "layers": [],
        "children": [],
        "icon":"img/icon/nc.png"
    },


];
/*
 * 业务图层,event代表事件，有buidling,monitor,area,iframe,picture,rightview,
 * icon作用，在没有symbols的情况下创建默认symbol所需要的参数以及确定区域数据中需不需要点数据
 */
var serviceLayers_conf=[
    {
        "index":0,
        'text': '楼盘信息',
        'layerID': 'buildingLayer',
        "status": false,
        "http": "building",
        "event":"building",
        "icon": {"color":0.3,"img":"icon_building.png"},
    }, {
        "index":1,
        'text': '监控',
        'layerID': 'monitorLayer',
        "status": false,
        "http": "spjk",
        "icon": {"img":"monitor.png"},
        "event":"monitor",
        "symbols":{"img":{"width":15,"height":15,"url":"img/monitor.png"}}
    }, {
        "index":2,
        'text': '安保员',
        'layerID': 'gridManLayer',
        "status": false,
        "http": null,
        "icon": {"img":"person.png"},
        "event":"gridMan"
    }, {
        "index":3,
        'text': '流动人口',
        'layerID': 'ldrkLayer',
        "status": false,
        "http": "ldrk",
        "icon": {"color":0.3,"img":"icon_ldrk.png"},
        "event":"building"
    }, {
        "index":4,
        'text': '道路小区',
        'layerID': 'dlxqLayer',
        "status": false,
        "http": "area/1",
        "icon": {"color":0.3,"img":"icon_area.png"},
        "event":"area"
    }, {
        "index":5,
        'text': '河流',
        'layerID': 'hlLayer',
        "status": false,
        "http": "area/5",
        "icon": {"color":0.3,"img":"icon_river.png"},
        "event":"area"
    }, {
        "index":6,
        'text': '公共服务',
        'layerID': 'ggfwLayer',
        "status": false,
        "http": "area/2",
        "icon": {"color":0.3,"img":"icon_ggfw.png"},
        "event":"area"
    }, {
        "index":7,
        'text': '工地',
        'layerID': 'gdLayer',
        "status": false,
        "http": "area/4",
        "icon": {"color":0.5,"img":"icon_gd.png"},
        "event":"picture"
    }, {
        "index":8,
        'text': '物业公司',
        'layerID': 'wyLayer',
        "status": false,
        "http": "area/7",
        "icon": {"color":0.3,"img":"icon_wy.png"},
        "event":"rightview",
        "rightview":"wyryfb",
    }, {
        "index":9,
        'text': '志愿者',
        'layerID': 'zyzLayer',
        "status": false,
        "http": "area/8",
        "icon": {"img":"dwgl.png"},
        "event":"picture"
    }, {
        "index":10,
        'text': '重点人员',
        'layerID': 'zdryLayer',
        "status": false,
        "http": "zdry/1,2",
        "icon": {"color":0.3,"img":"icon_zdry.png"},
        "event":"building"
    }, {
        "index":11,
        'text': '党群服务',
        'layerID': 'dqfwLayer',
        "status": false,
        "http": "area/3",
        "icon": {"color":0.3,"img":"dqfwzx.png"},
        "event":"picture"
    }, {
        "index":12,
        'text': '安全生产',
        'layerID': 'aqscLayer',
        "status": false,
        "http": "area/9",
        "icon": {"color":0.3,"img":"icon_sc.png"},
        "event":"area"
    }, {
        "index":13,
        'text': '党员',
        'layerID': 'dyLayer',
        "status": false,
        "http": "party",
        "icon": {"img":"dangyuan.png"},
        "symbols":{"img":{"width":12,"height":12,"url":"img/dangyuan.png"}},
        "event":"area"
    }, {
        "index":14,
        'text': '党组长',
        'layerID': 'partygroupLayer',
        "status": false,
        "http": "party/group",
        "icon": {"img":"icon_dxz.png"},
        "symbols":{"img":{"width":22,"height":22,"url":"img/icon_dxz.png"}},
        "event":"area"
    }, {
        "index":15,
        'text': '企业楼栋',
        'layerID': 'companyLayer',
        "status": false,
        "http": "buildingcompany",
        "icon": {"color":0.3,"img":"icon_qy.png"},
        "event":"building"
    }, {
        "index":16,
        'text': '工地监控',
        'layerID': 'gdmonitorLayer',
        "status": false,
        "http": "areamonitor/4",
        "icon": {"color":0.3,"img":"monitor.png"},
        "event":"monitor",
        "symbols":{"img":{"width":15,"height":15,"url":"img/monitor.png"}}
    }, {
        "index":17,
        'text': '鹰眼',
        'layerID': 'yymonitorLayer',
        "status": false,
        "http": "areamonitor/10",
        "icon": {"color":0.3,"img":"monitor.png"},
        "event":"monitor",
        "symbols":{"img":{"width":15,"height":15,"url":"img/monitor.png"}}
    }, {
        "index":18,
        'text': '街面监控',
        'layerID': 'jmmonitorLayer',
        "status": false,
        "http": "areamonitor/11",
        "icon": {"color":0.3,"img":"monitor.png"},
        "event":"monitor",
        "symbols":{"img":{"width":15,"height":15,"url":"img/monitor.png"}}
    }, {
        "index":19,
        'text': '食品安全监控',
        'layerID': 'spaqmonitorLayer',
        "status": false,
        "http": "areamonitor/6",
        "icon": {"color":0.3,"img":"monitor.png"},
        "event":"monitor",
        "symbols":{"img":{"width":15,"height":15,"url":"img/monitor.png"}}
    }, {
        "index":20,
        'text': '食品安全',
        'layerID': 'spaqLayer',
        "status": false,
        "http": "area/6",
        "icon": {"color":0.3,"img":"icon_spaq.png"},
        "event":"area",
    }, {
        "index":21,
        'text': '治安安全',
        'layerID': 'zaaqLayer',
        "status": false,
        "http": "area/12",
        "icon": {"color":0.3,"img":"icon_zaaq.png"},
        "event":"area",
    }, {
        "index":22,
        'text': '安全生产监控',
        'layerID': 'aqscmonitorLayer',
        "status": false,
        "http": "areamonitor/9",
        "icon": {"color":0.3,"img":"monitor.png"},
        "event":"monitor",
        "symbols":{"img":{"width":15,"height":15,"url":"img/monitor.png"}}
    }, {
        "index":23,
        'text': '河流监控',
        'layerID': 'rivermonitorLayer',
        "status": false,
        "http": "areamonitor/5",
        "icon": {"color":0.3,"img":"monitor.png"},
        "event":"monitor",
        "symbols":{"img":{"width":15,"height":15,"url":"img/monitor.png"}}
    },{
        "index":24,
        'text': '上报事项',
        'layerID': 'reportMattersLayer',
        "status": false,
        "http": "https://geothinking.club/community/v2/case/query",
        "icon": {"color":0.3,"img":"type_sxgl.png"},
        "event":"rightview",
    },{
        "index":25,
        'text': '社区党委',
        'layerID': 'sqdwLayer',
        "status": false,
        "http": "areafield/13",
        "icon": {"color":1,"img":"dqfwzx.png"},
        "event":"rightview1",
        "rightview":"dwzx",
    },{
        "index":26,
        'text': '青少年',
        'layerID': 'qsnLayer',
        "status": false,
        "http": "qsn",
        "icon": {"img":"qsn.png"},
        "symbols":{"img":{"width":12,"height":12,"url":"img/qsn.png"}},
        "event":"building"
    },
    {
        "index":27,
        'text': '志愿者详情',
        'layerID':'zyzmdLayer',
        "status": false,
        "http": "zyz",
        "icon": {"img":"zyz.png"},
        "symbols":{"img":{"width":12,"height":12,"url":"img/zyz.png"}},
        "event":"zyzxq"
    }
    ,
    {
        "index":28,
        'text': '防疫人员',
        'layerID':'fyryLayer',
        "status": false,
        "http": "fyry/13,14",
        "icon": {"img":"fangyi.png"},
        "symbols":{"img":{"width":12,"height":12,"url":"img/fangyi.png"}},
        "event":"rightviewfy",
        "rightview":"fyry",
        "typeid":"13",
	"foreigntypeid":"14",
        "width":"820px",
        "height":"800px"    
    }
    ,
    {
        "index":29,
        'text': '流动留守儿童',
        'layerID':'ldlschildrentLayer',
        "status": false,
        "http": "ldls",
        "icon": {"img":"ldlschildren.png"},
        "symbols":{"img":{"width":16,"height":16,"url":"img/ldlschildren.png"}},
        "event":"building"
    }
    ,
    {
        "index":30,
        'text': '人民防线',
        'layerID':'rmfxLayer',
        "status": false,
        "http": "rmfx",
        "icon": {"img":"rmfx.png"},
        "symbols":{"img":{"width":16,"height":16,"url":"img/rmfx.png"}},
        "event":"building"
    },
    {
        "index":31,
        'text': '防线网格员',
        'layerID': 'rmfxgridLayer',
        "status": false,
        "http": "fmfxgrid",
        "icon": {"color":1,"img":"rmfx.png"},
        "event":"gridevent"
    },
    {
        "index":32,
        'text': '团委',
        'layerID': 'twLayer',
        "status": false,
        "http": "fmfxgrid",
        "icon": {"color":1,"img":"icon/th.png"},
        "event":"twgridevent",
    },
    {

        "index":33,
        'text': '巾帼风采',
        'layerID': 'jgfcayer',
        "status": false,
        "http": "jgfc",
        "icon": {"img":"icon/fl.png"},
        "symbols":{"img":{"width":16,"height":16,"url":"img/icon/fl.png"}},
        "event":"building",

    },
    {
        "index":34,
        'text': '巾帼风采网格',
        'layerID': 'jgfcgridLayer',
        "status": false,
        "http": "fmfxgrid",
        "icon": {"color":1,"img":"icon/fl.png"},
        "event":"rightview1",
    },
   ];

/*
 * 模块配置，
 * show：面板是否选中，
 * layers:该面板所控制的图层，通过show控制显示隐藏，
 * text：面板值，
 * children子面板，
 * index数据源于serviceLayers的序号
 * leftview左侧面板,view为vue组件名称,空字符串表示左侧不显示,index为传入的数据索引号数组。
 * rightView右侧面板模板
 * iframe表示可能的其他操作。tab_page打开面板;layui_open则是layui弹出框形式.data是open地址或者弹出框对象
 */
var modules_conf = [{
    "show": false,
    "text": '市容环境',
    "layers": [],
    "children": [
        {
            "show": false,
            "text": '环境卫生',
            "layers": ["dlxqLayer"],
            "children":[],
            "leftView":{"view": "list","index":[4]},
            "rightView":"hjws"
        },
        {
            "show": false,
            "text": '街面秩序',
            "layers": ["companyLayer","jmmonitorLayer"],
            "leftView":{"view": "list","index":[15]},
            "children":[],
            "rightView":"jmzx"
        },
        {
            "show": false,
            "text": '工地管理',
            "layers": ["gdLayer","gdmonitorLayer"],
            "children":[],
            "leftView":{"view": "list","index":[7]},
            "rightView":"gdgl"
        },
        {
            "show": false,
            "text": '河道管理',
            "layers": ["hlLayer","rivermonitorLayer"],
            "children":[],
            "leftView":{"view": "list","index":[5]},
            "rightView":"hdgl"
        },
        {
            "show": false,
            "text": '环境保护',
            "layers": ["yymonitorLayer"],
            "leftView":{"view": ""},
            "children":[],
            "rightView":"hjbh"
        },
        {
            "show": false,
            "text": '上报事项',
            "layers": ["reportMattersLayer"],
            "leftView":{"view": "list","index":[24]},
            "children":[],
            "rightView":"sbsx"
        },
        {
            "show": false,
            "text": '防疫人员',
            "layers": ["fyryLayer"],
            "leftView":{"view": "list","index":[28]},
            "children":[]
        }
    ],
}, {
    "show": false,
    "text": '安全环境',
    "layers": [],
    "children": [{
            "text": '治安安全',
            "show": false,
            "layers": ['monitorLayer','gridManLayer',"zaaqLayer"],
            "leftView":{"view": ""},
            "children": [],
            "rightView":"zaaq"
        }, {
            "text": '安全生产',
            "show": false,
            "layers": ["aqscLayer","aqscmonitorLayer"],
            "children": [],
            "leftView":{"view": "list","index":[12]},
            "rightView":"aqsc"
        }, {
            "text": '食品安全',
            "show": false,
            "layers": ["spaqLayer","spaqmonitorLayer"],
            "children": [],
            "leftView":{"view": ""},
            "rightView":"spaq"
        }
    ],
}, {
    "show": false,
    "text": '稳定环境',
    "layers": [],
    "children": [
        {
            "show": false,
            "text": '人口管理',
            "layers": ["buildingLayer"],
            "leftView":{"view": "list","index":[0]},
            "children":[],
            "rightView":"rkgl",
            "width":"400px",
            "height":"750px"
        },{
            "show": false,
            "text": '重点人员',
            "layers": ["zdryLayer","qsnLayer","ldlschildrentLayer"],
            "children":[],
            // "leftView":{"mark": "tree",data:zdry_conf.concat(zdry_conf1),"index":10,"position":{"start":0,"end":8}},
            "leftView":{"view": "tree","index":[10]},
            "rightView":"zdry"
        },{
            "show": false,
            "text": '人民防线',
            "layers": ["rmfxLayer","rmfxgridLayer"],
            "children":[],
            // "leftView":{"mark": "tree",data:zdry_conf.concat(zdry_conf1),"index":10,"position":{"start":0,"end":8}},
            "leftView":{"view": "tree_rmfx","index":[30,31]}
        }
        ,{
            "show": false,
            "text": '巾帼风采',
            "layers": ["jgfcayer","jgfcgridLayer"],
            "children":[],
            "leftView":{"view": "tree_fl","index":[33,34]},
            "rightView":"flgl",
        },

        // ,{
        //     "show": false,
        //     "text": '安保员',
        //     "layers": ["gridManLayer"],
        //     "children":[],
        //     // "leftView":{"mark": "tree",data:zdry_conf.concat(zdry_conf1),"index":10,"position":{"start":0,"end":8}},
        //     "leftView":{"view": "tree_aby","index":[2]}
        // }
    ],
},{
    "show": false,
    "text": '便民服务',
    "layers": [],
    "children": [{
        "text": '党群服务中心',
        "show": false,
        "layers": ["dqfwLayer","dyLayer","partygroupLayer","sqdwLayer"],
        "leftView":{"view": "tree_dq","index":[11,13,14,25]},
        "children":[],
        "rightView":"dqfwzx",
        "width":"400px",
        "height":"750px"
    },
    {
        "text": '联青服务站',
        "show": false,
        "layers": ["ldlschildrentLayer","twLayer"],
        "leftView":{"view": "tree_ty","index":[29,32]},
        "children":[],
        "rightView":"tygl",
        "width":"400px",
        "height":"750px"

    },   {
        "text": '公共服务',
        "show": false,
        "layers": ["ggfwLayer"],
        "children":[],
        "leftView":{"view": "list","index":[6]},
        "rightView":"ggfw"
    },{
        "text": '物业服务',
        "show": false,
        "layers": ["wyLayer"],
        "children":[],
        "leftView":{"view": "list","index":[8]},
        "rightView":""
    },{
        "text": '志愿者服务站',
        "show": false,
        "layers": ["zyzLayer","zyzmdLayer"],
        "children":[],
        "leftView":{"view": "treezyz","index":[9,27]},
        "rightView":"zyzfwz"
    },{
        "text": '档案管理',
        "show": false,
        "layers": [],
        "leftView":{"view": "",},
        "children":[],
        "rightView":"dagl",
        "iframe":{"type":"tab_page","data":"./archivemanager/login"}
    },{
        "text": '掌上云社区',
        "show": false,
        "layers": [],
        "children":[],
        "leftView":{"view": ""},
        "rightView":"zsysq"
    }]
}];


module.exports={
    community_conf:community_conf,
    treelist_conf:zdry_conf.concat(zdry_conf1).concat(party_conf),
    zdry_conf:zdry_conf.concat(zdry_conf1),
    modules_conf:modules_conf,
    serviceLayers_conf:serviceLayers_conf
}
