|
|
@ -552,20 +552,20 @@ const dutyPersonList: any = ref([]); |
|
|
|
const emits = defineEmits(["getResInfo"]); |
|
|
|
function initBaseInfo() { |
|
|
|
getReservoirBaseDetailData(props.resCode).then((res) => { |
|
|
|
if (res?.data) { |
|
|
|
if (res) { |
|
|
|
form.value = { |
|
|
|
...form.value, |
|
|
|
...res.data, |
|
|
|
...res, |
|
|
|
}; |
|
|
|
emits("getResInfo", res.data); |
|
|
|
emits("getResInfo", res); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
function initRsppInfo() { |
|
|
|
getReservoirRsppDetailData(props.resCode).then((res) => { |
|
|
|
if (res?.data) { |
|
|
|
Object.keys(res.data).forEach((key) => { |
|
|
|
form.value[key] = res.data[key]; |
|
|
|
if (res) { |
|
|
|
Object.keys(res).forEach((key) => { |
|
|
|
form.value[key] = res[key]; |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|