scale.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>量表明细</title>
  6. <style>
  7. *{
  8. margin: 0;
  9. padding: 0;
  10. }
  11. ul,li{
  12. list-style: none;
  13. }
  14. table{
  15. border-collapse: collapse;
  16. border-spacing: 0;
  17. }
  18. body{
  19. font-size: 14px;
  20. overflow-y: scroll;
  21. font-family: '微软雅黑', '宋体';
  22. background: #dde2ea;
  23. height: 100%;
  24. color: #33475f;
  25. }
  26. .container {
  27. width: 80%;
  28. overflow: hidden;
  29. background: #fff;
  30. margin: 0 auto;
  31. padding: 30px 30px 30px 30px;
  32. }
  33. h1 {
  34. text-align: center;
  35. padding: 20px 0;
  36. }
  37. .groupBox {
  38. border-bottom: 4px solid #EBEBEB;
  39. }
  40. .groupName {
  41. font-weight: bold;
  42. padding: 10px 0;
  43. }
  44. .groupRowName {
  45. line-height: 30px;
  46. }
  47. .groupRowBox {
  48. line-height: 30px;
  49. padding-left: 30px;
  50. }
  51. .groupRowRadio {
  52. margin: 0 20px 0 0;
  53. vertical-align: middle;
  54. display: inline-block;
  55. }
  56. .groupRowRecommend {
  57. color: #267FD7;
  58. margin-left: 5px;
  59. }
  60. .calcu {
  61. text-align: right;
  62. height: 40px;
  63. margin: 10px 0 0 0;
  64. line-height: 40px;
  65. border-top: 1px solid #979797;
  66. }
  67. .allCalcuBox {
  68. text-align: right;
  69. height: 60px;
  70. line-height: 60px;
  71. vertical-align: middle;
  72. position: relative;
  73. padding: 0 80px 0 0;
  74. }
  75. .calcuBtn {
  76. position: absolute;
  77. right: 0;
  78. top: 12px;
  79. display: inline-block;
  80. width: 70px;
  81. height: 36px;
  82. line-height: 36px;
  83. text-align: center;
  84. background: #267FD7;
  85. color: #fff;
  86. border-radius: 4px;
  87. }
  88. .groupRowWrapper {
  89. margin-top: 15px;
  90. }
  91. .groupRowIndex {
  92. display: inline-block;
  93. width: 25px;
  94. text-align: right;
  95. margin-right: 5px;
  96. }
  97. .noSelect {
  98. border: 1px solid red;
  99. box-sizing: border-box;
  100. }
  101. </style>
  102. </head>
  103. <body>
  104. <div class="container">
  105. <h1></h1>
  106. <div class="content"></div>
  107. </div>
  108. <!-- <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
  109. <script type="text/javascript">
  110. $(function(){
  111. // 从地址栏获取参数,请求量表内容
  112. function GetQueryString(name){     
  113. var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");     
  114. var r = window.location.search.substr(1).match(reg);     
  115. if(r!=null)return  unescape(r[2]); return null;
  116. }
  117. var scaleInfo;
  118. var id = GetQueryString('id') || 40744;
  119. var name = GetQueryString('name') || "密西根糖尿病周围神经病评分(MDNS)";
  120. var url = "http://192.168.2.236:5050/api/icss/push/pushInner";
  121. // 用GetQueryString方法从地址栏获取参数,暂时写死
  122. var params = {
  123. "age":28,
  124. "featureType":'21',
  125. "scaleId":id,
  126. "scaleName":name,
  127. "sex":1,
  128. "diag": "肺结核(复诊); ",
  129. "lis":[]
  130. }
  131. if(id){
  132. $.ajax({
  133. method:'post',
  134. url:url,
  135. data:JSON.stringify(params),
  136. dataType:'json',
  137. contentType:'application/json',
  138. success:function(res){
  139. if(res.code==0){
  140. scaleInfo = res.data.scale;
  141. console.log('量表数据为:',scaleInfo);
  142. }
  143. },
  144. error:function(err){
  145. console.log('请求失败:',err);
  146. }
  147. })
  148. }
  149. })
  150. </script> -->
  151. </body>
  152. </html>