imeik-bizui 2.1.4 → 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
@@ -178,6 +178,8 @@ export default {
178
178
  getList() {
179
179
  this.loading = true
180
180
  const data = {
181
+ page: this.currentPage,
182
+ limit: this.pageSize,
181
183
  accountUid: this.formProps.applicationApplyCustomer?.accountUid,
182
184
  customerUniqueCode: this.formProps.applicationApplyCustomer?.customerUniqueCode,
183
185
  applyType: this.formProps.applyTypeInfo?.applyType,
@@ -190,8 +192,8 @@ export default {
190
192
  getMaterialList(data)
191
193
  .then((res) => {
192
194
  if (res.code === 200) {
193
- this.tableConfig.data = res.data
194
- this.total = res.data.total
195
+ this.tableConfig.data = res.data.list
196
+ this.total = res.data.totalCount
195
197
  this.loading = false
196
198
  } else {
197
199
  this.loading = false
@@ -258,6 +260,7 @@ export default {
258
260
  this.getList()
259
261
  },
260
262
  search() {
263
+ this.currentPage = 1
261
264
  this.getList()
262
265
  }
263
266
  }