imeik-bizui 2.1.5 → 2.1.6

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.
@@ -125,7 +125,7 @@ export default {
125
125
  const list = []
126
126
  const vals = [].concat(this.myValue) // 单选的时候也转成数组
127
127
  vals.map(i => {
128
- list.push(getLabelByValue(this.options, i, { labelKey: 'name', valueKey: 'objectCode' }))
128
+ list.push(getLabelByValue(this.options, i, { labelKey: 'name', valueKey: this.prop.value }))
129
129
  return i
130
130
  })
131
131
  return list.join(',')
@@ -178,7 +178,11 @@ export default {
178
178
  ...this.extra
179
179
  }
180
180
  if (!this.selectName && this.value) {
181
- params.objectCodeList = Array.isArray(this.value) ? this.value : [this.value]
181
+ if (this.prop.value === 'objectCode') {
182
+ params.objectCodeList = Array.isArray(this.value) ? this.value : [this.value]
183
+ } else if (this.prop.value === 'employeeNo') {
184
+ params.employeeNos = Array.isArray(this.value) ? this.value : [this.value]
185
+ }
182
186
  params.selectStatus = !this.value || !this.value.length ? '0' : '1'
183
187
  }
184
188
  this.loading = true