From 33c95d6836c12aa0f8f18b236017d7e972a82c84 Mon Sep 17 00:00:00 2001
From: wanggang <76527413@qq.com>
Date: Wed, 22 Jul 2020 09:54:34 +0800
Subject: [PATCH] update
Former-commit-id: 0eab0e0b12d9c75a7c87d73794376dfaee9ffe1b
Former-commit-id: d949b6566738eb6282d958e1d4482f7dd29e72c7
---
.../Entites/Settings/SettingType.cs | 25 +-
projects/WebMVC/wwwroot/js/components.js | 21 --
.../wwwroot/router/admin/setting/detail.html | 7 +
.../wwwroot/router/admin/setting/edit.html | 235 +++++-------------
.../wwwroot/router/admin/setting/index.html | 4 -
.../WebMVC/wwwroot/router/shared/display.html | 5 +-
.../WebMVC/wwwroot/router/shared/edit.html | 3 +-
.../WebMVC/wwwroot/router/shared/list.html | 9 +-
.../WebMVC/wwwroot/router/shared/update.html | 7 +-
9 files changed, 105 insertions(+), 211 deletions(-)
create mode 100644 projects/WebMVC/wwwroot/router/admin/setting/detail.html
diff --git a/projects/Infrastructure/Application/Entites/Settings/SettingType.cs b/projects/Infrastructure/Application/Entites/Settings/SettingType.cs
index 5b7f6cce..e5c63316 100644
--- a/projects/Infrastructure/Application/Entites/Settings/SettingType.cs
+++ b/projects/Infrastructure/Application/Entites/Settings/SettingType.cs
@@ -4,28 +4,31 @@ namespace Infrastructure.Application.Entites.Settings
{
public enum SettingType
{
- [Display(Name = "数值")]
- Number,
+ [Display(Name = "整数")]
+ Integer32 = 10,
- [Display(Name = "复选框")]
- Boolean,
+ [Display(Name = "浮点数")]
+ Doubule = 20,
+
+ [Display(Name = "布尔值")]
+ Boolean = 30,
[Display(Name = "文本")]
- Text,
+ Text = 40,
- [Display(Name = "Html代码")]
- Html,
+ [Display(Name = "Html")]
+ Html = 50,
[Display(Name = "图片")]
- ImageUrl,
+ ImageUrl = 60,
[Display(Name = "文件")]
- FileUrl,
+ FileUrl = 70,
[Display(Name = "时间")]
- DateTime,
+ DateTime = 80,
[Display(Name = "日期")]
- Date
+ Date = 90
}
}
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/js/components.js b/projects/WebMVC/wwwroot/js/components.js
index 26a0bd91..03f1bfe1 100644
--- a/projects/WebMVC/wwwroot/js/components.js
+++ b/projects/WebMVC/wwwroot/js/components.js
@@ -22,25 +22,4 @@ Vue.component('update', function (resolve, reject) {
axios.get("/router/shared/update.html").then(function (response) {
resolve(parseModel(response));
});
-});
-//
-Vue.component('index', function (resolve, reject) {
- axios.get("/router/shared/index.html").then(function (response) {
- resolve(parseModel(response));
- });
-});
-Vue.component('detail', function (resolve, reject) {
- axios.get("/router/shared/detail.html").then(function (response) {
- resolve(parseModel(response));
- });
-});
-Vue.component('add', function (resolve, reject) {
- axios.get("/router/shared/add.html").then(function (response) {
- resolve(parseModel(response));
- });
-});
-Vue.component('edit', function (resolve, reject) {
- axios.get("/router/shared/edit.html").then(function (response) {
- resolve(parseModel(response));
- });
});
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/router/admin/setting/detail.html b/projects/WebMVC/wwwroot/router/admin/setting/detail.html
new file mode 100644
index 00000000..3d688645
--- /dev/null
+++ b/projects/WebMVC/wwwroot/router/admin/setting/detail.html
@@ -0,0 +1,7 @@
+
+