main.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. layui.use('table', function(){
  2. var table = layui.table;
  3. var datas = {
  4. "code": 0,
  5. "msg": "",
  6. "count": 15,
  7. "data": [
  8. {
  9. "indexTitle": "系统名称:",
  10. "indexData": "品房阁后台"
  11. },
  12. {
  13. "indexTitle": "版本信息:",
  14. "indexData": "品房阁后台内测版本"
  15. },
  16. {
  17. "indexTitle": "服务器环境:",
  18. "indexData": "Linux/Centos7.3"
  19. },
  20. {
  21. "indexTitle": "数据库版本:",
  22. "indexData": "5.7.19"
  23. },
  24. {
  25. "indexTitle": "最大上传限制:",
  26. "indexData": "8M"
  27. },
  28. {
  29. "indexTitle": "当前用户权限:",
  30. "indexData": "超级管理员"
  31. },
  32. {
  33. "indexTitle": "开发作者:",
  34. "indexData": "品房阁"
  35. }
  36. ]
  37. }
  38. //系统基本参数
  39. var tableIns = table.render({
  40. elem:'#newsList',
  41. // url:'js/index/main.json',
  42. // cellMinWidth:95,
  43. height:"auto",
  44. // limit:20,
  45. // limits:[10,15,20,25],
  46. id:"newsListTable",
  47. cols:[[
  48. {field:"indexTitle", width:"25%", align:"center"},
  49. {field:"indexData", width:"75%", align:"center"}
  50. ]]
  51. })
  52. });