Răsfoiți Sursa

添加排序功能
新建默认开启
添加状态显示

DuGuYang 3 ani în urmă
părinte
comite
fa035c640f

+ 1 - 0
Areas/Admin/Controllers/MainServer/MsgAlertController.cs

@@ -136,6 +136,7 @@ namespace MySystem.Areas.Admin.Controllers
             Dictionary<string, object> Fields = new Dictionary<string, object>();
 
             Fields.Add("MsgType", data.MsgType); //消息类型
+            Fields.Add("Status", 1); //默认开启
             Fields.Add("Title", data.Title); //标题
             Fields.Add("Summary", data.Summary); //简介
             Fields.Add("Content", data.Content); //内容

+ 2 - 2
wwwroot/layuiadmin/modules_main/MsgAlert_Admin.js

@@ -94,7 +94,7 @@ layui.config({
             , { field: 'Id', fixed: 'left', title: 'ID', width: 80, sort: true, unresize: true }
             , { field: 'MsgType', width: 200, title: '消息类型', sort: true }
             , { field: 'CreateDate', width: 200, title: '创建时间', sort: true }
-            // , { field: 'StatusName', width: 200, title: '状态', sort: true }
+            , { field: 'StatusName', width: 200, title: '状态', sort: true }
             , { field: 'Title', width: 200, title: '标题', sort: true }
             , { field: 'Summary', width: 200, title: '简介', sort: true }
             // , { field: 'BgPic', width: 200, title: '背景图片', width: 60, templet: '#BgPicTpl', unresize: true }
@@ -107,7 +107,7 @@ layui.config({
             // , { field: 'AlertFlagName', width: 200, title: '弹窗标识', sort: true }
             , { field: 'IsWeekendName', width: 200, title: '是否周末', sort: true }
 
-            // , { field: 'Sort', fixed: 'right', title: '排序', width: 80, edit: 'text' }
+            , { field: 'Sort', fixed: 'right', title: '排序', width: 80, edit: 'text' }
             , { title: '操作', align: 'center', fixed: 'right', toolbar: '#table-list-tools' }
         ]]
         , where: {