From 6c4d4b494ef9c8fb134ece79e3993038a0358639 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 14 四月 2023 18:29:03 +0800
Subject: [PATCH] 对象建模更新

---
 Source/UBCS-WEB/src/views/modeling/Relations.vue |  236 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 232 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/modeling/Relations.vue b/Source/UBCS-WEB/src/views/modeling/Relations.vue
index b1c8cc0..6605116 100644
--- a/Source/UBCS-WEB/src/views/modeling/Relations.vue
+++ b/Source/UBCS-WEB/src/views/modeling/Relations.vue
@@ -1,13 +1,241 @@
 <template>
-<p>瀵硅薄鍏崇郴绫诲瀷</p>
+  <el-container>
+    <el-aside width="240px">
+      <basic-container >
+        <avue-tree id="basic" :data="treeData" :option="treeOption" @node-click="nodeClick"></avue-tree>
+      </basic-container>
+    </el-aside>
+    <el-main>
+      <basic-container>
+        <p style="margin-top: 10px;font-weight: 570;font-size: 19px">閾炬帴绫诲瀷鍒楄〃</p>
+        <avue-crud
+          v-model="obj"
+          :data="loadData"
+          :option="loadOption"
+        >
+          <template slot-scope="scope" slot="defaultForm">
+            <Relationpackage></Relationpackage>
+          </template>
+          <template slot-scope="scope" slot="TodefaultForm">
+            <Torelationpackage></Torelationpackage>
+          </template>
+        </avue-crud>
+      </basic-container>
+      <basic-container>
+        <p style="margin-top: 10px;font-weight: 570;font-size: 19px">灞炴�у垪琛�</p>
+        <avue-crud
+        v-model="objs"
+        :data="attrData"
+        :option="attrOption"
+        >
+        </avue-crud>
+      </basic-container>
+    </el-main>
+  </el-container>
 </template>
 
 <script>
 export default {
-  name: "Relations"
+  name: "Relations",
+  data() {
+    return {
+      //  宸︽爲鏁版嵁
+      treeOption: {
+        defaultExpandAll: true,
+      },
+      treeData: [
+        {
+          value: 0,
+          label: '閾炬帴绫诲瀷鍒楄〃',
+          children: [
+            {
+              value: 1,
+              label: 'input',
+            },
+            {
+              value: 2,
+              label: 'checkbox',
+            },
+          ]
+        }
+      ],
+      //  鍙充晶琛ㄦ牸鍩烘湰淇℃伅鏁版嵁
+      obj: {},
+      loadData: [],
+      loadOption: {
+        border: true,
+        editBtn: false,
+        height: 200,
+        tabs:true,
+        column: [
+          {
+            label: "鍚嶇О",
+            prop: "name",
+            display:false
+          },
+          {
+            label: "鏍囩",
+            prop: "tag",
+            display:false
+          },
+          {
+            label: "褰㈢姸",
+            prop: "shape",
+            display:false
+          },
+          {
+            label: "鎻忚堪",
+            prop: "desc",
+            display:false
+          },
+          {
+            label: "Form绔被鍨�",
+            prop: "FormType",
+            display:false
+          },
+          {
+            label: "To绔被鍨�",
+            prop: "ToType",
+            display:false
+          }
+        ],
+        group:[
+          {
+            label:"閾炬帴绫诲瀷",
+            column:[
+              {
+                label: "鍚嶇О",
+                prop: "name"
+              },
+              {
+                label: "鏍囩",
+                prop: "tag"
+              },
+              {
+                label: "褰㈢姸",
+                prop: "shape"
+              },
+              {
+                label: "鎻忚堪",
+                prop: "desc"
+              },
+            ]
+          },
+          {
+            label: "Form绔被鍨�",
+            column: [
+              {
+                label: "涓荤被鍨�",
+                type:"select",
+                prop:"PrimType",
+                dicData:[
+                  {
+                    label:"娴嬭瘯1",
+                    value:0
+                  },
+                  {
+                    label:"娴嬭瘯2",
+                    value:1
+                  }
+                ]
+              },
+              {
+                type:"radio",
+                prop:"primRadio",
+                dicData:[
+                  {
+                    label:"N",
+                    value:0
+                  },
+                  {
+                    label:"1",
+                    value:1
+                  }
+                ]
+              },
+              {
+                //榛樿鎻掓Ы
+                prop:"default",
+                span:24,
+                labelWidth:5
+              }
+            ]
+          },
+          {
+            label: "To绔被鍨�",
+            column: [
+              {
+                label: "涓荤被鍨�",
+                type:"select",
+                prop:"toType",
+                dicData:[
+                  {
+                    label:"娴嬭瘯1",
+                    value:0
+                  },
+                  {
+                    label:"娴嬭瘯2",
+                    value:1
+                  }
+                ]
+              },
+              {
+                type:"radio",
+                prop:"toRadio",
+                dicData:[
+                  {
+                    label:"N",
+                    value:0
+                  },
+                  {
+                    label:"1",
+                    value:1
+                  }
+                ]
+              },
+              {
+                //榛樿鎻掓Ы
+                prop:"Todefault",
+                span:24,
+                labelWidth:5
+              }
+            ]
+          }
+        ]
+      },
+    //  鍙充晶搴曢儴鏁版嵁鍒楄〃鏁版嵁
+      objs:{},
+      attrData:[],
+      attrOption:{
+        height: 310,
+        border: true,
+        column: [
+          {
+            label:"灞炴�у悕",
+            prop:"attrName"
+          },
+          {
+            label:"灞炴�х被鍨�",
+            prop:"attrType"
+          },
+          {
+            label: "鍒濆鍊�",
+            prop:"Invalue"
+          },
+          {
+            label: "璇存槑",
+            prop:"explain"
+          }
+        ]
+      }
+    }
+  }
 }
 </script>
 
-<style scoped>
-
+<style lang="scss">
+#basic {
+  height: 770px;
+  border-radius: 10px;
+}
 </style>

--
Gitblit v1.9.3