agilebuilder-ui 1.0.87-temp5 → 1.0.87-temp7

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": "agilebuilder-ui",
3
- "version": "1.0.87-temp5",
3
+ "version": "1.0.87-temp7",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -686,19 +686,22 @@ export default {
686
686
  // 找出名称后赋值给当前字段
687
687
  const filterValue = temp.optionItems.find((item) => item[temp.valueAttribute] === beforeColumnValue)
688
688
  if (filterValue) {
689
- beforeColumnValue = filterValue[selectDataKey]
689
+ beforeColumnValue = filterValue[temp.valueAttribute]
690
690
  }
691
691
  }
692
692
  param.row[this.column.prop] = beforeColumnValue
693
693
  } else {
694
- if (beforeColumnValue && selectDataKey !== temp.valueAttribute && Array.isArray(beforeColumnValue)) {
694
+ if (beforeColumnValue && selectDataKey !== temp.valueAttribute) {
695
+ if (typeof beforeColumnValue === 'string') {
696
+ beforeColumnValue = beforeColumnValue.split(',')
697
+ }
695
698
  // 解决当前字段不是动态数据源选项值所映射的字段的问题 例如当前字段是工厂名称, 动态数据源选项值是工厂编码
696
699
  const t = []
697
700
  beforeColumnValue.forEach((selectItem) => {
698
701
  if (selectDataKey !== temp.valueAttribute) {
699
702
  const filterValue = temp.optionItems.find((option) => option[temp.valueAttribute] === selectItem)
700
703
  if (filterValue) {
701
- t.push(filterValue[selectDataKey])
704
+ t.push(filterValue[temp.valueAttribute])
702
705
  }
703
706
  }
704
707
  })