This commit is contained in:
changjinpeng
2022-03-08 11:57:19 +08:00
parent 7f0b19f3f0
commit f01d0f39b2
3 changed files with 11 additions and 8 deletions

View File

@@ -402,12 +402,14 @@ export default {
},
onPickerChange(e) {
console.log(e)
const index = e.target.dataset.index
const i = e.target.dataset.i
const dict = e.target.dataset.dict
const value = e.detail.value
// const value = e.detail.value
// const key = this.$dict.getLabel(dict, value)
const key = this.$dict.getDict(dict)[value].dictName
const value = this.$dict.getDict(dict)[0].dictValue
const key = this.$dict.getDict(dict)[0].dictName
this.$set(this.tableForm[index][i], 'fieldValue', value)
this.$set(this.tableForm[index][i], 'fieldDictName', key)