|
@ -115,18 +115,22 @@ const updataTableColumns = (val) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
if(formField == 'locationGroupCode') { |
|
|
if(formField == 'locationCode') { |
|
|
row['locationGroupCode'] = val[0]['code'] |
|
|
|
|
|
}else if(formField == 'locationCode') { |
|
|
|
|
|
row['locationCode'] = val[0]['code'] |
|
|
row['locationCode'] = val[0]['code'] |
|
|
}else{ |
|
|
}else{ |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
} |
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
if(formField == 'areaCode') { |
|
|
|
|
|
console.log(val[0]); |
|
|
|
|
|
setV['areaCode'] = val[0]['code'] |
|
|
|
|
|
setV['areaType'] = val[0]['type'] |
|
|
|
|
|
}else{ |
|
|
|
|
|
setV[formField] = setV[0][searchField] |
|
|
|
|
|
} |
|
|
|
|
|
formRef.setValues(setV) |
|
|
} |
|
|
} |
|
|
const setV = {} |
|
|
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
|
|
formRef.setValues(setV) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
// 查询页面返回——详情 |
|
|
// 查询页面返回——详情 |
|
|