diff --git a/pages/index/index.vue b/pages/index/index.vue
index fb18ce6053e5f2f3a2f1878fc1d951ed9483d0b1..5d41d16764f033b1ece166a706d419be9cb1c9d1 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -3,13 +3,15 @@
diff --git a/pages/test/test-er/test-er.vue b/pages/test/test-er/test-er.vue
index 5bba82a8a127695623fb1399f6aa94f2c2e2608e..8d58f5a82043d772e858c60982770d245169839c 100644
--- a/pages/test/test-er/test-er.vue
+++ b/pages/test/test-er/test-er.vue
@@ -1,7 +1,17 @@
-
-
+
+
+
+
@@ -18,7 +28,60 @@ export default {
y: 0,
scale: 2
},
- title:"实体"
+ tables: [
+ {
+ key: 'CalendarEvent',
+ title: 'CalendarEvent',
+ columns: [
+ {
+ name: 'id',
+ info: '唯一主键',
+ type: 'BigInt'
+ },
+ {
+ name: 'name',
+ info: '说明',
+ type: 'String'
+ },
+ {
+ name: 'date',
+ info: '日期',
+ type: 'Date'
+ },
+ {
+ name: 'endtime',
+ info: '结束日期',
+ type: 'DateTime'
+ }
+ ]
+ },
+ {
+ key: 'CalendarEventAlert',
+ title: 'CalendarEventAlert',
+ columns: [
+ {
+ name: 'id',
+ info: '唯一主键',
+ type: 'BigInt'
+ },
+ {
+ name: 'name',
+ info: '说明',
+ type: 'String'
+ },
+ {
+ name: 'date',
+ info: '日期',
+ type: 'Date'
+ },
+ {
+ name: 'endtime',
+ info: '结束日期',
+ type: 'DateTime'
+ }
+ ]
+ }
+ ]
};
},
methods: {
@@ -42,11 +105,11 @@ export default {
onScale: function(e) {
this.old.scale = e.detail.scale;
},
- onStart: function(type, x, y) {
- console.log(type + ':' + x + ':' + y);
+ onStart: function(key, type, x, y) {
+ console.log(key + ':' + type + ':' + x + ':' + y);
},
- onEnd: function(type, x, y) {
- console.log(type + ':' + x + ':' + y);
+ onEnd: function(key, type, x, y) {
+ console.log(key + ':' + type + ':' + x + ':' + y);
}
}
};