修改
This commit is contained in:
parent
358617b0c3
commit
5308a31cc8
@ -23,6 +23,11 @@ namespace JXCMS.CMS.Admin.Controllers
|
||||
return Redirect(Url.Action("Index"));
|
||||
}
|
||||
|
||||
public IActionResult DeleteWebSite(int id)
|
||||
{
|
||||
return Redirect(Url.Action("Index"));
|
||||
}
|
||||
|
||||
public IActionResult WebSiteDialog(int id)
|
||||
{
|
||||
WebSiteEntity webSiteEntity = null;
|
||||
|
@ -58,18 +58,18 @@
|
||||
<input type="checkbox" name="ids[]" value="1"><span></span>
|
||||
</label>
|
||||
</td>
|
||||
<td>209资源</td>
|
||||
<td>cj.1156zy.com/inc/sea33uuck.php</td>
|
||||
<td>0 0 * * * ?</td>
|
||||
<td>@webSiteEntity.WebSiteName</td>
|
||||
<td>@webSiteEntity.ApiUrl</td>
|
||||
<td>@webSiteEntity.Cron</td>
|
||||
<td>
|
||||
<span class="text-success">正常</span>
|
||||
<span class="text-success">@(webSiteEntity.IsEnable ? "正常": "已禁用")</span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-xs btn-default" href="#!" title="编辑" data-toggle="tooltip">
|
||||
<a class="btn btn-xs btn-default" href="@Url.Action("WebSiteDialog", "Collection", new {id = webSiteEntity.Id})" title="编辑" data-toggle="modal" data-target="#exampleModal">
|
||||
<i class="mdi mdi-pencil"></i>
|
||||
</a>
|
||||
<a class="btn btn-xs btn-default" href="#!" title="删除" data-toggle="tooltip">
|
||||
<a class="btn btn-xs btn-default" href="#!" title="删除" onclick="delWebsite(@webSiteEntity.Id)">
|
||||
<i class="mdi mdi-window-close"></i>
|
||||
</a>
|
||||
</div>
|
||||
@ -135,10 +135,41 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@section style
|
||||
{
|
||||
<link rel="stylesheet" href="@Url.ContentAdmin("js/jconfirm/jquery-confirm.min.css")">
|
||||
}
|
||||
|
||||
@section script
|
||||
{
|
||||
<script src="@Url.ContentAdmin("js/bootstrap-notify.min.js")"></script>
|
||||
<script type="text/javascript" src="@Url.ContentAdmin("js/lightyear.js")"></script>
|
||||
<script type="text/javascript" src="@Url.ContentAdmin("js/Validate.js")"></script>
|
||||
<script type="text/javascript" src="@Url.ContentAdmin("js/Validate.js")"></script>
|
||||
<script src="@Url.ContentAdmin("js/jconfirm/jquery-confirm.min.js")"></script>
|
||||
<script>
|
||||
$('#exampleModal').on('hidden.bs.modal', function(event) {
|
||||
$('#exampleModal').modal('dispose')
|
||||
});
|
||||
function delWebsite(id) {
|
||||
$.alert({
|
||||
title: '嗨',
|
||||
content: '这是对用户的简单提示框。 <br> 一些 <strong>HTML</strong> <em>内容</em>' + id,
|
||||
buttons: {
|
||||
confirm: {
|
||||
text: '确认',
|
||||
btnClass: 'btn-primary',
|
||||
action: function(){
|
||||
$.alert('你点击了确认!');
|
||||
}
|
||||
},
|
||||
cancel: {
|
||||
text: '取消',
|
||||
action: function () {
|
||||
$.alert('你点击了取消!');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
}
|
@ -1,10 +1,15 @@
|
||||
@{
|
||||
Layout = "_DialogLayout";
|
||||
}
|
||||
@using JXCMS.CMS.Movie.Entity
|
||||
@model JXCMS.CMS.Movie.Entity.WebSiteEntity
|
||||
|
||||
<form id="modify_website" action="@Url.Action("AddWebSite")" method="post">
|
||||
<input type="hidden" id="id" value="@Model.Id"/>
|
||||
<input type="hidden" id="id" name="id" value="@Model.Id"/>
|
||||
<div class="form-group">
|
||||
<label for="website_display" class="control-label">网站显示名称:</label>
|
||||
<input type="text" class="form-control" id="website_display" name="webSiteName" value="@Model.WebSiteName">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="website_api" class="control-label">网站地址(海洋CMS API):</label>
|
||||
<input type="text" class="form-control" id="website_api" name="apiUrl" value="@Model.ApiUrl">
|
||||
@ -13,16 +18,21 @@
|
||||
<label for="website_cron" class="control-label">采集时间(默认每小时0分0秒执行):</label>
|
||||
<input type="text" class="form-control" id="website_cron" name="cron" value="@Model.Cron">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="website_display" class="control-label">网站显示名称:</label>
|
||||
<input type="text" class="form-control" id="website_display" name="webSiteName" value="@Model.WebSiteName">
|
||||
<div class="form-group row m-b-10">
|
||||
<label class="col-xs-6 control-label">启用采集:</label>
|
||||
<div class="col-xs-6">
|
||||
<label class="lyear-switch switch-primary">
|
||||
<input type="checkbox" @(Model.IsEnable?"checked=\"checked\"":"") name="isEnable">
|
||||
<span></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section dialogScript
|
||||
{
|
||||
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
$('#commit').click(function() {
|
||||
var url = $("#website_api").val();
|
||||
var name = $("#website_display").val();
|
||||
|
@ -10,6 +10,6 @@ namespace JXCMS.CMS.Movie.Entity
|
||||
|
||||
public string Cron { get; set; } = "0 0 * * * ?";
|
||||
|
||||
public bool IsEnable { get; set; }
|
||||
public bool IsEnable { get; set; } = true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user