pages.json 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. // 登录
  5. "path": "pages/user/login",
  6. "style": {
  7. "navigationStyle": "custom"
  8. }
  9. },
  10. {
  11. // 首页
  12. "path": "pages/home/index",
  13. "style": {
  14. "navigationStyle": "custom"
  15. }
  16. },
  17. {
  18. // 我的
  19. "path": "pages/user/index",
  20. "style": {
  21. "navigationStyle": "custom"
  22. }
  23. },
  24. {
  25. // 修改手机和密码
  26. "path": "pages/user/change",
  27. "style": {
  28. "navigationBarTitleText": "%user.modifyPhoneAndPassword%"
  29. }
  30. },
  31. {
  32. // 运行记录填报
  33. "path": "pages/recordFilling/list",
  34. "style": {
  35. "navigationBarTitleText": "%home.operationRecordFilling%"
  36. }
  37. },
  38. {
  39. // 运行记录填报详情
  40. "path": "pages/recordFilling/detail",
  41. "style": {
  42. "navigationBarTitleText": "%home.operationRecordFilling%"
  43. }
  44. },
  45. {
  46. // 选择设备
  47. "path": "pages/devide/multiple",
  48. "style": {
  49. "navigationBarTitleText": "%device.selectDevice%"
  50. }
  51. },
  52. {
  53. // 物料详情
  54. "path": "pages/material/view",
  55. "style": {
  56. "navigationBarTitleText": "%workOrder.materialDetails%"
  57. }
  58. },
  59. {
  60. // 物料详情 - 维修工单
  61. "path": "pages/material/repair-view",
  62. "style": {
  63. "navigationBarTitleText": "%workOrder.materialDetails%"
  64. }
  65. },
  66. {
  67. // 保养工单
  68. "path": "pages/maintenance/index",
  69. "style": {
  70. "navigationStyle": "custom"
  71. }
  72. },
  73. {
  74. // 保养工单创建
  75. "path": "pages/maintenance/create",
  76. "style": {
  77. "navigationBarTitleText": "%maintenanceWorkOrder.createMaintenanceWorkOrder%"
  78. }
  79. },
  80. {
  81. // 保养工单 - 去保养
  82. "path": "pages/maintenance/edit",
  83. "style": {
  84. "navigationBarTitleText": "%maintenanceWorkOrder.editMaintenanceWorkOrder%"
  85. }
  86. },
  87. {
  88. // 保养工单详情
  89. "path": "pages/maintenance/detail",
  90. "style": {
  91. "navigationBarTitleText": "%maintenanceWorkOrder.viewMaintenanceWorkOrder%"
  92. }
  93. },
  94. {
  95. // 设备维修
  96. "path": "pages/repair/index",
  97. "style": {
  98. "navigationStyle": "custom"
  99. }
  100. },
  101. {
  102. // 设备维修详情
  103. "path": "pages/repair/detail",
  104. "style": {
  105. "navigationBarTitleText": "%equipmentMaintenance.viewWorkOrder%"
  106. }
  107. },
  108. {
  109. // 设备维修创建
  110. "path": "pages/repair/create",
  111. "style": {
  112. "navigationBarTitleText": "%equipmentMaintenance.createWorkOrder%"
  113. }
  114. },
  115. {
  116. // 设备维修创建
  117. "path": "pages/repair/edit",
  118. "style": {
  119. "navigationBarTitleText": "%equipmentMaintenance.editWorkOrder%"
  120. }
  121. },
  122. {
  123. // 故障上报
  124. "path": "pages/fault/index",
  125. "style": {
  126. "navigationStyle": "custom"
  127. }
  128. },
  129. {
  130. // 故障上报详情
  131. "path": "pages/fault/detail",
  132. "style": {
  133. "navigationBarTitleText": "%fault.viewWorkOrder%"
  134. }
  135. },
  136. {
  137. // 故障上报创建
  138. "path": "pages/fault/create",
  139. "style": {
  140. "navigationBarTitleText": "%fault.createWorkOrder%"
  141. }
  142. },
  143. {
  144. // 故障上报编辑
  145. "path": "pages/fault/edit",
  146. "style": {
  147. "navigationBarTitleText": "%fault.editWorkOrder%"
  148. }
  149. },
  150. {
  151. // 巡检工单
  152. "path": "pages/inspection/index",
  153. "style": {
  154. "navigationStyle": "custom"
  155. }
  156. },
  157. {
  158. // 巡检工单详情
  159. "path": "pages/inspection/detail",
  160. "style": {
  161. "navigationStyle": "custom"
  162. }
  163. },
  164. {
  165. // 巡检工单详情
  166. "path": "pages/inspection/edit",
  167. "style": {
  168. "navigationStyle": "custom"
  169. }
  170. },
  171. {
  172. // 瑞都日报-列表
  173. "path": "pages/ruiDu/index",
  174. "style": {
  175. "navigationBarTitleText": "%ruiDu.indexTitle%"
  176. }
  177. },
  178. {
  179. // 瑞都日报-详情
  180. "path": "pages/ruiDu/detail",
  181. "style": {
  182. "navigationBarTitleText": "%ruiDu.detailTitle%"
  183. }
  184. },
  185. {
  186. // 瑞都日报-编辑
  187. "path": "pages/ruiDu/edit",
  188. "style": {
  189. "navigationBarTitleText": "%ruiDu.editTitle%"
  190. }
  191. },
  192. {
  193. // 库存查询
  194. "path": "pages/inventory/index",
  195. "style": {
  196. "navigationBarTitleText": "%inventory.title%"
  197. }
  198. },
  199. {
  200. // 库存查询-筛选
  201. "path": "pages/inventory/search/index",
  202. "style": {
  203. "navigationBarTitleText": "%inventory.search.title%"
  204. }
  205. },
  206. {
  207. // 消息管理
  208. "path": "pages/message/index",
  209. "style": {
  210. "navigationBarTitleText": "%message.title%"
  211. }
  212. },
  213. {
  214. // 消息管理详情
  215. "path": "pages/message/detail/index",
  216. "style": {
  217. "navigationBarTitleText": "%message.title%"
  218. }
  219. },
  220. {
  221. // 状态变更列表
  222. "path": "pages/statusChange/index",
  223. "style": {
  224. "navigationBarTitleText": "%statusChange.title%",
  225. "app-plus": {
  226. "titleNView": {
  227. "buttons": [{
  228. "text": "%statusChange.insert%",
  229. "color": "#004098",
  230. "fontSize": "14px",
  231. "width": "80px"
  232. }]
  233. }
  234. }
  235. }
  236. },
  237. {
  238. // 状态变更列调整记录
  239. "path": "pages/statusChange/history/index",
  240. "style": {
  241. "navigationBarTitleText": "%statusChange.history.title%"
  242. }
  243. },
  244. {
  245. // 状态变更新增
  246. "path": "pages/statusChange/form/index",
  247. "style": {
  248. "navigationBarTitleText": "%statusChange.form.title%"
  249. }
  250. },
  251. {
  252. // 设备责任人列表
  253. "path": "pages/deviceUser/index",
  254. "style": {
  255. "navigationBarTitleText": "%deviceUser.title%",
  256. "app-plus": {
  257. "titleNView": {
  258. "buttons": [{
  259. "text": "%statusChange.insert%",
  260. "color": "#004098",
  261. "fontSize": "14px",
  262. "width": "80px"
  263. }]
  264. }
  265. }
  266. }
  267. },
  268. {
  269. // 设备责任人调整记录
  270. "path": "pages/deviceUser/history/index",
  271. "style": {
  272. "navigationBarTitleText": "%deviceUser.history.title%"
  273. }
  274. },
  275. {
  276. // 设备责任人新增
  277. "path": "pages/deviceUser/form/index",
  278. "style": {
  279. "navigationBarTitleText": "%deviceUser.form.title%"
  280. }
  281. },
  282. {
  283. // 实时数据监控
  284. "path": "pages/realTimeData/index",
  285. "style": {
  286. "navigationBarTitleText": "%realTimeData.title%"
  287. }
  288. },
  289. {
  290. // 实时数据监控详情
  291. "path": "pages/realTimeData/detail/index",
  292. "style": {
  293. "navigationBarTitleText": "%realTimeData.detail.title%"
  294. }
  295. },
  296. {
  297. // 实时数据监控详情
  298. "path": "pages/realTimeData/chart/index",
  299. "style": {
  300. "navigationBarTitleText": "%realTimeData.detail.title%"
  301. }
  302. },
  303. {
  304. // 设备台账
  305. "path": "pages/ledger/index",
  306. "style": {
  307. "navigationBarTitleText": "%ledger.title%"
  308. }
  309. },
  310. {
  311. // 新建设备台账
  312. "path": "pages/ledger/form/index",
  313. "style": {
  314. "navigationBarTitleText": "%ledger.form.title%"
  315. }
  316. },
  317. {
  318. // 设备台账详情
  319. "path": "pages/ledger/detail/index",
  320. "style": {
  321. "navigationBarTitleText": "%ledger.detail.title%"
  322. }
  323. },
  324. {
  325. // 统计分析
  326. "path": "pages/statistic/index",
  327. "style": {
  328. "navigationStyle": "custom"
  329. }
  330. },
  331. {
  332. // 超时工单列表
  333. "path": "pages/overtime/index",
  334. "style": {
  335. "navigationBarTitleText": "%overtime.title%"
  336. }
  337. }
  338. ],
  339. "tabBar": {
  340. // "height": "50px", //总高45 - 9px顶部padding
  341. "height": "45px",
  342. "iconWidth": "15px",
  343. "fontSize": "14px",
  344. "borderStyle": "white",
  345. "backgroundColor": "white",
  346. "color": "#999999",
  347. "selectedColor": "#004098",
  348. "list": [{
  349. "pagePath": "pages/home/index",
  350. "iconPath": "/static/tabbar/shouye-weixuanzhong.png",
  351. "selectedIconPath": "/static/tabbar/shouye-xuanzhong.png",
  352. "text": "%app.home%"
  353. },
  354. {
  355. "pagePath": "pages/user/index",
  356. "iconPath": "/static/tabbar/wode-weixuanzhong.png",
  357. "selectedIconPath": "/static/tabbar/wode-xuanzhong.png",
  358. "text": "%app.user%"
  359. }
  360. ]
  361. },
  362. "globalStyle": {
  363. "navigationBarTextStyle": "black",
  364. "navigationBarTitleText": "%app.appName%",
  365. "navigationBarBackgroundColor": "#F3F5F9",
  366. "backgroundColor": "#F3F5F9",
  367. "rpxCalcMaxDeviceWidth": 960,
  368. "rpxCalcBaseDeviceWidth": 375,
  369. "rpxCalcIncludeWidth": 750
  370. },
  371. "uniIdRouter": {},
  372. "easycom": {
  373. // 配置easycom组件自动引入
  374. "autoscan": true, // 是否开启easycom组件的自动扫描
  375. "custom": { // 自定义扫描规则
  376. // "^uni-(.*)": "uni_modules/uni-$1/uni-$1.vue"
  377. "^global-(.*)": "@/components/global/$1.vue"
  378. }
  379. }
  380. }