Ticket/Views/MontionAnalysis/Index.cshtml

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<style>
    .datagrid-btable .datagrid-cell {
        overlow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
</style>

<table id="tbl"></table>
<div id="btn">
    <div style="padding:2px 5px;">
        会员昵称:<input type="text" name="name" class="easyui-textbox" />
        <a id="standardQueryBtn" href="javascript:void(0)" class="easyui-linkbutton"
           data-options="iconCls:'icon-search'">搜索</a>
    </div>
</div>

<div id="editModal"></div>

<script type="text/javascript">
    $(document).ready(function () {
        $('#tbl').datagrid({
            url: "@Url.Action("GetData", "MontionAnalysis")",    //请求后台的地址
            fitColumns: true,
            scrollbarSize: 0,
            selected: false,
            pagination: true,     //分页开关
            pageNumber: 1,        //初始页
            rownumbers: true,
            method: 'get',
            toolbar: '#btn',
            loadMsg: '加载中...',
            nowrap: false,
            pageSize: 10,     //每页显示条数
            pageList: [10, 20, 50, 100, 150, 200],   //每页显示条数供选项
            striped: true,    //设置表格奇偶行颜色是否不同
            columns: [[
                {
                    field: 'User', title: '会员昵称', width: 100, formatter: function (value) {
                        if (value)
                            return value.NickName;
                        return '';
                    }
                },
                { field: 'SportName', title: '运动内容', width: 100 },
                { field: 'TimeLength', title: '运动时长(小时)', width: 100 },
                {
                    field: 'SportType', title: '运动类型', width: 100, formatter: function (value) {
                        if (value === 1) {
                            return '有氧';
                        }
                        return '无氧';
                    }
                },
                {
后面还有 58 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。