|
@@ -4,7 +4,11 @@ import saveAs from "@/util/file-serve";
|
|
|
import { openLoading, closeLoading } from "@/helper/loading";
|
|
|
import { dateFormat } from "@/util";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
-import { downloadPointsXLSL1, downloadPointsXLSL2 } from "@/util/pc4xlsl";
|
|
|
+import {
|
|
|
+ downloadPointsXLSL,
|
|
|
+ downloadPointsXLSL1,
|
|
|
+ downloadPointsXLSL2,
|
|
|
+} from "@/util/pc4xlsl";
|
|
|
import { noValidPoint } from "./install";
|
|
|
|
|
|
export const exportFile = async (
|
|
@@ -47,11 +51,11 @@ export const exportFile = async (
|
|
|
version
|
|
|
);
|
|
|
} else {
|
|
|
- // await downloadPointsXLSL(
|
|
|
- // points.map((point) => point.pos),
|
|
|
- // points.map((point) => ({ title: point.name, desc: point.name })),
|
|
|
- // "test"
|
|
|
- // );
|
|
|
+ await downloadPointsXLSL(
|
|
|
+ points.map((point) => point.pos),
|
|
|
+ points.map((point) => ({ title: point.name, desc: point.name })),
|
|
|
+ "test"
|
|
|
+ );
|
|
|
}
|
|
|
ElMessage.success("文件导出成功");
|
|
|
};
|