|
|
@ -54,7 +54,7 @@ |
|
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" |
|
|
|
@tableFormSelectOnBlur="onBlur" |
|
|
|
@tableFormSelectOnBlur="tableFormSelectOnBlur" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
@ -71,6 +71,7 @@ |
|
|
|
:Echo="Echo" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:detailValidate="detailValidate" |
|
|
|
@onBlur="onBlur" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
@ -315,10 +316,20 @@ const handleHandle = async (id: number) => { |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
|
|
|
|
const onBlur = (field, val, row, index) => { |
|
|
|
const onBlur = (field, e) => { |
|
|
|
console.log('字段', field) |
|
|
|
console.log('失焦后值', e.target.value) |
|
|
|
if (field == 'reason') { |
|
|
|
detailRef.value.formRef.formRef.formModel[field] = e.target.value |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const tableFormSelectOnBlur = (field, val, row, index) => { |
|
|
|
// console.log('字段', field) |
|
|
|
// console.log('失焦后值', val.target.value) |
|
|
|
tableData.value[index][field] = val.target.value |
|
|
|
if (field == 'reason') { |
|
|
|
tableData.value[index][field] = val.target.value |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|