Index.cshtml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @{
  2. ViewBag.Title = "模板列表";
  3. Layout = "~/Views/Shared/_Index.cshtml";
  4. }
  5. <script>
  6. $(function () {
  7. resize();
  8. })
  9. function resize() {
  10. $('#pageayout').height($(window).height() - 20);
  11. $(window).resize(function (e) {
  12. window.setTimeout(function () {
  13. $('#pageayout').height($(window).height() - 20);
  14. }, 200);
  15. e.stopPropagation();
  16. });
  17. }
  18. //在线开发(单表)
  19. function btn_singletable() {
  20. dialogOpen({
  21. id: "Form",
  22. title: '在线代码生成器 并自动创建代码',
  23. url: '/GeneratorManage/SingleTable/CodeBuilder',
  24. width: "1100px",
  25. height: "700px",
  26. btn: null
  27. });
  28. }
  29. //在线开发(多表)
  30. function btn_multitable() {
  31. dialogOpen({
  32. id: "Form",
  33. title: '在线代码生成器 并自动创建代码',
  34. url: '/GeneratorManage/MultiTable/CodeBuilder',
  35. width: "1100px",
  36. height: "700px",
  37. btn: null
  38. });
  39. }
  40. </script>
  41. <div id="pageayout" class="border" style="background: #fff; overflow: auto;">
  42. <div style="margin: 20px;">
  43. <div class="cover-box">
  44. <div class="cover-img">
  45. <i class="fa fa-television" style="font-size: 130px; color: #666666;margin-top:20px;"></i>
  46. </div>
  47. <div class="cover-info">
  48. <h4>单表开发模板(A)</h4>
  49. <small>单表开发功能。</small>
  50. </div>
  51. <div class="cover-button">
  52. <a class="btn btn-default"><i class="fa fa-eye"></i>&nbsp;效果</a>
  53. <a class="btn btn-default" onclick="btn_singletable()"><i class="fa fa-bug"></i>&nbsp;开发</a>
  54. </div>
  55. </div>
  56. <div class="cover-box">
  57. <div class="cover-img">
  58. <i class="fa fa-gears" style="font-size: 130px; color: #666666;margin-top:20px;"></i>
  59. </div>
  60. <div class="cover-info">
  61. <h4>主从表开发模板(B)</h4>
  62. <small>类似订单、有表头信息、有明细信息</small>
  63. </div>
  64. <div class="cover-button">
  65. <a class="btn btn-default"><i class="fa fa-eye"></i>&nbsp;效果</a>
  66. <a class="btn btn-default" onclick="btn_multitable()"><i class="fa fa-bug"></i>&nbsp;开发</a>
  67. </div>
  68. </div>
  69. </div>
  70. </div>