作者 潘浩文
1 个管道 的构建 通过 耗费 4 秒

XIAOPAN

@@ -123,5 +123,10 @@ class AdminStatisticsController extends AdminBaseController{ @@ -123,5 +123,10 @@ class AdminStatisticsController extends AdminBaseController{
123 123
124 124
125 125
  126 + public function getNote(){
  127 + $param=$this->request->param();
  128 + return $param;
  129 + }
  130 +
126 131
127 } 132 }
@@ -40,6 +40,10 @@ @@ -40,6 +40,10 @@
40 <select class="form-control" id="hospital" name="hospital" style="width: 140px;"> 40 <select class="form-control" id="hospital" name="hospital" style="width: 140px;">
41 <option value=''>全部</option> 41 <option value=''>全部</option>
42 </select> &nbsp;&nbsp; 42 </select> &nbsp;&nbsp;
  43 + 科室
  44 + <select class="form-control" id="note" name="note" style="width: 140px;">
  45 + <option value=''>全部</option>
  46 + </select>
43 <input type="submit" class="btn btn-primary" value="搜索"/> 47 <input type="submit" class="btn btn-primary" value="搜索"/>
44 </form> 48 </form>
45 <div class="qk_wrap" style=" margin-bottom: 10px;"> 49 <div class="qk_wrap" style=" margin-bottom: 10px;">
@@ -553,7 +557,20 @@ @@ -553,7 +557,20 @@
553 } 557 }
554 ); 558 );
555 }); 559 });
556 - 560 + $("#hospital").change(function(){
  561 + var id=this.value();
  562 + $.ajax({
  563 + url: "{:url('portal/AdminStatistics/getNote')}",
  564 + type: "post",
  565 + data: {
  566 + hospital:id,
  567 + },
  568 + success: function (data) {
  569 + alert(data);
  570 + $(".presentlist").html(html);
  571 + }
  572 + })
  573 + })
557 </script> 574 </script>
558 </body> 575 </body>
559 </html> 576 </html>