@bytenew/bn-applet-ui 1.1.37 → 1.1.39

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/common.scss CHANGED
@@ -964,11 +964,11 @@ $colors: (
964
964
  color: #52C41A !important;
965
965
  }
966
966
 
967
- .bnIcon-appFolder {
967
+ .icon-folder3 {
968
968
  color: #FAAD14 !important;
969
969
  }
970
970
 
971
- .bnIcon-appFolder-close {
971
+ .icon-folder3-close {
972
972
  color: #FAAD14 !important;
973
973
  }
974
974
 
@@ -21572,6 +21572,8 @@ var es_array_sort = __webpack_require__(6910);
21572
21572
 
21573
21573
 
21574
21574
 
21575
+
21576
+
21575
21577
 
21576
21578
 
21577
21579
 
@@ -21639,6 +21641,13 @@ function parseArea(list, init) {
21639
21641
  });
21640
21642
  }
21641
21643
 
21644
+ /**
21645
+ * 是否为四级地址配置(省/市/区/街道)
21646
+ */
21647
+ function isFourAddressLevel(sourceData) {
21648
+ return !!(sourceData && sourceData.extraInfo && sourceData.extraInfo.isFourAddress == 1);
21649
+ }
21650
+
21642
21651
  /**
21643
21652
  * 解析地址详情(内部方法,需先调用 parseArea 初始化地址库)
21644
21653
  * @param address 任意地址字符串
@@ -21753,6 +21762,14 @@ function parseAddressDetail(address, sourceData) {
21753
21762
  parse.area = detail.area || '';
21754
21763
  parse.street = detail.street || '';
21755
21764
  parse.addr = detail.addr || '';
21765
+
21766
+ // 三级地址:街道合并到详细地址,不单独识别
21767
+ if (!isFourAddressLevel(sourceData)) {
21768
+ if (parse.street) {
21769
+ parse.addr = "".concat(parse.street).concat(parse.addr || '');
21770
+ parse.street = '';
21771
+ }
21772
+ }
21756
21773
  if (presetName) {
21757
21774
  parse.name = presetName;
21758
21775
  if (parse.addr) {
@@ -21974,8 +21991,8 @@ function detail_parse_forward(address, sourceData) {
21974
21991
  var afterArea = remaining.substring(_idx + areaItem.areaName.length);
21975
21992
  console.log('匹配到area:', areaItem.areaName, '城市:', areaItem.cityName);
21976
21993
 
21977
- // 尝试匹配街道
21978
- if (areaItem.cityData.street && areaItem.cityData.street[areaItem.areaName]) {
21994
+ // 四级地址才单独匹配街道,三级地址街道保留在详细地址中
21995
+ if (isFourAddressLevel(sourceData) && areaItem.cityData.street && areaItem.cityData.street[areaItem.areaName]) {
21979
21996
  var streets = areaItem.cityData.street[areaItem.areaName];
21980
21997
  if (streets && streets.length > 0) {
21981
21998
  var sortedStreets = streets.filter(function (s) {
@@ -22479,13 +22496,10 @@ var ruleTypeMap = {
22479
22496
  }, {
22480
22497
  title: '不包含',
22481
22498
  id: '4'
22482
- }, {
22483
- title: '包含任一项',
22484
- id: '5'
22485
- }, {
22486
- title: '不包含任一项',
22487
- id: '6'
22488
- }, {
22499
+ },
22500
+ // {title: '包含任一项', id: '5'},
22501
+ // {title: '不包含任一项', id: '6'},
22502
+ {
22489
22503
  title: '为空',
22490
22504
  id: '9'
22491
22505
  }, {
@@ -23403,11 +23417,11 @@ function insertText(dom, value) {
23403
23417
  }
23404
23418
 
23405
23419
  /**
23406
- * 格式化查看、高级筛选的组件信息
23420
+ * 格式化规则设置中单个组件信息
23407
23421
  * @param Object component 组件信息
23408
23422
  * */
23409
23423
  function tidyRuleComponent(component) {
23410
- var _ruleTypeMap$componen;
23424
+ var _ruleTypeMap$componen, _ruleTypeMap$componen2;
23411
23425
  // 组件必须可见
23412
23426
  if (component.extraInfo.listShow != 1) {
23413
23427
  return null;
@@ -23423,6 +23437,7 @@ function tidyRuleComponent(component) {
23423
23437
  insideDataSourceInfo: component.insideDataSourceInfo,
23424
23438
  outDataSourceInfo: component.outDataSourceInfo || [],
23425
23439
  matchType: (_ruleTypeMap$componen = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen === void 0 ? void 0 : _ruleTypeMap$componen.id,
23440
+ searchType: (_ruleTypeMap$componen2 = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen2 === void 0 ? void 0 : _ruleTypeMap$componen2.id,
23426
23441
  parentCode: component.parent ? component.parent.columnCode : '',
23427
23442
  parentId: component.parent ? component.parent.id : '',
23428
23443
  parentBehaviorType: component.parent ? component.parent.behaviorType : ''
@@ -23479,7 +23494,7 @@ function tidyRuleComponent(component) {
23479
23494
  {
23480
23495
  data.value = '';
23481
23496
  //筛选时,值是空对象
23482
- if (data.matchType) {
23497
+ if (data.matchType == '8') {
23483
23498
  data.value = {
23484
23499
  start: '',
23485
23500
  end: ''