|
|
@ -57,6 +57,7 @@ |
|
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
|
:isShowReduceButtonSelection="true" |
|
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" |
|
|
|
@buttonOperationClick="buttonOperationClick" |
|
|
@ -255,6 +256,16 @@ const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
const clearSearchInput = (field)=>{ |
|
|
|
console.log('field',field) |
|
|
|
if('workshopCode' == field){ |
|
|
|
//车间代码 |
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
team: '', |
|
|
|
}) |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(() => { |
|
|
@ -301,6 +312,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
if('workshopCode' == formField){ |
|
|
|
//车间代码 |
|
|
|
setV['team'] = '' |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
} |
|
|
|
}) |
|
|
|