From f7a31007774d41c46beee6de2ae47f9bc4b37d13 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 17 Aug 2019 16:22:50 +0800 Subject: [PATCH] =?UTF-8?q?db:=20=E5=A2=9E=E5=8A=A0=E7=BD=91=E7=AB=99UI?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/BootstrapAdmin.db | Bin 94208 -> 94208 bytes DatabaseScripts/MongoDB/Dicts.js | 84 ++++-------------------- DatabaseScripts/MongoDB/Navigations.js | 12 ++++ DatabaseScripts/MySQL/initData.sql | 5 ++ DatabaseScripts/Postgresql/initData.sql | 5 ++ DatabaseScripts/SQLite/InitData.sql | 5 ++ DatabaseScripts/SqlServer/InitData.sql | 5 ++ 7 files changed, 44 insertions(+), 72 deletions(-) diff --git a/Bootstrap.Admin/BootstrapAdmin.db b/Bootstrap.Admin/BootstrapAdmin.db index ed123775446b037a4fa0788aa51f700058497d6b..ed3dab6e202f6f6e4ed71da386f81a65ccb543bd 100644 GIT binary patch delta 203 zcmZp8z}oPDb%HeG-ib2KjC(gGEU9O9WNMkr-q6Uz)UsJn;1{F4ts^%BqamZLCcii% zKhu-_bDyrA@qF*Z=c{MFShw%_-gP!u+Fvf30adp7@(tbT0ID`zTL1t6 delta 55 zcmZp8z}oPDb%HeGu8A_vjJq}_EU9O9U^+aRy`gclpnx^g=EF^nzRa2&mnXAd2nLE& La%{eQLw7m=RC5)D diff --git a/DatabaseScripts/MongoDB/Dicts.js b/DatabaseScripts/MongoDB/Dicts.js index 782fe4f4..85cf3e31 100644 --- a/DatabaseScripts/MongoDB/Dicts.js +++ b/DatabaseScripts/MongoDB/Dicts.js @@ -119,54 +119,6 @@ "Code": "~/Home/Index", "Define": NumberInt(0) }, - { - "Category": "应用程序", - "Name": "组垛平台", - "Code": "4", - "Define": NumberInt(0) - }, - { - "Category": "组垛平台", - "Name": "网站标题", - "Code": "托盘组垛程序", - "Define": NumberInt(1) - }, - { - "Category": "组垛平台", - "Name": "网站页脚", - "Code": "版权所有:中烟信息", - "Define": NumberInt(1) - }, - { - "Category": "组垛平台", - "Name": "个人中心地址", - "Code": "http://localhost:50852/Admin/Profiles", - "Define": NumberInt(1) - }, - { - "Category": "组垛平台", - "Name": "系统设置地址", - "Code": "http://localhost:50852/Admin/Index", - "Define": NumberInt(1) - }, - { - "Category": "设备厂商", - "Name": "远望谷", - "Code": "Invengo", - "Define": NumberInt(1) - }, - { - "Category": "设备厂商", - "Name": "测试", - "Code": "Test", - "Define": NumberInt(1) - }, - { - "Category": "远程数据库", - "Name": "组垛数据库", - "Code": "Corp_Scan", - "Define": NumberInt(1) - }, { "Category": "网站样式", "Name": "黑色样式", @@ -185,18 +137,6 @@ "Code": "lte.css", "Define": NumberInt(0) }, - { - "Category": "设备天线", - "Name": "天线1", - "Code": "1", - "Define": NumberInt(1) - }, - { - "Category": "设备天线", - "Name": "天线2", - "Code": "2", - "Define": NumberInt(1) - }, { "Category": "应用程序", "Name": "测试平台", @@ -233,18 +173,6 @@ "Code": "http://localhost:50852/Admin/Notifications", "Define": NumberInt(1) }, - { - "Category": "设备驱动", - "Name": "Invengo", - "Code": "Longbow.Invengo.Device, Longbow.Invengo", - "Define": NumberInt(1) - }, - { - "Category": "设备驱动", - "Name": "Test", - "Code": "Pallet.DeviceInterface.Device, Pallet.DeviceHub", - "Define": NumberInt(1) - }, { "Category": "应用首页", "Name": "2", @@ -317,5 +245,17 @@ "Name": "验证码图床", "Code": "http://images.sdgxgz.com/", "Define": NumberInt(0) + }, + { + "Category": "网站设置", + "Name": "侧边栏状态", + "Code": "1", + "Define": NumberInt(0) + }, + { + "Category": "网站设置", + "Name": "卡片标题状态", + "Code": "1", + "Define": NumberInt(0) } ]; \ No newline at end of file diff --git a/DatabaseScripts/MongoDB/Navigations.js b/DatabaseScripts/MongoDB/Navigations.js index df38b43c..e977128e 100644 --- a/DatabaseScripts/MongoDB/Navigations.js +++ b/DatabaseScripts/MongoDB/Navigations.js @@ -83,6 +83,18 @@ "IsResource": NumberInt(2), "Application": "0" }, + { + "_id": ObjectId("5bd7b8445fa31256f77e4a06"), + "ParentId": "5bd7b8445fa31256f77e4b91", + "Name": "保存网站设置", + "Order": NumberInt(60), + "Icon": "fa fa-fa", + "Url": "saveUISettings", + "Category": "0", + "Target": "_self", + "IsResource": NumberInt(2), + "Application": "0" + }, { "_id": ObjectId("5bd7b8445fa31256f77e4b92"), "ParentId": "0", diff --git a/DatabaseScripts/MySQL/initData.sql b/DatabaseScripts/MySQL/initData.sql index 0c12dac8..9ebbb379 100644 --- a/DatabaseScripts/MySQL/initData.sql +++ b/DatabaseScripts/MySQL/initData.sql @@ -29,6 +29,10 @@ INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('网站样式', 'AdminL INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('当前样式', '使用样式', 'blue.css', 0); INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('网站设置', '前台首页', '~/Home/Index', 0); +-- 网站UI设置 +INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('网站设置', '侧边栏状态', '1', 0); +INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('网站设置', '卡片标题状态', '1', 0); + -- 时长单位 月 INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('系统设置', '程序异常保留时长', '1', 0); INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('系统设置', '操作日志保留时长', '12', 0); @@ -54,6 +58,7 @@ INSERT INTO Navigations (ParentId, Name, `Order`, Icon, Url, Category, IsResourc INSERT INTO Navigations (ParentId, Name, `Order`, Icon, Url, Category, IsResource) VALUES (@@identity - 2, '保存应用', 30, 'fa fa-fa', 'saveApp', '0', 2); INSERT INTO Navigations (ParentId, Name, `Order`, Icon, Url, Category, IsResource) VALUES (@@identity - 3, '保存样式', 40, 'fa fa-fa', 'saveTheme', '0', 2); INSERT INTO Navigations (ParentId, Name, `Order`, Icon, Url, Category, IsResource) VALUES (@@identity - 4, '保存头像', 50, 'fa fa-fa', 'saveIcon', '0', 2); +INSERT INTO Navigations (ParentId, Name, `Order`, Icon, Url, Category, IsResource) VALUES (@@identity - 5, '保存网站设置', 60, 'fa fa-fa', 'saveUISettings', '0', 2); INSERT INTO Navigations (ParentId, Name, `Order`, Icon, Url, Category) VALUES (0, '返回前台', 30, 'fa fa-hand-o-left', '~/Home/Index', '0'); INSERT INTO Navigations (ParentId, Name, `Order`, Icon, Url, Category) VALUES (0, '网站设置', 40, 'fa fa-fa', '~/Admin/Settings', '0'); INSERT INTO Navigations (ParentId, Name, `Order`, Icon, Url, Category, IsResource) VALUES (@@identity, '保存系统名称', 10, 'fa fa-fa', 'saveTitle', '0', 2); diff --git a/DatabaseScripts/Postgresql/initData.sql b/DatabaseScripts/Postgresql/initData.sql index 26db7fa6..213ca3bf 100644 --- a/DatabaseScripts/Postgresql/initData.sql +++ b/DatabaseScripts/Postgresql/initData.sql @@ -29,6 +29,10 @@ INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('网站样式', 'AdminL INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('当前样式', '使用样式', 'blue.css', 0); INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('网站设置', '前台首页', '~/Home/Index', 0); +-- 网站UI设置 +INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('网站设置', '侧边栏状态', '1', 0); +INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('网站设置', '卡片标题状态', '1', 0); + -- 时长单位 月 INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('系统设置', '程序异常保留时长', '1', 0); INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('系统设置', '操作日志保留时长', '12', 0); @@ -54,6 +58,7 @@ INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (currval('navigations_id_seq') - 3, '保存应用', 30, 'fa fa-fa', 'saveApp', '0', 2); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (currval('navigations_id_seq') - 4, '保存样式', 40, 'fa fa-fa', 'saveTheme', '0', 2); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (currval('navigations_id_seq') - 5, '保存头像', 50, 'fa fa-fa', 'saveIcon', '0', 2); +INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (currval('navigations_id_seq') - 6, '保存网站设置', 60, 'fa fa-fa', 'saveUISettings', '0', 2); INSERT INTO Navigations (ParentId, Name, "order", Icon, Url, Category) VALUES (0, '返回前台', 30, 'fa fa-hand-o-left', '~/Home/Index', '0'); INSERT INTO Navigations (ParentId, Name, "order", Icon, Url, Category) VALUES (0, '网站设置', 40, 'fa fa-fa', '~/Admin/Settings', '0'); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (currval('navigations_id_seq') - 1, '保存系统名称', 10, 'fa fa-fa', 'saveTitle', '0', 2); diff --git a/DatabaseScripts/SQLite/InitData.sql b/DatabaseScripts/SQLite/InitData.sql index b44f5afc..7f960b18 100644 --- a/DatabaseScripts/SQLite/InitData.sql +++ b/DatabaseScripts/SQLite/InitData.sql @@ -29,6 +29,10 @@ INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('网站样式 INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('当前样式', '使用样式', 'blue.css', 0); INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('网站设置', '前台首页', '~/Home/Index', 0); +-- 网站UI设置 +INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('网站设置', '侧边栏状态', '1', 0); +INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('网站设置', '卡片标题状态', '1', 0); + -- 时长单位 月 INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('系统设置', '程序异常保留时长', '1', 0); INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('系统设置', '操作日志保留时长', '12', 0); @@ -54,6 +58,7 @@ INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (last_insert_rowid() - 2, '保存应用', 30, 'fa fa-fa', 'saveApp', '0', 2); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (last_insert_rowid() - 3, '保存样式', 40, 'fa fa-fa', 'saveTheme', '0', 2); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (last_insert_rowid() - 4, '保存头像', 50, 'fa fa-fa', 'saveIcon', '0', 2); +INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (last_insert_rowid() - 5, '保存网站设置', 60, 'fa fa-fa', 'saveUISettings', '0', 2); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (0, '返回前台', 30, 'fa fa-hand-o-left', '~/Home/Index', '0'); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (0, '网站设置', 40, 'fa fa-fa', '~/Admin/Settings', '0'); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (last_insert_rowid(), '保存系统名称', 10, 'fa fa-fa', 'saveTitle', '0', 2); diff --git a/DatabaseScripts/SqlServer/InitData.sql b/DatabaseScripts/SqlServer/InitData.sql index c12a765b..5587b0f5 100644 --- a/DatabaseScripts/SqlServer/InitData.sql +++ b/DatabaseScripts/SqlServer/InitData.sql @@ -32,6 +32,10 @@ INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'网站样 INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'当前样式', N'使用样式', N'blue.css', 0) INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'网站设置', N'前台首页', N'~/Home/Index', 0) +-- 网站UI设置 +INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'网站设置', N'侧边栏状态', N'1', 0) +INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'网站设置', N'卡片标题状态', N'1', 0) + -- 时长单位 月 INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'系统设置', N'程序异常保留时长', '1', 0) INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'系统设置', N'操作日志保留时长', '12', 0) @@ -57,6 +61,7 @@ INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (@@Identity - 2, N'保存应用', 30, 'fa fa-fa', 'saveApp', '0', 2); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (@@Identity - 3, N'保存样式', 40, 'fa fa-fa', 'saveTheme', '0', 2); INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (@@Identity - 4, N'保存头像', 50, 'fa fa-fa', 'saveIcon', '0', 2); +INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (@@Identity - 5, N'保存网站设置', 60, 'fa fa-fa', 'saveUISettings', '0', 2); INSERT [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (0, N'返回前台', 30, N'fa fa-hand-o-left', N'~/Home/Index', N'0') INSERT [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (0, N'网站设置', 40, N'fa fa-fa', N'~/Admin/Settings', N'0') INSERT INTO [Navigations] ([ParentId], [Name], [Order], [Icon], [Url], [Category], IsResource) VALUES (@@Identity, N'保存系统名称', 10, 'fa fa-fa', 'saveTitle', '0', 2);