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

XIAOPAN

... ... @@ -123,5 +123,10 @@ class AdminStatisticsController extends AdminBaseController{
public function getNote(){
$param=$this->request->param();
return $param;
}
}
\ No newline at end of file
... ...
... ... @@ -40,6 +40,10 @@
<select class="form-control" id="hospital" name="hospital" style="width: 140px;">
<option value=''>全部</option>
</select> &nbsp;&nbsp;
科室
<select class="form-control" id="note" name="note" style="width: 140px;">
<option value=''>全部</option>
</select>
<input type="submit" class="btn btn-primary" value="搜索"/>
</form>
<div class="qk_wrap" style=" margin-bottom: 10px;">
... ... @@ -553,7 +557,20 @@
}
);
});
$("#hospital").change(function(){
var id=this.value();
$.ajax({
url: "{:url('portal/AdminStatistics/getNote')}",
type: "post",
data: {
hospital:id,
},
success: function (data) {
alert(data);
$(".presentlist").html(html);
}
})
})
</script>
</body>
</html>
... ...