|
@@ -51,8 +51,9 @@ export default {
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
getData() {
|
|
|
+ const origin = Location.origin
|
|
|
Axios.get(
|
|
|
- `${window.location.origin}/${this.sys}/--database-doc--/table-info?schema=${
|
|
|
+ `/${this.sys}/--database-doc--/table-info?schema=${
|
|
|
this.schema
|
|
|
}&table=${this.table}`,
|
|
|
{}
|
|
@@ -88,7 +89,7 @@ import javax.persistence.Table
|
|
|
open class ${table} : BaseInfo(),Comparator<${table}> {
|
|
|
`
|
|
|
);
|
|
|
- this.tableData.forEach(element => {
|
|
|
+ this.tableData.ColumnList.forEach(element => {
|
|
|
strBuild.append(` /** ${element.Description} */`);
|
|
|
if (element.Nullable == "YES") {
|
|
|
strBuild.append(
|
|
@@ -262,7 +263,7 @@ open class ${className} {
|
|
|
},
|
|
|
// 获取路径名称以及路径type
|
|
|
getUrlData() {
|
|
|
- const dataArr = window.location.href.split("#")[1].split("-");
|
|
|
+ const dataArr = Location.href.split("#")[1].split("-");
|
|
|
let obj = {};
|
|
|
if (dataArr.length == 2) {
|
|
|
obj = {
|