atr-components 0.2.204 → 0.2.206

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.
@@ -4081,7 +4081,9 @@ class AtrFormComponent {
4081
4081
  list.forEach((dic) => {
4082
4082
  if (dic.value == value[index]) {
4083
4083
  value[index] = dic.nzValueProperty;
4084
- value = this.getCascaderDefaultValue(dic.children, index + 1, value);
4084
+ if (dic.children) {
4085
+ value = this.getCascaderDefaultValue(dic.children, index + 1, value);
4086
+ }
4085
4087
  return;
4086
4088
  }
4087
4089
  });
@@ -4118,7 +4120,7 @@ class AtrFormComponent {
4118
4120
  }
4119
4121
  let selectUrl = item.selectUrl;
4120
4122
  if (selectUrl.host == 'oss') {
4121
- this.httpService.getOss(selectUrl).subscribe(res => {
4123
+ this.httpService.getOss(selectUrl.url).subscribe(res => {
4122
4124
  item.dictList = this.conv(JSON.parse(res), keys);
4123
4125
  if (value && value.length > 0) {
4124
4126
  value = this.getCascaderDefaultValue(item.dictList, 0, value);
@@ -4127,7 +4129,7 @@ class AtrFormComponent {
4127
4129
  });
4128
4130
  }
4129
4131
  else {
4130
- this.httpService.post(selectUrl, {}, ToolsUtil.getHttpOptions()).subscribe(res => {
4132
+ this.httpService.post(selectUrl.url, {}, ToolsUtil.getHttpOptions()).subscribe(res => {
4131
4133
  item.dictList = this.conv(res.data, keys);
4132
4134
  if (value && value.length > 0) {
4133
4135
  value = this.getCascaderDefaultValue(item.dictList, 0, value);