diff --git a/project/oms/apps/develop/AppDataModel/dmAdd.vue b/project/oms/apps/develop/AppDataModel/dmAdd.vue
index 3595cdbd..bf6915f0 100644
--- a/project/oms/apps/develop/AppDataModel/dmAdd.vue
+++ b/project/oms/apps/develop/AppDataModel/dmAdd.vue
@@ -3,9 +3,9 @@
     
     
       
-        
+        
           
-            
+            
               
             
             
@@ -15,7 +15,7 @@
         
         
           全屏
-          
+          
             
             
               
@@ -29,7 +29,7 @@
         
           
             
-              
+              
             
             
               
@@ -92,10 +92,10 @@ export default {
       const {id} = this.$route.query
       id && this.instance.post("/app/appdatamodel/queryDetailById", null, {params: {id}}).then(res => {
         if (res?.data) {
-          const json = JSON.parse(res.data.config || null)
-          this.form = {...res.data, json}
+          const config = JSON.parse(res.data.config || null)
+          this.form = {...res.data, config}
           this.$load(this.diagram).then(() => {
-            this.diagram.render(json)
+            this.diagram.render(config)
             this.diagram.focusOn({id: this.form.name})
           })
         }
@@ -162,29 +162,30 @@ export default {
     },
     initMainModel(v) {
       this.diagram.clearData()
-      if (!!v?.id) {
+      if (!!v?.tableName) {
         this.getTableFields(v).then(list => {
           this.diagram.addNode({
             type: 'main',
             x: 200,
             y: 60,
-            id: v.id,
-            properties: {id: v.id, props: list}
+            id: v.tableName,
+            properties: {id: v.tableName, props: list}
           })
-          this.diagram.focusOn({id: v.id})
+          this.diagram.focusOn({id: v.tableName})
         })
       }
     },
     changeModel(v) {
-      if (!!v?.id) {
-        this.current.name = v.id
+      if (!!v?.tableName) {
+        this.current.id = v.tableName
         this.getTableFields(v).then((list = []) => this.current.props = list)
       }
     },
     getEntries() {
       this.instance.get("/app/v2/api-docs").then(res => {
         if (res?.definitions) {
-          this.entries = Object.entries(res.definitions).filter(([id]) => id?.startsWith("App"))?.map(([id, e]) => ({...e, id, label: id})) || []
+          this.entries = Object.entries(res.definitions).filter(([id]) => id?.startsWith("App"))
+          ?.map(([id, e]) => ({...e, id, label: id, tableName: id.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase()})) || []
         }
       })
     },