From 5308a31cc8d15a1f3a007c62e72ee1509aa1c32c Mon Sep 17 00:00:00 2001 From: j4587698 Date: Sun, 9 Feb 2020 22:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controllers/CollectionController.cs | 5 +++ .../Admin/Views/Collection/Index.cshtml | 45 ++++++++++++++++--- .../Views/Collection/WebSiteDialog.cshtml | 24 +++++++--- CMS/JXCMS.CMS.Movie/Entity/WebSiteEntity.cs | 2 +- 4 files changed, 61 insertions(+), 15 deletions(-) diff --git a/CMS/JXCMS.CMS.Movie/Admin/Controllers/CollectionController.cs b/CMS/JXCMS.CMS.Movie/Admin/Controllers/CollectionController.cs index 1cd72ba..d1bd04d 100644 --- a/CMS/JXCMS.CMS.Movie/Admin/Controllers/CollectionController.cs +++ b/CMS/JXCMS.CMS.Movie/Admin/Controllers/CollectionController.cs @@ -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; diff --git a/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/Index.cshtml b/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/Index.cshtml index d10e2a5..d808921 100644 --- a/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/Index.cshtml +++ b/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/Index.cshtml @@ -58,18 +58,18 @@ - 209资源 - cj.1156zy.com/inc/sea33uuck.php - 0 0 * * * ? + @webSiteEntity.WebSiteName + @webSiteEntity.ApiUrl + @webSiteEntity.Cron - 正常 + @(webSiteEntity.IsEnable ? "正常": "已禁用")
- + - +
@@ -135,10 +135,41 @@ +@section style +{ + +} @section script { - + + + } \ No newline at end of file diff --git a/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/WebSiteDialog.cshtml b/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/WebSiteDialog.cshtml index 017f22f..39ccbb3 100644 --- a/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/WebSiteDialog.cshtml +++ b/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/WebSiteDialog.cshtml @@ -1,10 +1,15 @@ @{ Layout = "_DialogLayout"; } +@using JXCMS.CMS.Movie.Entity @model JXCMS.CMS.Movie.Entity.WebSiteEntity
- + +
+ + +
@@ -13,16 +18,21 @@
-
- - +
+ +
+ +
@section dialogScript { - - -} +} \ No newline at end of file diff --git a/CMS/JXCMS.CMS.Movie/Entity/WebSiteEntity.cs b/CMS/JXCMS.CMS.Movie/Entity/WebSiteEntity.cs index 39c8730..709f776 100644 --- a/CMS/JXCMS.CMS.Movie/Entity/WebSiteEntity.cs +++ b/CMS/JXCMS.CMS.Movie/Entity/WebSiteEntity.cs @@ -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; } } \ No newline at end of file