agilebuilder-ui 1.0.87-temp7 → 1.0.87-temp8

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-temp7",
3
+ "version": "1.0.87-temp8",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -686,12 +686,12 @@ export default {
686
686
  // 找出名称后赋值给当前字段
687
687
  const filterValue = temp.optionItems.find((item) => item[temp.valueAttribute] === beforeColumnValue)
688
688
  if (filterValue) {
689
- beforeColumnValue = filterValue[temp.valueAttribute]
689
+ beforeColumnValue = filterValue[selectDataKey]
690
690
  }
691
691
  }
692
692
  param.row[this.column.prop] = beforeColumnValue
693
693
  } else {
694
- if (beforeColumnValue && selectDataKey !== temp.valueAttribute) {
694
+ if (beforeColumnValue && selectDataKey !== temp.valueAttribute && Array.isArray(beforeColumnValue)) {
695
695
  if (typeof beforeColumnValue === 'string') {
696
696
  beforeColumnValue = beforeColumnValue.split(',')
697
697
  }
@@ -700,11 +700,13 @@ export default {
700
700
  beforeColumnValue.forEach((selectItem) => {
701
701
  if (selectDataKey !== temp.valueAttribute) {
702
702
  const filterValue = temp.optionItems.find((option) => option[temp.valueAttribute] === selectItem)
703
+ debugger
703
704
  if (filterValue) {
704
- t.push(filterValue[temp.valueAttribute])
705
+ t.push(filterValue[selectDataKey])
705
706
  }
706
707
  }
707
708
  })
709
+ debugger
708
710
  if (t.length > 0) {
709
711
  beforeColumnValue = t
710
712
  param.row[this.column.prop] = beforeColumnValue.join(',')