|
目测,改为如下代码:
- @{
- ViewBag.Title = "登记环节统计分析";
- var F = @Html.F();
- }
- @section head{
- <link type="text/css" rel="stylesheet" href="~/res/css/default.css" />
-
- }
- @section body {
- <table style="width:100%;border-width:1px;height:100%;">
- <tr style="height:30px;">
- <td style="text-align:center;">
- <table style="width:80%;">
- <tr>
- <td style="width:160px;"> </td>
- <td style="width:150px;text-align:center;">
- @(
- F.Label()
- .ID("lb_DJHJ_Start")
- .Width(130)
- .Text("选择查询时间:")
- )
- </td>
- <td style="width:230px;text-align:left;">
- @(
- F.DatePicker()
- .ShowTime(false)
- .EmptyText("请选择查询日期")
- .Width(180)
- .ID("dp_DJHJ_Start")
- )
- </td>
- <td style="width:320px;text-align:center;">
- @(
- F.DatePicker()
- .ShowTime(false)
- .Label("结束日期")
- .EmptyText("请选择结束日期")
- .Width(300)
- .ID("dp_DJHJ_End")
- .CompareControl("dp_DJHJ_Start")
- .DateFormatString("yyyy-MM-dd")
- .CompareOperator(Operator.GreaterThan)
- .CompareMessage("结束日期应该大于开始日期")
- .Hidden(true)
- )
- </td>
- <td style="width:150px;text-align:center;">
- @(
- F.Button()
- .ID("btn_DJHJ_Search1")
- .Width(150)
- .Text("统计分析")
- .OnClick(Url.Action("btn_DJHJ_Find_Click"), "dp_DJHJ_Start,dp_DJHJ_End,rdb_gDJHJ")
- )
- </td>
- <td style="text-align:left;width:150px;">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td style="height:500px;width:800px;">
- <div id="container" style="min-width:500px;height:400px"></div>
- </td>
- </tr>
- </table>
- @section script {
-
- <script src="~/Content/Highcharts-5.0.7/code/highcharts.js"></script>
-
- <script type="text/javascript">
- $(function () {
- //alert("sssss")
- $('#container').highcharts({
- chart: {
- type: 'column'
- },
- title: {
- text: 'Column chart with negative values'
- },
- xAxis: {
- categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
- },
- credits: {
- enabled: false
- },
- series: [{
- name: 'John',
- data: [5, 3, 4, 7, 2]
- }, {
- name: 'Jane',
- data: [2, -2, -3, 2, 1]
- }, {
- name: 'Joe',
- data: [3, 4, 4, -2, 5]
- }]
- });
- });
- </script>
- <img src="static/image/hrline/line1.png" border="0" alt="">
- }
复制代码
注意两点:
1. 删除 jQuery 引用,因为 FineUIMvc 已经内置了 jQuery 引用
2. 所有脚本放到 @section script 节里面
如果上面还不行,请基于空项目重现问题,并上传
|
|