|
@ -114,7 +114,8 @@ |
|
|
:allow-create="headerItem?.tableForm.allowCreate" |
|
|
:allow-create="headerItem?.tableForm.allowCreate" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
:placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label" |
|
|
:placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label" |
|
|
@change="formSelectChange(headerItem.field, $event,row)"> |
|
|
@change="formSelectChange(headerItem.field, $event,row)" |
|
|
|
|
|
@blur="tableFormSelectOnBlur(headerItem.field, $event,row, $index)"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="op in initSelectOptions(headerItem)" |
|
|
v-for="op in initSelectOptions(headerItem)" |
|
|
:label="op.label" |
|
|
:label="op.label" |
|
@ -346,7 +347,8 @@ const emit = defineEmits([ |
|
|
'handleAddTable', |
|
|
'handleAddTable', |
|
|
'inpuFocus', |
|
|
'inpuFocus', |
|
|
'buttonOperationClick', |
|
|
'buttonOperationClick', |
|
|
'inputStringBlur' |
|
|
'inputStringBlur', |
|
|
|
|
|
'tableFormSelectOnBlur' |
|
|
]) |
|
|
]) |
|
|
// 获取下拉列表 | type = radio | type = select |
|
|
// 获取下拉列表 | type = radio | type = select |
|
|
const initSelectOptions = (item) => { |
|
|
const initSelectOptions = (item) => { |
|
@ -356,6 +358,10 @@ const initSelectOptions = (item) => { |
|
|
const formSelectChange = (field, val,row) => { |
|
|
const formSelectChange = (field, val,row) => { |
|
|
emit('formSelectChange', field, val,row) |
|
|
emit('formSelectChange', field, val,row) |
|
|
} |
|
|
} |
|
|
|
|
|
// 普通下拉失焦事件 |
|
|
|
|
|
const tableFormSelectOnBlur = (field, val,row,index) => { |
|
|
|
|
|
emit('tableFormSelectOnBlur', field, val,row,index) |
|
|
|
|
|
} |
|
|
// 数字输入-改变事件 |
|
|
// 数字输入-改变事件 |
|
|
const inputNumberChange = (field, index, row, e) => { |
|
|
const inputNumberChange = (field, index, row, e) => { |
|
|
emit('inputNumberChange', field, index, row, e) |
|
|
emit('inputNumberChange', field, index, row, e) |
|
|