Эх сурвалжийг харах

表单组渲染页面初始化

lph 1 жил өмнө
parent
commit
467266bb64

BIN
zkqy-ui/public/favicon.ico


+ 33 - 0
zkqy-ui/src/components/FormGroup/index.vue

@@ -0,0 +1,33 @@
+<template>
+  <div class="list-wrap">
+    <k-form-build
+      v-if="jsonData"
+      class="formBuild"
+      ref="addFromRef"
+      :dynamicData="dynamicData"
+      :defaultValue="defaultValue"
+      :value="jsonData"
+    />
+  </div>
+</template>
+
+<script>
+export default {
+  name: "FormGroup",
+  props: [],
+  components: {},
+  data() {
+    return {
+      formList: [
+        {
+          formJson: formList,
+        },
+      ],
+    };
+  },
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style scoped></style>

+ 2 - 1
zkqy-ui/src/views/bussiness/detail/formList.js

@@ -177,7 +177,8 @@ const List = [
 		dynamicData: {},
 		defaultValue: {},
 	}
-	, {
+	,
+	{
 		list: [
 			{
 				type: "input",

+ 1 - 0
zkqy-ui/src/views/bussiness/detail/formList.vue

@@ -12,6 +12,7 @@
 </template>
 
 <script>
+import formList from "./formList";
 export default {
   name: "FormList",
   props: [],