|
|
@ -57,16 +57,16 @@ |
|
|
|
<!-- 字符串输入框 --> |
|
|
|
<el-form-item |
|
|
|
v-if="!headerItem?.tableForm?.type || headerItem?.tableForm?.type == 'InputString'" |
|
|
|
:prop="headerItem.field"> |
|
|
|
:prop="headerItem.field" style="display: flex;align-items: center;"> |
|
|
|
<el-input |
|
|
|
v-model="row[headerItem.field]" |
|
|
|
clearable |
|
|
|
:type="headerItem?.tableForm?.inputType" |
|
|
|
:placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label" |
|
|
|
:disabled="itemIsDisabled(headerItem, row)" |
|
|
|
style="width: 100%;" |
|
|
|
@click="inpuFocus(headerItem,row,index)" |
|
|
|
:disabled="headerItem?.tableForm?.isSearchList ? true : false" |
|
|
|
style="flex:1" |
|
|
|
/> |
|
|
|
<el-button v-if="headerItem?.tableForm?.isSearchList" @click="inpuFocus(headerItem,row,index)"><Icon icon="ep:search" size="14"/></el-button> |
|
|
|
</el-form-item> |
|
|
|
<!-- 金额输入框 --> |
|
|
|
<el-form-item |
|
|
@ -389,7 +389,7 @@ const handleAddTable = () => { |
|
|
|
} |
|
|
|
// 输入框聚焦 |
|
|
|
const inpuFocus = (headerItem, row, index)=>{ |
|
|
|
if(headerItem?.tableForm?.isInpuFocusShow){ |
|
|
|
if(headerItem?.tableForm?.isSearchList){ |
|
|
|
emit('inpuFocus', headerItem, row, index) |
|
|
|
} |
|
|
|
} |
|
|
|