230 lines
9.3 KiB
Plaintext
230 lines
9.3 KiB
Plaintext
@using Core.Web.WebHelper
|
|
@using Core.Web.Controllers
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
|
}
|
|
|
|
<div class="x-body">
|
|
<form class="layui-form">
|
|
<div id="mytoolbar">
|
|
事业部:
|
|
<div class="layui-inline">
|
|
<select name="txt_DeptId" style="height:35px;">
|
|
<option value="">全部</option>
|
|
@{
|
|
if (ViewBag.companyList != null)
|
|
{
|
|
var list = ViewBag.companyList as List<Core.Web.Controllers.NewsController.DeptmentDto>;
|
|
foreach (var item in list)
|
|
{
|
|
<option value="@item.Id">@item.Title</option>
|
|
}
|
|
}
|
|
}
|
|
</select>
|
|
</div>
|
|
直播平台:
|
|
<div class="layui-inline">
|
|
<select name="slt_PlatformId" style="height:35px;">
|
|
<option value="">全部</option>
|
|
@{
|
|
if (ViewBag.Platforms != null)
|
|
{
|
|
var list = ViewBag.Platforms as List<CRM.Core.DTO.LiveAuditKeyValue>;
|
|
foreach (var item in list)
|
|
{
|
|
<option value="@item.Key">@item.Value</option>
|
|
}
|
|
}
|
|
}
|
|
</select>
|
|
</div>
|
|
课程:
|
|
<div class="layui-inline">
|
|
<input type="text" name="txt_Schedule" placeholder="请输入" autocomplete="off" class="layui-input">
|
|
</div>
|
|
@*备注:
|
|
<div class="layui-inline">
|
|
<input type="text" name="txt_Remark" placeholder="请输入" autocomplete="off" class="layui-input">
|
|
</div>*@
|
|
直播人:
|
|
<div class="layui-inline">
|
|
<input type="text" name="txt_Liver" placeholder="请输入" autocomplete="off" class="layui-input">
|
|
</div>
|
|
@*审核状态:
|
|
<div class="layui-inline">
|
|
<select name="slt_AuditStatus" style="height:35px;">
|
|
<option value="">全部</option>
|
|
@{
|
|
if (ViewBag.Status != null)
|
|
{
|
|
var list = ViewBag.Status as List<CRM.Core.DTO.LiveAuditKeyValue>;
|
|
foreach (var item in list)
|
|
{
|
|
<option value="@item.Key">@item.Value</option>
|
|
}
|
|
}
|
|
}
|
|
</select>
|
|
</div>*@
|
|
@*直播日期:
|
|
<div class="layui-inline">
|
|
<input class="layui-input" placeholder="开始日" name="txt_TimeFrom" id="TimeFrom" style="width:120px;">
|
|
</div>
|
|
<div class="layui-inline">
|
|
<input class="layui-input" placeholder="截止日" name="txt_TimeTo" id="TimeTo" style="width:120px;">
|
|
</div>
|
|
审核人:
|
|
<div class="layui-inline">
|
|
<input type="text" name="txt_Auditer" placeholder="请输入" autocomplete="off" class="layui-input">
|
|
</div>
|
|
审核时间:
|
|
<div class="layui-inline">
|
|
<input class="layui-input" placeholder="开始日" name="txt_AuditTimeFrom" id="AuditTimeFrom" style="width:120px;">
|
|
</div>
|
|
<div class="layui-inline">
|
|
<input class="layui-input" placeholder="截止日" name="txt_AuditTimeTo" id="AuditTimeTo" style="width:120px;">
|
|
</div>*@
|
|
<div style="float: right;">
|
|
<button class="layui-btn layui-btn-normal" style="width:100px;" type="button" id="search" data-type="reload">搜索</button>
|
|
<button class="layui-btn layui-btn-normal" style="width: 100px; margin-left: 10px !important;" type="reset">重置</button>
|
|
</div>
|
|
</div>
|
|
</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;
|
|
var statuss = @Html.Raw(Json.Encode(ViewBag.Status));
|
|
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' });
|
|
|
|
table.render({
|
|
id: 'liveAuditList',//列表别名ID
|
|
elem: '#tabl1',//表ID
|
|
url: '/LiveAudit/GetListHtml',
|
|
method: 'POST',
|
|
cols: [[
|
|
{ field: 'DeptName', title: '事业部', width: 120 }
|
|
, { field: 'LiveId', title: '直播ID'}
|
|
, { field: 'Platform', title: '直播平台'}
|
|
, { field: 'Schedule', title: '课程' }
|
|
, { field: 'Liver', title: '直播人' }
|
|
, { field: 'Account', title: '账号'}
|
|
, { field: 'LiveUrl', title: '直播链接' }
|
|
, { field: 'LiveTitle', title: '直播间' }
|
|
, {
|
|
field: 'ToBeReviewedCount', title: '待审核', templet: function (d) {
|
|
var url = "/LiveAudit/Detail?LiveId=" + d.LiveId +"&AuditStatus=0"
|
|
var title = "直播审核明细";
|
|
|
|
return "<a href=\"javascript:void(0)\" style=\"color:#01AAED\" onclick=\"parent.AddNewTab('" + title + "','" + url + "')\">" + d.ToBeReviewedCount +"</a>";
|
|
} }
|
|
, {
|
|
field: 'RejectCount', title: '违规', templet: function (d) {
|
|
var url = "/LiveAudit/Detail?LiveId=" + d.LiveId + "&AuditStatus=1"
|
|
var title = "直播审核明细";
|
|
|
|
return "<a href=\"javascript:void(0)\" style=\"color:#01AAED\" onclick=\"parent.AddNewTab('" + title + "','" + url + "')\">" + d.RejectCount + "</a>";
|
|
} }
|
|
, {
|
|
field: 'RectifyCount', title: '已整改', templet: function (d) {
|
|
var url = "/LiveAudit/Detail?LiveId=" + d.LiveId + "&AuditStatus=2"
|
|
var title = "直播审核明细";
|
|
|
|
return "<a href=\"javascript:void(0)\" style=\"color:#01AAED\" onclick=\"parent.AddNewTab('" + title + "','" + url + "')\">" + d.RectifyCount + "</a>";
|
|
} }
|
|
, {
|
|
field: 'PassCount', title: '审核通过', templet: function (d) {
|
|
var url = "/LiveAudit/Detail?LiveId=" + d.LiveId + "&AuditStatus=3"
|
|
var title = "直播审核明细";
|
|
|
|
return "<a href=\"javascript:void(0)\" style=\"color:#01AAED\" onclick=\"parent.AddNewTab('" + title + "','" + url + "')\">" + d.PassCount + "</a>";
|
|
} }
|
|
, {
|
|
field: 'AuditStatus', title: '审核状态', templet: function (d) {
|
|
var value = statuss.find(x => x.Key == d.AuditStatus);
|
|
if (value) {
|
|
return value.Value;
|
|
}
|
|
else {
|
|
return "";
|
|
}
|
|
}
|
|
}
|
|
, {
|
|
field: 'Operation', title: '操作', width: 140, templet: function (d) {
|
|
var url = "/LiveAudit/Detail?LiveId=" + d.LiveId
|
|
var title = "直播审核明细";
|
|
|
|
return "<a href=\"javascript:void(0)\" style=\"color:#01AAED\" onclick=\"parent.AddNewTab('" + title + "','" + url + "')\">明细</a>";
|
|
|
|
//return "<a href='javascript:ShowLog(" + d.Id + ");' style='color:#01AAED'>日志</a>";
|
|
}
|
|
}
|
|
]]
|
|
, page: {
|
|
layout: ['limit', 'count', 'prev', 'page', 'next', 'skip', 'refresh'] //自定义分页布局
|
|
//,curr: 5 //设定初始在第 5 页
|
|
, groups: 5 //只显示 1 个连续页码
|
|
}
|
|
, where: GetParams("mytoolbar")
|
|
});
|
|
|
|
$('#mytoolbar #search').on('click', function (data) {
|
|
table.reload('liveAuditList', {
|
|
page: { curr: 1 },
|
|
where: GetParams("mytoolbar")
|
|
});
|
|
});
|
|
});
|
|
|
|
function selectReset(value) {
|
|
selectChannel.setValue(value);
|
|
}
|
|
|
|
|
|
function ShowLog(id) {
|
|
var width = $(window).width() * 0.8;
|
|
var height = $(window).height() * 0.8;
|
|
layer.open({
|
|
type: 2,
|
|
content: '/LiveAudit/Log?Id=' + id,
|
|
title: "日志",
|
|
area: [width+'px', height+'px']
|
|
});
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#reset").on('click', function (data) {
|
|
|
|
});
|
|
|
|
function TableReload() {
|
|
table.reload('liveAuditList', {
|
|
});
|
|
}
|
|
|
|
</script>
|