imatrix-ui 2.7.15 → 2.7.16

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": "imatrix-ui",
3
- "version": "2.7.15",
3
+ "version": "2.7.16",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -433,13 +433,11 @@ function analysisAdditionalParameterWithMap(additionalParamMap) {
433
433
  }
434
434
 
435
435
  export function updateWithPageValue(sourceModel, sourceTableName, jumpPageSetting, entity, targetTableName, isNeedReplaceFieldName) {
436
- console.log('updateWithPageValue--sourceModel=(', sourceModel, '), sourceTableName=(', sourceTableName, '), jumpPageSetting=(', jumpPageSetting, '), entity=(', entity, '), targetTableName=(', targetTableName, '), isNeedReplaceFieldName=(', isNeedReplaceFieldName, ')')
437
436
  if (sourceModel && sourceModel !== null && entity && entity !== null && jumpPageSetting && jumpPageSetting !== null && jumpPageSetting.valueMappings) {
438
437
  const valueMappings = jumpPageSetting.valueMappings
439
438
  valueMappings.forEach((valueMapping) => {
440
439
  let sourceField = valueMapping.source
441
440
  let targetValue = getEntityFieldValue(sourceModel, sourceField)
442
- console.log('updateWithPageValue--sourceField=', sourceField, 'targetValue=', targetValue)
443
441
  // sql查询时,会把点“.”改为两个下划线"__"
444
442
  const replaceDot = '__'
445
443
  if (targetValue === undefined || targetValue === null) {
@@ -450,20 +448,15 @@ export function updateWithPageValue(sourceModel, sourceTableName, jumpPageSettin
450
448
  }
451
449
  // 重新获得字段值
452
450
  targetValue = getEntityFieldValue(sourceModel, sourceField)
453
- console.log('updateWithPageValue--sourceField2=', sourceField, 'targetValue2=', targetValue)
454
451
  }
455
452
 
456
453
  let targetField = valueMapping.target
457
- console.log('updateWithPageValue--targetField=', targetField)
458
454
  if (isNeedReplaceFieldName !== undefined && isNeedReplaceFieldName === true && targetField && targetTableName && targetField.indexOf('.') > 0) {
459
455
  // 表示包括点“.”,需要把两个下划线"__"重新改为点“.”,否则会导致查询报500错误
460
456
  targetField = targetTableName + replaceDot + targetField
461
457
  }
462
- console.log('updateWithPageValue--targetField2=', targetField)
463
458
  setEntityFieldValue(entity, targetField, targetValue)
464
- console.log('updateWithPageValue--更新后的entity=', entity)
465
459
  })
466
- console.log('updateWithPageValue--更新后的entity2=', entity)
467
460
  }
468
461
  }
469
462