yyzx.open.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. /**
  2. * 作者:王成
  3. * 创建日期:2021年11月22日
  4. * 操作系统:MAC
  5. * 描述:应用中心打开各项应用的方法集合
  6. */
  7. var yyzxUser = undefined;
  8. /* 初始化 */
  9. mui.plusReady(function() {
  10. /* 获取存储的本地账户*/
  11. getSaveUserInfo({
  12. success: function(saveUser) {
  13. yyzxUser = saveUser;
  14. },
  15. error: function(err) {
  16. muiAlertError(err);
  17. }
  18. })
  19. });
  20. /**
  21. * 打开待处理案件页面
  22. */
  23. function openWaitCheckCasePage() {
  24. createAndOpenPage({
  25. htmlPath: 'zhzf-case-list.html',
  26. autoback: true,
  27. extras: {
  28. queryType: "Pending",
  29. pageFlag: casePageFlag.WaitCheck,
  30. title: '处理中案件',
  31. }
  32. });
  33. }
  34. /**
  35. * 打开待复飞案件页面
  36. */
  37. function openWaitRepeatCasePage() {
  38. createAndOpenPage({
  39. htmlPath: 'zhzf-case-list.html',
  40. autoback: true,
  41. extras: {
  42. queryType: "WaitRepeat",
  43. pageFlag: casePageFlag.WaitRepeat,
  44. title: '复飞中案件',
  45. }
  46. });
  47. }
  48. /**
  49. * 打开待审核案件页面
  50. */
  51. function openWaitVerifyCasePage() {
  52. createAndOpenPage({
  53. htmlPath: 'zhzf-case-list.html',
  54. autoback: true,
  55. extras: {
  56. queryType: "HandledYes",
  57. pageFlag: casePageFlag.WaitVerify,
  58. title: '审核中案件',
  59. }
  60. });
  61. }
  62. /**
  63. * 打开已结案案件页面
  64. */
  65. function openCaseClosePage() {
  66. createAndOpenPage({
  67. htmlPath: 'zhzf-case-list.html',
  68. autoback: true,
  69. extras: {
  70. queryType: "Audited",
  71. pageFlag: casePageFlag.CaseClose,
  72. title: '已结案案件',
  73. }
  74. });
  75. }
  76. /**
  77. * 打开案件派发页面
  78. */
  79. function openWaitAssignCasePage() {
  80. createAndOpenPage({
  81. htmlPath: 'zhzf-case-list.html',
  82. autoback: true,
  83. extras: {
  84. queryType: "AssignNo",
  85. pageFlag: casePageFlag.WaitAssign,
  86. title: '派发中案件',
  87. }
  88. });
  89. }
  90. /**
  91. * 打开案件撤派页面
  92. */
  93. function openUndoAssignCasePage() {
  94. createAndOpenPage({
  95. htmlPath: 'zhzf-case-list.html',
  96. autoback: true,
  97. extras: {
  98. queryType: "AssignYes",
  99. pageFlag: casePageFlag.UndoAssign,
  100. title: '撤派中案件',
  101. }
  102. });
  103. }
  104. /**
  105. * 打开案件待督办案件页面
  106. */
  107. function openWaitSuperviseCasePage() {
  108. createAndOpenPage({
  109. htmlPath: 'zhzf-case-list.html',
  110. autoback: true,
  111. extras: {
  112. queryType: "WaitSupervise",
  113. pageFlag: casePageFlag.WaitSupervise,
  114. title: '可督办案件',
  115. }
  116. });
  117. }
  118. /**
  119. * 打开已督办案件页面
  120. */
  121. function openYesSuperviseCasePage() {
  122. createAndOpenPage({
  123. htmlPath: 'zhzf-case-list.html',
  124. autoback: true,
  125. extras: {
  126. queryType: "YesSupervise",
  127. pageFlag: casePageFlag.YesSupervise,
  128. title: '被督办案件',
  129. }
  130. });
  131. }
  132. /**
  133. * 打开统计排名页面
  134. */
  135. function openCountAndRankingPage() {
  136. createAndOpenPage({
  137. htmlPath: 'page-khpm.html',
  138. title: '考核排名',
  139. autoback: true,
  140. });
  141. }
  142. /**
  143. * 打开统计页面
  144. */
  145. function openCountPage() {
  146. showCountPage();
  147. }
  148. /**
  149. * 各业务板块主页
  150. * @param {String} flag 标识
  151. */
  152. function EventClickSubject(flag) {
  153. if (yyzxUser == undefined) {
  154. showNotPermission();
  155. return;
  156. }
  157. if (yyzxUser.userType == userType.memberSH || yyzxUser.userType == userType.memberLD) {
  158. if (flag == 'zf') {
  159. createAndOpenPage({
  160. htmlPath: 'sys-home-zhzf.html',
  161. title: '执法专题',
  162. autoback: true,
  163. });
  164. } else if (flag == 'zd') {
  165. createAndOpenPage({
  166. htmlPath: 'LandExpropriate-home.html',
  167. title: '征地专题',
  168. autoback: true,
  169. });
  170. } else if (flag == 'gh') {
  171. createAndOpenPage({
  172. htmlPath: 'sys-home-plan.html',
  173. title: '规划专题',
  174. autoback: true,
  175. });
  176. } else if (flag == 'ld') {
  177. createAndOpenPage({
  178. htmlPath: 'sys-home-forest.html',
  179. title: '林地专题',
  180. autoback: true,
  181. });
  182. } else if (flag == 'gd') {
  183. createAndOpenPage({
  184. htmlPath: 'sys-home-land-supply.html',
  185. title: '供地专题',
  186. autoback: true,
  187. });
  188. } else if (flag == 'yj') {
  189. createAndOpenPage({
  190. htmlPath: 'sys-home-contingency.html',
  191. title: '应急专题',
  192. autoback: true,
  193. });
  194. } else if (flag === 'bdc') {
  195. createAndOpenPage({
  196. htmlPath: 'sys-home-real-estate.html',
  197. title: '不动产专题',
  198. autoback: true,
  199. });
  200. } else if (flag === 'rx') {
  201. createAndOpenPage({
  202. htmlPath: 'sys-home-hotline.html',
  203. title: '热线专题',
  204. autoback: true,
  205. });
  206. } else {
  207. muiAlert('建设中', '提示');
  208. }
  209. } else if (yyzxUser.permissions !== undefined) {
  210. if (flag == 'zf') {
  211. createAndOpenPage({
  212. htmlPath: 'sys-home-zhzf.html',
  213. title: '执法专题',
  214. autoback: true,
  215. });
  216. } else {
  217. showNotPermission();
  218. }
  219. } else {
  220. showNotPermission();
  221. }
  222. }
  223. /* ++++++++++++++以下是征地相关事件+++++++++++++++++= */
  224. /* 征收补偿安置项目查询 */
  225. function zd_open_queryPage() {
  226. /* 关闭侧滑菜单 */
  227. closeMainMenu();
  228. createAndOpenPage({
  229. htmlPath: 'LandExpropriate-query.html',
  230. autoback: true,
  231. title: '征收补偿安置项目查询'
  232. });
  233. }
  234. /* 征收补偿安置项目面积分析 */
  235. function zd_open_analysisPage() {
  236. /* 关闭侧滑菜单 */
  237. closeMainMenu();
  238. createAndOpenPage({
  239. htmlPath: 'LandExpropriate-count-area.html',
  240. autoback: true,
  241. title: '征收补偿安置项目面积分析'
  242. });
  243. }
  244. /* 征收补偿安置项目补偿金额分析 */
  245. function zd_open_moneyAnalysisPage() {
  246. /* 关闭侧滑菜单 */
  247. closeMainMenu();
  248. createAndOpenPage({
  249. htmlPath: 'LandExpropriate-count-money.html',
  250. autoback: true,
  251. title: '征收补偿安置项目补偿金额分析'
  252. });
  253. }
  254. /* 征收补偿安置项目趋势分析 */
  255. function zd_open_trendAnalysisPage() {
  256. /* 关闭侧滑菜单 */
  257. closeMainMenu();
  258. createAndOpenPage({
  259. htmlPath: 'LandExpropriate-count-trend.html',
  260. autoback: true,
  261. title: '征收补偿安置项目趋势分析'
  262. });
  263. }
  264. /* 林地查询 */
  265. function ld_open_queryPage() {
  266. /* 关闭侧滑菜单 */
  267. closeMainMenu();
  268. createAndOpenPage({
  269. htmlPath: 'Forest-query.html',
  270. autoback: true,
  271. title: '林地图斑查询'
  272. });
  273. }
  274. /* 林地占比分析 */
  275. function ld_open_analysisPage() {
  276. /* 关闭侧滑菜单 */
  277. closeMainMenu();
  278. createAndOpenPage({
  279. htmlPath: 'Forest-count.html',
  280. autoback: true,
  281. title: '林地地类占比分析'
  282. });
  283. }
  284. /* 森林防火摄像头 */
  285. function ld_open_monitorPage() {
  286. /* 关闭侧滑菜单 */
  287. closeMainMenu();
  288. beginApp('com.videogo', '萤石云视频');
  289. }
  290. /* 打开规划地类查询页面 */
  291. function gh_open_landQueryPage() {
  292. /* 关闭侧滑菜单 */
  293. closeMainMenu();
  294. createAndOpenPage({
  295. htmlPath: 'plan-land-query.html',
  296. autoback: true,
  297. title: '规划地类查询'
  298. });
  299. }
  300. /* 打开规划管制区查询页面 */
  301. function gh_open_regulateAreaQueryPage() {
  302. /* 关闭侧滑菜单 */
  303. closeMainMenu();
  304. createAndOpenPage({
  305. htmlPath: 'plan-regulate-query.html',
  306. autoback: true,
  307. title: '规划管制区查询'
  308. });
  309. }
  310. /* 打开规划统计分析页面 */
  311. function gh_open_countPage() {
  312. /* 关闭侧滑菜单 */
  313. closeMainMenu();
  314. createAndOpenPage({
  315. htmlPath: 'plan-count.html',
  316. autoback: true,
  317. title: '规划汇总统计分析'
  318. });
  319. }
  320. /* 历年供地出让合同查询 */
  321. function gd_open_queryPage() {
  322. /* 关闭侧滑菜单 */
  323. closeMainMenu();
  324. createAndOpenPage({
  325. htmlPath: 'LandSupply-cr-query.html',
  326. autoback: true,
  327. title: '历年供地出让合同查询'
  328. });
  329. }
  330. /* 打开历年供地出让宗地占比分析页面 */
  331. function gd_open_analysisPage() {
  332. /* 关闭侧滑菜单 */
  333. closeMainMenu();
  334. createAndOpenPage({
  335. htmlPath: 'LandSupply-count-area.html',
  336. autoback: true,
  337. title: '历年供地出让宗地占比分析'
  338. });
  339. }
  340. /* 历年划拨供地查询 */
  341. function gd_open_hb_queryPage() {
  342. /* 关闭侧滑菜单 */
  343. closeMainMenu();
  344. createAndOpenPage({
  345. htmlPath: 'LandSupply-hb-query.html',
  346. autoback: true,
  347. title: '历年划拨供地查询'
  348. });
  349. }
  350. /* 打开热线数据查询页面 */
  351. function rx_open_queryPage() {
  352. /* 关闭侧滑菜单 */
  353. closeMainMenu();
  354. createAndOpenPage({
  355. htmlPath: 'hotline-query.html',
  356. autoback: true,
  357. title: '热线数据查询'
  358. });
  359. }
  360. /* 打开镇街资源统计页面 */
  361. function cn_open_townResourceCountPage() {
  362. /* 关闭侧滑菜单 */
  363. closeMainMenu();
  364. createAndOpenPage({
  365. htmlPath: 'page-town-resource-count.html',
  366. autoback: true,
  367. title: '镇街资源统计'
  368. });
  369. }
  370. /**
  371. * 弹出正在建设的提示信息
  372. */
  373. function showBuildTips() {
  374. muiAlert('建设中...', '提示');
  375. }
  376. /**
  377. *
  378. */
  379. function showNotPermission() {
  380. muiAlert('您无权使用该功能!', '敬告');
  381. }
  382. /**
  383. * 显示统计页
  384. */
  385. function showCountPage() {
  386. mui.openWindow({
  387. url: 'page-case-count.html',
  388. id: 'page-case-count',
  389. styles: {
  390. top: '0px',
  391. bottom: '0px',
  392. left: '0px',
  393. right: '0px',
  394. background: 'transparent',
  395. },
  396. show: {
  397. aniShow: 'slide-in-bottom',
  398. duration: '300',
  399. }
  400. });
  401. }