Browse Source

批次回显问题

hella_online_20240829
zhang_li 5 months ago
parent
commit
1b9b8cdc7b
  1. 22
      src/components/TableForm/src/TableForm.vue

22
src/components/TableForm/src/TableForm.vue

@ -91,7 +91,7 @@
"
:disabled="disabledInput(headerItem, row)"
style="flex: 1"
@blur.stop="inputStringBlur(headerItem, row[headerItem.field], row, index)"
@blur="inputStringBlur(headerItem, row[headerItem.field], row, index)"
/>
<Icon
icon="ep:circle-close"
@ -101,12 +101,12 @@
headerItem?.tableForm?.clearable
"
style="position: absolute; right: 50px; cursor: pointer"
@click.stop="clearInput(headerItem.field, row, index)"
@click="clearInput(headerItem.field, row, index)"
/>
<el-button
:key="headerItem.field + $index + 'button'"
v-if="headerItem?.tableForm?.isInpuFocusShow"
@click.stop="inpuFocus(headerItem, row, index)"
@click="inpuFocus(headerItem, row, index)"
><Icon icon="ep:search" size="14"
/></el-button>
</el-form-item>
@ -123,9 +123,7 @@
:placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label"
:disabled="itemIsDisabled(headerItem, row)"
style="width: 100%"
@input.stop="row[headerItem.field] = row[headerItem.field].replace(/[^\d\.-]/g, '')"
@click.stop=""
@focus.stop=""
@input="row[headerItem.field] = row[headerItem.field].replace(/[^\d\.-]/g, '')"
/>
</el-form-item>
<!-- 数字输入框 -->
@ -141,7 +139,7 @@
:min="headerItem?.tableForm?.min"
:precision="headerItem?.tableForm?.precision"
:disabled="itemIsDisabled(headerItem, row)"
@change.stop="
@change="
(e) => {
inputNumberChange(headerItem.field, $index, row, e)
}
@ -164,8 +162,8 @@
:allow-create="headerItem?.tableForm.allowCreate"
style="width: 100%"
:placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label"
@change.stop="formSelectChange(headerItem.field, $event, row)"
@blur.stop="tableFormSelectOnBlur(headerItem.field, $event, row, $index)"
@change="formSelectChange(headerItem.field, $event, row)"
@blur="tableFormSelectOnBlur(headerItem.field, $event, row, $index)"
>
<el-option
v-for="op in initSelectOptions(headerItem)"
@ -194,8 +192,8 @@
:allow-create="headerItem?.tableForm.allowCreate"
style="width: 100%"
:placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label"
@change.stop="formSelectChange(headerItem.field, $event, row)"
@blur.stop="tableFormSelectOnBlur(headerItem.field, $event, row, $index)"
@change="formSelectChange(headerItem.field, $event, row)"
@blur="tableFormSelectOnBlur(headerItem.field, $event, row, $index)"
>
<el-option-group
v-for="group in initSelectOptions(headerItem)"
@ -235,7 +233,7 @@
:placeholder="headerItem?.tableForm?.placeholder || '选择日期'"
:format="headerItem?.tableForm?.format || 'YYYY-MM-DD'"
:value-format="headerItem?.tableForm?.valueFormat || 'YYYY-MM-DD'"
@change.stop="formFormDateChange(headerItem.field, $event, row, $index)"
@change="formFormDateChange(headerItem.field, $event, row, $index)"
/>
</el-form-item>
<!-- 日期时间选择器 -->

Loading…
Cancel
Save