|
@@ -167,19 +167,20 @@ const exportFile = async () => {
|
|
.map((option: any) => option.raw);
|
|
.map((option: any) => option.raw);
|
|
if (!points.length) {
|
|
if (!points.length) {
|
|
ElMessage.error("请选择要导出的点位");
|
|
ElMessage.error("请选择要导出的点位");
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
points = points.filter((point) => !!point.pos);
|
|
points = points.filter((point) => !!point.pos);
|
|
|
|
|
|
if (points.length === 0) {
|
|
if (points.length === 0) {
|
|
ElMessage.error("当前选择点位没有gis信息");
|
|
ElMessage.error("当前选择点位没有gis信息");
|
|
- } else {
|
|
|
|
- await downloadPointsXLSL(
|
|
|
|
- points.map((point) => point.pos),
|
|
|
|
- points.map((point) => ({ title: point.name, desc: point.name })),
|
|
|
|
- "test"
|
|
|
|
- );
|
|
|
|
- ElMessage.success("文件导出成功");
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
+ await downloadPointsXLSL(
|
|
|
|
+ points.map((point) => point.pos),
|
|
|
|
+ points.map((point) => ({ title: point.name, desc: point.name })),
|
|
|
|
+ "test"
|
|
|
|
+ );
|
|
|
|
+ ElMessage.success("文件导出成功");
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|