+
{{ item.text || '-' }}
@@ -36,7 +36,19 @@ export default {
column: {
type: String,
default: "2"
- }
+ },
+ titleStyle: {
+ type: [String, Object],
+ default: null
+ },
+ contentStyle: {
+ type: [String, Object],
+ default: null
+ },
+ itemStyle: {
+ type: [String, Object],
+ default: null
+ },
},
computed: {
gridStyle() {
@@ -54,7 +66,19 @@ export default {
},
getComponent(type) {
return `Form${type.replace(/^[a-z]/, word => word.toUpperCase())}`
- }
+ },
+ resolveStyle(style) {
+ if (typeof style != 'string') return style;
+
+ return style.split(';').reduce((prev, cur) => {
+ const [key, value] = cur.split(":");
+
+ prev[key] = value;
+
+ return prev;
+ }, {})
+
+ },
}
}
@@ -75,13 +99,17 @@ export default {
gap: 3px;
}
- .title {
- color: #3DE8FF;
- }
-
.item {
display: flex;
gap: 6px;
+
+ .title {
+ color: #3DE8FF;
+ }
+
+ .content {
+ flex: 1;
+ }
}
}
diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue
index a1d2541f..b21849a4 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue
@@ -2,7 +2,9 @@
-
+
+
+
@@ -46,6 +48,18 @@ export default {
default: "3"
}
},
+ data() {
+ return {
+ formData: {}
+ }
+ },
+ created() {
+ this.formData = this.formList.reduce((prev, { key, default: defaultData }) => {
+ prev[key] = defaultData || null;
+
+ return prev
+ }, {})
+ },
computed: {
gridStyle() {
return (item, index) => ({
diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine1/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine1/index.vue
index f784fe11..e37a3da9 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine1/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine1/index.vue
@@ -27,6 +27,7 @@