|
|
@ -117,19 +117,19 @@ |
|
|
|
projectOptions.value = res; |
|
|
|
formSchemas[0].componentProps.options = projectOptions.value; |
|
|
|
}; |
|
|
|
const faultLocationOptions = ref([]); |
|
|
|
const getFaultLocationOptions = async () => { |
|
|
|
const res = await queryPointNames(); |
|
|
|
faultLocationOptions.value = res; |
|
|
|
faultLocationOptions.value.forEach((i: any) => { |
|
|
|
i.value = i.pointName; |
|
|
|
i.label = i.pointName; |
|
|
|
}); |
|
|
|
formSchemas[2].componentProps.options = faultLocationOptions.value; |
|
|
|
}; |
|
|
|
// const faultLocationOptions = ref([]); |
|
|
|
// const getFaultLocationOptions = async () => { |
|
|
|
// const res = await queryPointNames(); |
|
|
|
// faultLocationOptions.value = res; |
|
|
|
// faultLocationOptions.value.forEach((i: any) => { |
|
|
|
// i.value = i.pointName; |
|
|
|
// i.label = i.pointName; |
|
|
|
// }); |
|
|
|
// formSchemas[2].componentProps.options = faultLocationOptions.value; |
|
|
|
// }; |
|
|
|
const getOptions = () => { |
|
|
|
getProjectOptions(); |
|
|
|
getFaultLocationOptions(); |
|
|
|
// getFaultLocationOptions(); |
|
|
|
}; |
|
|
|
getOptions(); |
|
|
|
onActivated(() => { |
|
|
|