allocation.py 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. #普通用户默认基本配置
  2. ordinary = [{
  3. "id": 1,
  4. "title": "首页",
  5. "icon": "",
  6. "url": "map",
  7. "children": []
  8. },
  9. {
  10. "id": 3,
  11. "title": "信息发布",
  12. "icon": "",
  13. "url": "",
  14. "children": [{
  15. "id": 3.1,
  16. "title": "新闻资讯",
  17. "url": "news_pub",
  18. },
  19. {
  20. "id": 3.2,
  21. "title": "视频资讯",
  22. "url": "video_pub",
  23. },
  24. {
  25. "id": 3.2,
  26. "title": "产品展厅",
  27. "url": "equip_pub",
  28. },
  29. {
  30. "id": 3.3,
  31. "title": "四季采摘",
  32. "url": "garden_pub",
  33. },
  34. {
  35. "id": 3.4,
  36. "title": "民宿导览",
  37. "url": "dorm_pub",
  38. },
  39. {
  40. "id": 3.5,
  41. "title": "旅游景点",
  42. "url": "sightsee_pub",
  43. },
  44. ]
  45. },
  46. {
  47. "id": 4,
  48. "title": "我的发布",
  49. "icon": "",
  50. "url": "my_pub",
  51. "children": []
  52. },
  53. {
  54. "id": 8,
  55. "title": "开心农场",
  56. "icon": "",
  57. "url": "",
  58. "children": [{
  59. "id": 8.1,
  60. "title": "我的农场",
  61. "url": "person_farm_edit",
  62. },
  63. {
  64. "id": 8.2,
  65. "title": "农场管理",
  66. "url": "garden_manage_view",
  67. },
  68. {
  69. "id": 8.4,
  70. "title": "库存管理",
  71. "url": "repertory_view",
  72. },
  73. {
  74. "id": 8.5,
  75. "title": "种植管理",
  76. "url": "cropcount",
  77. },
  78. {
  79. "id": 8.6,
  80. "title": "入库管理",
  81. "url": "pick",
  82. },
  83. {
  84. "id": 8.7,
  85. "title": "销售管理",
  86. "url": "sell_view",
  87. }
  88. ]
  89. },
  90. {
  91. "id": 9,
  92. "title": "数据中心",
  93. "icon": "",
  94. "url": "",
  95. "children": [{
  96. "id": 9.1,
  97. "title": "产业数据",
  98. "url": "industrydata",
  99. },
  100. {
  101. "id": 9.2,
  102. "title": "类型分析",
  103. "url": "type",
  104. },
  105. {
  106. "id": 9.3,
  107. "title": "对比分析",
  108. "url": "contrast",
  109. },
  110. ]
  111. },
  112. {
  113. "id": 13,
  114. "title": "系统设置",
  115. "icon": "",
  116. "url": "",
  117. "children": [{
  118. "id": 13.2,
  119. "title": "地图设置",
  120. "url": "setMap",
  121. }, ]
  122. },
  123. {
  124. "id": 14,
  125. "title": "专家诊断",
  126. "icon": "",
  127. "url": "",
  128. "children": [{
  129. "id": 14.1,
  130. "title": "在线专家",
  131. "url": "expert",
  132. "disabled": "true",
  133. }, ]
  134. },
  135. ]
  136. #管理员权限
  137. administrators = [
  138. {
  139. "id": 1,
  140. "title": "首页",
  141. "icon": "",
  142. "url": "map",
  143. "children": []
  144. },
  145. {
  146. "id": 2,
  147. "title": "设备分配",
  148. "icon": "",
  149. "url": "equipallot",
  150. "disabled": "true",
  151. "children": []
  152. },
  153. {
  154. "id": 3,
  155. "title": "信息发布",
  156. "icon": "",
  157. "url": "",
  158. "children": [
  159. {
  160. "id": 3.1,
  161. "title": "新闻资讯",
  162. "url": "news_pub",
  163. },
  164. {
  165. "id": 3.2,
  166. "title": "视频资讯",
  167. "url": "video_pub",
  168. },
  169. {
  170. "id": 3.2,
  171. "title": "产品展厅",
  172. "url": "equip_pub",
  173. },
  174. {
  175. "id": 3.3,
  176. "title": "四季采摘",
  177. "url": "garden_pub",
  178. },
  179. {
  180. "id": 3.4,
  181. "title": "民宿导览",
  182. "url": "dorm_pub",
  183. },
  184. {
  185. "id": 3.5,
  186. "title": "旅游景点",
  187. "url": "sightsee_pub",
  188. },
  189. ]
  190. },
  191. {
  192. "id": 4,
  193. "title": "我的发布",
  194. "icon": "",
  195. "url": "my_pub",
  196. "children": []
  197. },
  198. {
  199. "id": 5,
  200. "title": "视频监控",
  201. "icon": "",
  202. "url": "jkview",
  203. "children": []
  204. },
  205. {
  206. "id": 6,
  207. "title": "传感及控制",
  208. "icon": "",
  209. "url": "",
  210. "children": [
  211. {
  212. "id": 6.1,
  213. "title": "控制模块",
  214. "url": "qxzcontrol",
  215. },
  216. {
  217. "id": 6.2,
  218. "title": "趋势分析",
  219. "url": "qxzchart",
  220. },
  221. {
  222. "id": 6.3,
  223. "title": "数据统计",
  224. "url": "qxz_status",
  225. }
  226. ]
  227. },
  228. {
  229. "id": 7,
  230. "title": "预警中心",
  231. "icon": "",
  232. "url": "",
  233. "children": [
  234. {
  235. "id": 7.1,
  236. "title": "阈值设置",
  237. "url": "qxz_warning_view",
  238. },
  239. {
  240. "id": 7.2,
  241. "title": "生产方式设置",
  242. "url": "productionset",
  243. },
  244. {
  245. "id": 7.3,
  246. "title": "预警记录",
  247. "url": "qxz_warning_list",
  248. },
  249. ]
  250. },
  251. {
  252. "id": 8,
  253. "title": "开心农场",
  254. "icon": "",
  255. "url": "",
  256. "children": [
  257. {
  258. "id": 8.1,
  259. "title": "我的农场",
  260. "url": "person_farm_edit",
  261. },
  262. {
  263. "id": 8.2,
  264. "title": "农场管理",
  265. "url": "garden_manage_view",
  266. },
  267. {
  268. "id": 8.4,
  269. "title": "库存管理",
  270. "url": "repertory_view",
  271. },
  272. {
  273. "id": 8.5,
  274. "title": "种植管理",
  275. "url": "cropcount",
  276. },
  277. {
  278. "id": 8.6,
  279. "title": "入库管理",
  280. "url": "pick",
  281. },
  282. {
  283. "id": 8.7,
  284. "title": "销售管理",
  285. "url": "sell_view",
  286. }
  287. ]
  288. },
  289. {
  290. "id": 9,
  291. "title": "数据中心",
  292. "icon": "",
  293. "url": "",
  294. "children": [
  295. {
  296. "id": 9.1,
  297. "title": "产业数据",
  298. "url": "industrydata",
  299. },
  300. {
  301. "id": 9.2,
  302. "title": "类型分析",
  303. "url": "type",
  304. },
  305. {
  306. "id": 9.3,
  307. "title": "对比分析",
  308. "url": "contrast",
  309. },
  310. ]
  311. },
  312. {
  313. "id": 10,
  314. "title": "通知公告",
  315. "icon": "",
  316. "url": "",
  317. "disabled": "true",
  318. "children": [
  319. {
  320. "id": 10.1,
  321. "title": "发布公告",
  322. "url": "policy_pub",
  323. "disabled": "true",
  324. },
  325. {
  326. "id": 10.2,
  327. "title": "查看公告",
  328. "url": "policy_list_view",
  329. "disabled": "true",
  330. },
  331. ]
  332. },
  333. {
  334. "id": 11,
  335. "title": "信息审核",
  336. "icon": "",
  337. "url": "",
  338. "disabled": "true",
  339. "children": [
  340. {
  341. "id": 11.1,
  342. "title": "新闻资讯",
  343. "url": "news_check",
  344. "disabled": "true",
  345. },
  346. {
  347. "id": 11.2,
  348. "title": "视频资讯",
  349. "url": "video_check",
  350. "disabled": "true",
  351. },
  352. {
  353. "id": 11.3,
  354. "title": "产品展厅",
  355. "url": "equip_check",
  356. "disabled": "true",
  357. },
  358. {
  359. "id": 11.4,
  360. "title": "四季采摘",
  361. "url": "garden_check",
  362. "disabled": "true",
  363. },
  364. {
  365. "id": 11.5,
  366. "title": "民宿导览",
  367. "url": "dorm_check",
  368. "disabled": "true",
  369. },
  370. {
  371. "id": 11.6,
  372. "title": "旅游景点",
  373. "url": "sightsee_check",
  374. "disabled": "true",
  375. },
  376. {
  377. "id": 11.7,
  378. "title": "个人农场",
  379. "url": "farm_check",
  380. "disabled": "true",
  381. },
  382. ]
  383. },
  384. {
  385. "id": 12,
  386. "title": "权限",
  387. "icon": "",
  388. "url": "limit_view",
  389. "disabled": "true",
  390. "children": []
  391. },
  392. {
  393. "id": 13,
  394. "title": "系统设置",
  395. "icon": "",
  396. "url": "",
  397. "disabled": "true",
  398. "children": [
  399. {
  400. "id": 13.1,
  401. "title": "用户管理",
  402. "url": "person_view",
  403. "disabled": "true",
  404. },
  405. {
  406. "id": 13.2,
  407. "title": "地图设置",
  408. "url": "setMap",
  409. "disabled": "true",
  410. },
  411. {
  412. "id": 13.3,
  413. "title": "合作伙伴",
  414. "url": "add_relation",
  415. "disabled": "true",
  416. }
  417. ]
  418. },
  419. {
  420. "id": 14,
  421. "title": "专家诊断",
  422. "icon": "",
  423. "url": "",
  424. "disabled": "true",
  425. "children": [
  426. {
  427. "id": 14.1,
  428. "title": "在线专家",
  429. "url": "expert",
  430. "disabled": "true",
  431. },
  432. ]
  433. },
  434. ]