main_entiity.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>main_entiity</title>
  6. <script src="./main_entity.js"></script>
  7. <script>
  8. var request_config = {
  9. title: '实体数据类型服务测试',
  10. datatype: [
  11. { "text" : "appinfo", "value" : "appinfo" },
  12. { "text" : "catagoryinfo", "value" : "catagoryinfo" },
  13. { "text" : "document", "value" : "document" },
  14. { "text" : "appcatagorypermission", "value" : "appcatagorypermission" },
  15. { "text" : "appcatagoryadmin", "value" : "appcatagoryadmin" },
  16. { "text" : "log", "value" : "log" }
  17. ]
  18. };
  19. $(document).ready(function() {
  20. data_query();
  21. });
  22. </script>
  23. <script id="data_query_template" type="text/html">
  24. <table border="1" width="100%">
  25. <tr>
  26. <td>id:</td>
  27. <td><input type="text" id="id" style="width:95%"/></td>
  28. </tr>
  29. <tr>
  30. <td>type:</td>
  31. <td>
  32. <select id="type">
  33. {{each datatype as type i}}
  34. <option value="{{type.value}}">{{type.text}}</option>
  35. {{/each}}
  36. </select>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td colspan="2">
  41. <button id="get">get</button>&nbsp;
  42. <button id="put">put</button>&nbsp;
  43. <button id="post">post</button>&nbsp;
  44. <button id="uuid">UUID</button>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td colspan="2">
  49. <textarea id="result" style="width:97%;height:600px"/>
  50. </td>
  51. </tr>
  52. </table>
  53. </script>
  54. </head>
  55. <body>
  56. <div style="float: left; width: 720px;">
  57. <div id="content" style="width: 100%;"></div>
  58. </div>
  59. </body>
  60. </html>