t20-common-lib 0.12.0 → 0.12.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "t20-common-lib",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "T20",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -456,6 +456,7 @@ export default {
456
456
  },
457
457
  async getCommonConfig(resolve) {
458
458
  let res = await getCommonConfig();
459
+ res = res.data
459
460
  if (res && res.length > 0) {
460
461
  res.forEach((r) => {
461
462
  if (r.configGroupName.includes("单位树")) {
@@ -541,6 +542,7 @@ export default {
541
542
  }
542
543
  request({ url: this.url + str, method: "GET", cache:true, headers }).then((res) => {
543
544
  this.loading = false;
545
+ res = res.data
544
546
  let data = res.fundTreeVoList;
545
547
  // if (code == 200) {
546
548
  if (data && data.length > 0) {
@@ -673,7 +675,7 @@ export default {
673
675
  this.selectData = [];
674
676
  this.checkD = false;
675
677
  this.$refs.tree.setCheckedNodes([]);
676
- this.getListData("search");
678
+ this.getListData("all");
677
679
  } else {
678
680
  //搜索取消所有选中状态
679
681
  this.checkD = false;
@@ -1098,6 +1100,7 @@ export default {
1098
1100
  data: params,
1099
1101
  headers, cache:true,
1100
1102
  }).then((res) => {
1103
+ res = res.data
1101
1104
  console.log(6666);
1102
1105
  this.loading = false;
1103
1106
  if (res.records && res.records.length > 0) {
@@ -361,6 +361,7 @@ export default {
361
361
  },
362
362
  async getCommonConfig(resolve) {
363
363
  let res = await getCommonConfig();
364
+ res = res.data
364
365
  if (res && res.length > 0) {
365
366
  res.forEach((r) => {
366
367
  if (r.configGroupName.includes("单位树")) {
@@ -497,6 +498,7 @@ export default {
497
498
  cache: true,
498
499
  headers,
499
500
  }).then((res) => {
501
+ res = res.data
500
502
  let data = res.fundTreeVoList;
501
503
  this.loading = false;
502
504
  if (data && data.length > 0) {
@@ -1016,6 +1018,7 @@ export default {
1016
1018
  headers,
1017
1019
  cache: true,
1018
1020
  });
1021
+ res = res.data
1019
1022
  this.loading = false;
1020
1023
  if (res.records && res.records.length > 0) {
1021
1024
  res.records.forEach((r) => {