OL.FrameCore.WebUI/Views/ArticleView/Index.cshtml
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@section CSS{
<style>
table thead {
display:none;
}
</style>
}
<div class="page-nav">首页 > 新闻公告</div>
<div class="page-body">
<div class="page-title"><i class="layui-icon layui-icon-rate-solid"></i><h2>新闻公告</h2></div>
@*<hr class="layui-bg-gray">*@
<div class="page-list">
<table id="tableArticle" lay-filter="tableList"></table>
</div>
</div>
@section Scripts{
<script>
var ArticleList = function () {
let inited = false;
let data = {};
var table;
function initData() {
layui.use(['form', 'layer', 'table', 'element', 'laydate'], function () {
//加载数据
loadData();
});
}
function loadData() {
var data = $('#formQueryLoginLog').serializeJson();
layui.table.render({
elem: '#tableArticle'
, height: 850
, url: '/ArticleView/GetArticleViewList' //数据接口
, where: ""
, page: true //开启分页
, limit: 15
, skin:'nob'//无边框
, size: 'lg'//大尺寸
, cols: [[ //表头
//{ field: 'id', title: 'ID', width: 100, sort: true }
{
field: 'id', title: '', templet: function (d) {
var txt = " 【"+d.typeText+"】 ";
txt += "<a href='/ArticleView/"+d.id+"'>"+d.title+"</a>";
return txt;
}, rowspan: 0
}
, {
fieId: 'createTime', title: '', width: 150, templet: function (d) { return layui.util.toDateString(d.createTime, "yyyy-MM-dd"); }
}
后面还有 22 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
