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
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ap-dev",
3
- "version": "1.2.23",
3
+ "version": "1.2.24",
4
4
  "description": "===== ap-dev =====",
5
5
  "author": "xiexinbin",
6
6
  "email": "876818817@qq.com",