@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.
@@ -21590,6 +21590,8 @@ var es_array_sort = __webpack_require__(6910);
21590
21590
 
21591
21591
 
21592
21592
 
21593
+
21594
+
21593
21595
 
21594
21596
 
21595
21597
 
@@ -21657,6 +21659,13 @@ function parseArea(list, init) {
21657
21659
  });
21658
21660
  }
21659
21661
 
21662
+ /**
21663
+ * 是否为四级地址配置(省/市/区/街道)
21664
+ */
21665
+ function isFourAddressLevel(sourceData) {
21666
+ return !!(sourceData && sourceData.extraInfo && sourceData.extraInfo.isFourAddress == 1);
21667
+ }
21668
+
21660
21669
  /**
21661
21670
  * 解析地址详情(内部方法,需先调用 parseArea 初始化地址库)
21662
21671
  * @param address 任意地址字符串
@@ -21771,6 +21780,14 @@ function parseAddressDetail(address, sourceData) {
21771
21780
  parse.area = detail.area || '';
21772
21781
  parse.street = detail.street || '';
21773
21782
  parse.addr = detail.addr || '';
21783
+
21784
+ // 三级地址:街道合并到详细地址,不单独识别
21785
+ if (!isFourAddressLevel(sourceData)) {
21786
+ if (parse.street) {
21787
+ parse.addr = "".concat(parse.street).concat(parse.addr || '');
21788
+ parse.street = '';
21789
+ }
21790
+ }
21774
21791
  if (presetName) {
21775
21792
  parse.name = presetName;
21776
21793
  if (parse.addr) {
@@ -21992,8 +22009,8 @@ function detail_parse_forward(address, sourceData) {
21992
22009
  var afterArea = remaining.substring(_idx + areaItem.areaName.length);
21993
22010
  console.log('匹配到area:', areaItem.areaName, '城市:', areaItem.cityName);
21994
22011
 
21995
- // 尝试匹配街道
21996
- if (areaItem.cityData.street && areaItem.cityData.street[areaItem.areaName]) {
22012
+ // 四级地址才单独匹配街道,三级地址街道保留在详细地址中
22013
+ if (isFourAddressLevel(sourceData) && areaItem.cityData.street && areaItem.cityData.street[areaItem.areaName]) {
21997
22014
  var streets = areaItem.cityData.street[areaItem.areaName];
21998
22015
  if (streets && streets.length > 0) {
21999
22016
  var sortedStreets = streets.filter(function (s) {
@@ -22497,13 +22514,10 @@ var ruleTypeMap = {
22497
22514
  }, {
22498
22515
  title: '不包含',
22499
22516
  id: '4'
22500
- }, {
22501
- title: '包含任一项',
22502
- id: '5'
22503
- }, {
22504
- title: '不包含任一项',
22505
- id: '6'
22506
- }, {
22517
+ },
22518
+ // {title: '包含任一项', id: '5'},
22519
+ // {title: '不包含任一项', id: '6'},
22520
+ {
22507
22521
  title: '为空',
22508
22522
  id: '9'
22509
22523
  }, {
@@ -23421,11 +23435,11 @@ function insertText(dom, value) {
23421
23435
  }
23422
23436
 
23423
23437
  /**
23424
- * 格式化查看、高级筛选的组件信息
23438
+ * 格式化规则设置中单个组件信息
23425
23439
  * @param Object component 组件信息
23426
23440
  * */
23427
23441
  function tidyRuleComponent(component) {
23428
- var _ruleTypeMap$componen;
23442
+ var _ruleTypeMap$componen, _ruleTypeMap$componen2;
23429
23443
  // 组件必须可见
23430
23444
  if (component.extraInfo.listShow != 1) {
23431
23445
  return null;
@@ -23441,6 +23455,7 @@ function tidyRuleComponent(component) {
23441
23455
  insideDataSourceInfo: component.insideDataSourceInfo,
23442
23456
  outDataSourceInfo: component.outDataSourceInfo || [],
23443
23457
  matchType: (_ruleTypeMap$componen = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen === void 0 ? void 0 : _ruleTypeMap$componen.id,
23458
+ searchType: (_ruleTypeMap$componen2 = ruleTypeMap[component.behaviorType][0]) === null || _ruleTypeMap$componen2 === void 0 ? void 0 : _ruleTypeMap$componen2.id,
23444
23459
  parentCode: component.parent ? component.parent.columnCode : '',
23445
23460
  parentId: component.parent ? component.parent.id : '',
23446
23461
  parentBehaviorType: component.parent ? component.parent.behaviorType : ''
@@ -23497,7 +23512,7 @@ function tidyRuleComponent(component) {
23497
23512
  {
23498
23513
  data.value = '';
23499
23514
  //筛选时,值是空对象
23500
- if (data.matchType) {
23515
+ if (data.matchType == '8') {
23501
23516
  data.value = {
23502
23517
  start: '',
23503
23518
  end: ''