[关闭]
@zhangzhen 2017-09-15T17:53:35.000000Z 字数 1003 阅读 1185

报表入口页面技术结构

owo


1, Java 提供入口页面

页面内容:

引用一部分前端资源文件

  1. <!DOCTYPE html >
  2. <html lang="zh-cmn-Hans">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>猩便利无人货架分析系统</title>
  6. <link href="<@static />/app/skynet/static/css/app.css" rel=stylesheet>
  7. </head>
  8. <body>
  9. <div id="app"></div>
  10. <script>
  11. window.INIT_APP_DATA = {
  12. // 当前页面的菜单数据
  13. menus: [{
  14. id: 1,
  15. title: '订单维度',
  16. subItems: [{
  17. id: 11,
  18. title: '订单每日汇总',
  19. url: 'type11'
  20. }]
  21. }, {
  22. id: 2,
  23. title: '货架维度',
  24. subItems: [{
  25. id: 21,
  26. title: '货架每日汇总',
  27. url: 'type21'
  28. }, {
  29. id: 22,
  30. title: '货架数量和订单量周报',
  31. url: 'type22'
  32. }]
  33. }],
  34. // 当前页面需要的 `iframe` src
  35. pageSrc: 'http://das.base.shuju.aliyun.com/shulaibao/preview.htm?spm=5176.7734353.2.3.tcATyy&pageId=703d6621-7aa0-4716-bcc1-515e3da794c2&accessToken=4a20bafc-ed0c-4db1-ac6c-08cfff3defa9'
  36. };
  37. </script>
  38. <script type="text/javascript" src="<@static />/app/skynet/static/js/manifest.js"></script>
  39. <script type="text/javascript" src="<@static />/app/skynet/static/js/vendor.js"></script>
  40. <script type="text/javascript" src="<@static />/app/skynet/static/js/app.js"></script>
  41. </body>
  42. </html>

其中, 第 7, 41, 42, 43 行的 static 部分需要读取Lion 中 key 为 static.staticUrlPrefix 的值.

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注