First, the navigation and rights management
var Menus = { balance1: { Role: ' overview1 ' , title: ' asset information. 1 ' SUBS: [{ Role: ' overview2 ' , title: ' asset information 2 ' , State: ' balanceInfo ' , // 000 icon: make_menus_bg_position ( . 1 , . 5 ), SUBS: [{ Role: ' overview2 ' , title: ' asset information 3', state: 'balanceInfo',//000 url: '/balanceInfo', templateUrl: 'module/balance/' + base_dir + '/balanceInfo.html', controller: 'balanceInfoCtrl' }] }] }, balance2: { role: 'overview1', title: '资产信息1' subs: [{ role: 'overview2 ' , title: ' asset information 2 ' , State: ' balanceInfo ' , // 000 icon: make_menus_bg_position ( . 1 , . 5 ), SUBS: [{ Role: ' overview3 ' , title: ' asset information. 3 ' , State: ' balanceInfo ' , // 000 url: ' / balanceInfo ' , templateUrl: 'module/balance/' + base_dir + '/balanceInfo.html', controller: 'balanceInfoCtrl' }, { role: 'overview4', title: '资产信息4', state: 'balanceInfo1',//111 url: '/balanceInfo1', templateUrl: 'module/balance/' + base_dir + '/balanceInfo1.html', Controller: ' balanceInfoCtrl1 ' }] }, { Role: ' overview5 ' , title: ' asset information. 5 ' , State: ' balanceInfo2 ' , // 222 icon: make_menus_bg_position ( . 1 , . 5 ), SUBS: [{ Role: ' overview6 ' , title: ' asset information 6 ' , State: ' balanceInfo2 ' ,//222 url: '/balanceInfo2', templateUrl: 'module/balance/' + base_dir + '/balanceInfo2.html', controller: 'balanceInfoCtrl2' }, { role: 'overview7', title: '资产信息7', state: 'balanceInfo3',//333 url: '/balanceInfo3', templateUrl:'module/balance/' + base_dir + '/balanceInfo3.html', controller: 'balanceInfoCtrl3' }] }] } };
Second, the administrative
var allDatas = { " Beijing " : { " City area " : { " Tongzhou District " : { " in the warehouse Street office " : { " Riverside neighborhood communities " : " 110112001029 " , " Canal Bay neighborhood communities " : " 110 112 001 030 " }, " Kuo towns " : { " rear element of village " : " 110112106260 ", " The former village of yuan" : " 110112106261 " } }, " Changping District " : { " Huo Ying Street office " : { " Blue Sky Park neighborhood communities " : " 110 114 010 003 " , } } } } }; var totalDatas = [ { name: " Select province " , Sub: [ { name: " select City " , Sub: [{name: "Select County" }] } ] }, { Name: " Guangdong " , : [Sub { name: " Select City " , Sub: [{name: " Select County " }] }, { name: " Guangzhou " , Sub: [{ name: " select County " }, {name: " Yuexiu " }, {name: " Liwan " }, {name: " Haizhu " }, { name: " Tianhe " }, {name: " Baiyun " }, {name: " Huangpu " }, {name: " Panyu " }, {name: " Flora region " }, {name: " Nansha " }, {name: " Luogang area " }, {name: " Zengcheng " }, {name: " Conghua city " }, {name: " other " }] }, { name: " Shenzhen " , sub: [{ name: "Select County " }, {name: " Fukuda area " }, {name: " Lo region " }, {name: " Nanshan District " }, {name: " Bao area " }, {name: " Longgang District " }, name {: " Yantian " }, name {: " other " }] }] } ]