ap-dev 1.2.23 → 1.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -359,9 +359,22 @@ export default {
|
|
|
359
359
|
},
|
|
360
360
|
},
|
|
361
361
|
created() {
|
|
362
|
+
this.getSchema();
|
|
362
363
|
this.loadTreeData();
|
|
363
364
|
},
|
|
364
365
|
methods: {
|
|
366
|
+
getSchema() {
|
|
367
|
+
this.$request({
|
|
368
|
+
url: '/apd/db/DevDbTable/getSchema',
|
|
369
|
+
method: 'post',
|
|
370
|
+
data: {
|
|
371
|
+
sourceId: this.userConfig.fdSourceId
|
|
372
|
+
}
|
|
373
|
+
}).then(response => {
|
|
374
|
+
this.tableSchema = response.data;
|
|
375
|
+
this.headerName = "[" + response.data + "] - 表";
|
|
376
|
+
})
|
|
377
|
+
},
|
|
365
378
|
// 左侧树:加载数据
|
|
366
379
|
loadTreeData() {
|
|
367
380
|
this.loadingTreeFlag = true
|
|
@@ -377,10 +390,6 @@ export default {
|
|
|
377
390
|
parentKey: "fdParentId",
|
|
378
391
|
childrenKey: "children",
|
|
379
392
|
});
|
|
380
|
-
if (this.typeTreeList.length > 0) {
|
|
381
|
-
this.tableSchema = this.typeTreeList[0].tableSchema;
|
|
382
|
-
this.headerName = "[" + this.typeTreeList[0].tableSchema + "] - 表";
|
|
383
|
-
}
|
|
384
393
|
}).finally(() => {
|
|
385
394
|
this.loadingTreeFlag = false
|
|
386
395
|
})
|