diff --git a/ZR.Model/System/SysDictData.cs b/ZR.Model/System/SysDictData.cs
index bb674fb..3451084 100644
--- a/ZR.Model/System/SysDictData.cs
+++ b/ZR.Model/System/SysDictData.cs
@@ -23,8 +23,8 @@ namespace ZR.Model.System
public string DictLabel { get; set; }
public string DictValue { get; set; }
public string DictType { get; set; }
- public string CssClass { get; set; }
- public string ListClass { get; set; }
+ public string CssClass { get; set; } = string.Empty;
+ public string ListClass { get; set; } = string.Empty;
public string IsDefault { get; set; }
public string Status { get; set; }
}
diff --git a/ZR.Vue/src/assets/styles/index.scss b/ZR.Vue/src/assets/styles/index.scss
index 576b01c..bfcf783 100644
--- a/ZR.Vue/src/assets/styles/index.scss
+++ b/ZR.Vue/src/assets/styles/index.scss
@@ -319,6 +319,9 @@ aside {
.text-muted {
color: #888888;
}
+.text-orange {
+ color: orangered;
+}
/* image */
.img-circle {
diff --git a/ZR.Vue/src/views/components/dictData.vue b/ZR.Vue/src/views/components/dictData.vue
index 1286a23..29d4813 100644
--- a/ZR.Vue/src/views/components/dictData.vue
+++ b/ZR.Vue/src/views/components/dictData.vue
@@ -27,8 +27,8 @@
- {{scope.row.dictLabel}}
- {{scope.row.dictLabel}}
+ {{scope.row.dictLabel}}
+ {{scope.row.dictLabel}}
@@ -61,7 +61,10 @@
-
+
+
+
+
@@ -161,6 +164,36 @@ export default {
label: "危险",
},
],
+ cssClassOptions: [
+ {
+ value: "text-primary",
+ label: "primary",
+ },
+ {
+ value: "text-navy",
+ label: "text-navy",
+ },
+ {
+ value: "text-success",
+ label: "成功",
+ },
+ {
+ value: "text-info",
+ label: "信息",
+ },
+ {
+ value: "text-warning",
+ label: "警告",
+ },
+ {
+ value: "text-danger",
+ label: "危险",
+ },
+ {
+ value: "text-orange",
+ label: "橘红色",
+ },
+ ],
// 状态数据字典
statusOptions: [],
// 类型数据字典