|
@@ -44,10 +44,8 @@ export default {
|
|
|
components: {},
|
|
|
created: function() {
|
|
|
this.getData();
|
|
|
- // this.getUrlData();
|
|
|
},
|
|
|
mounted: function() {
|
|
|
- // alert(this.schema);
|
|
|
},
|
|
|
props: ["sys", "schema", "table"],
|
|
|
computed: {},
|
|
@@ -112,6 +110,7 @@ open class ${table} : BaseInfo(),Comparator<${table}> {
|
|
|
strBuild.append(`} // Class ${table}`);
|
|
|
this.download(`${table}.kt`, strBuild.toString());
|
|
|
},
|
|
|
+
|
|
|
//生成接口类
|
|
|
genControler() {
|
|
|
this.getUrlData();
|
|
@@ -222,7 +221,6 @@ open class ${className} {
|
|
|
} // Function count()
|
|
|
`);
|
|
|
strBuild.append(`} // Class ${className}`);
|
|
|
- console.log("className", className);
|
|
|
// this.download(`${className}.kt`, strBuild.toString());
|
|
|
},
|
|
|
// 数据包类型到实体类的转换
|
|
@@ -246,7 +244,7 @@ open class ${className} {
|
|
|
return "String";
|
|
|
}
|
|
|
},
|
|
|
- //转驼峰
|
|
|
+ //转大驼峰
|
|
|
toHump(str) {
|
|
|
var arr = str.split("_");
|
|
|
for (var i = 0; i < arr.length; i++) {
|