ComplianceServer/oldcode/Core.Web/Views/CmsNews/Link.cshtml

84 lines
2.3 KiB
Plaintext

@using Core.Web.WebHelper
@using Core.Web.Controllers
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<style>
.layui-table-cell {
height: 60px;
}
</style>
<div class="x-body">
<div class="layui-btn-group" style="padding-bottom:10px;">
</div>
<form class="layui-form">
</form>
<table class="layui-hide" id="tabl1" lay-filter="tabl1"></table>
</div>
<script src="~/Scripts/layui_ext/xm-select/xm-select.js"></script>
<script>
var selectRow = {};
var layer;
var flow;
var accessories = [];
var token;
var table;
layui.use(['table', 'form', 'layer', 'upload', 'laydate', 'flow', 'element'], function () {
flow = layui.flow;
table = layui.table;
var form = layui.form;
form.render('select');
layer = layui.layer;
var upload = layui.upload;
var laydate = layui.laydate;
var element = layui.element;
laydate.render({ elem: '#TimeFrom' });
laydate.render({ elem: '#TimeTo' });
var id = @Html.Raw(ViewBag.Id);
table.render({
id: 'liveAuditList',//列表别名ID
elem: '#tabl1',//表ID
url: '/CmsNews/GetLink?id=' + id,
method: 'POST',
cols: [[
{ field: 'DeptId', title: 'deptid', width: 80 }
, { field: 'DeptName', title: '业务线', width: 180 }
, { field: 'Ch', title: '渠道号', width: 150 }
, { field: 'Link', title: '链接' }
]]
, page: false
, where: GetParams("mytoolbar")
});
$('#mytoolbar #search').on('click', function (data) {
table.reload('liveAuditList', {
page: { curr: 1 },
where: GetParams("mytoolbar")
});
});
//监听行按钮事件
table.on('tool(tabl1)', function (obj) {
var id = obj.data.Id;
var layEvent = obj.event;
console.log(obj);
if (layEvent === 'other1') {
ComplianceStatus(id);
}
});
});
function selectReset(value) {
selectChannel.setValue(value);
}
$("#reset").on('click', function (data) {
});
function TableReload() {
table.reload('liveAuditList', {
});
}
</script>