|
|
@ -115,18 +115,22 @@ const updataTableColumns = (val) => { |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(() => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
if(formField == 'locationGroupCode') { |
|
|
|
row['locationGroupCode'] = val[0]['code'] |
|
|
|
}else if(formField == 'locationCode') { |
|
|
|
if(formField == 'locationCode') { |
|
|
|
row['locationCode'] = val[0]['code'] |
|
|
|
}else{ |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
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) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
// 查询页面返回——详情 |
|
|
|