index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <div class="header"></div>
  2. <div class="body">
  3. <div class="dj-formtable">
  4. 验证码:<input type="password" ng-model="vercode"/>
  5. </div>
  6. <div panel-title data-title="'select'"></div>
  7. <div class="dj-formtable">
  8. <table class="dj-table">
  9. <tr>
  10. <td>
  11. <textarea name="selectSql" ng-model="selectSql" class="form-control" rows="5" />
  12. </td>
  13. </tr>
  14. </table>
  15. <div class="form_foot">
  16. <button type="submit"
  17. class="btn btn-primary"
  18. ng-click="execSelectSql()">
  19. 执行select
  20. </button>
  21. </div>
  22. </div>
  23. <span style="color:red">{{selectMsg}}</span>
  24. <div class="table-responsive list-table-panel table-adapt">
  25. <table class="gt-table gt-table-bordered gt-table-evenodd table-text-clip">
  26. <thead>
  27. <tr>
  28. <td style="height: 50px; border: 1px solid #eee;">序号</td>
  29. <td ng-repeat="it in selectColumnList" style="border: 1px solid #eee;">
  30. {{it}}
  31. </td>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <tr ng-repeat="it in selectResult" fixed-table-header max-height="300">
  36. <td>{{$index+1}}</td>
  37. <td ng-repeat="colname in selectColumnList">
  38. {{it[colname]}}
  39. </td>
  40. </tr>
  41. <tr ng-if="selectResult.length==0" ng-repeat="it in [1]" fixed-table-header>
  42. <td colspan="15" style="text-align:center">暂无数据</td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. </div>
  47. <div panel-title data-title="'insert'"></div>
  48. <div class="dj-formtable">
  49. <table class="dj-table">
  50. <tr>
  51. <td>
  52. <textarea name="insertSql" ng-model="insertSql" class="form-control" rows="5" />
  53. </td>
  54. </tr>
  55. </table>
  56. <div class="form_foot">
  57. <button type="submit"
  58. class="btn btn-primary"
  59. ng-click="execInsertSql()">
  60. 执行insert
  61. </button>
  62. </div>
  63. <span style="color:red">{{insertMsg}}</span>
  64. </div>
  65. <div panel-title data-title="'update'"></div>
  66. <div class="dj-formtable">
  67. <table class="dj-table">
  68. <tr>
  69. <td>
  70. <textarea name="updateSql" ng-model="updateSql" class="form-control" rows="5" />
  71. </td>
  72. </tr>
  73. </table>
  74. <div class="form_foot">
  75. <button type="submit"
  76. class="btn btn-primary"
  77. ng-click="execUpdateSql()">
  78. 执行update
  79. </button>
  80. </div>
  81. <span style="color:red">{{updateMsg}}</span>
  82. </div>
  83. <div panel-title data-title="'delete'"></div>
  84. <div class="dj-formtable">
  85. <table class="dj-table">
  86. <tr>
  87. <td>
  88. <textarea name="deleteSql" ng-model="deleteSql" class="form-control" rows="5" />
  89. </td>
  90. </tr>
  91. </table>
  92. <div class="form_foot">
  93. <button type="submit"
  94. class="btn btn-primary"
  95. ng-click="execDeleteSql()">
  96. 执行delete
  97. </button>
  98. </div>
  99. <span style="color:red">{{deleteMsg}}</span>
  100. </div>
  101. </div>
  102. <style>
  103. body {
  104. overflow: auto !important;
  105. }
  106. textarea {
  107. font-size: 16px !important;
  108. }
  109. </style>