|
@@ -36,7 +36,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import { ref, unref, watchEffect } from "vue";
|
|
|
|
|
|
+import { ref, watchEffect } from "vue";
|
|
import type { PolyDataType, DrawingDataType } from '@/request/drawing.ts'
|
|
import type { PolyDataType, DrawingDataType } from '@/request/drawing.ts'
|
|
import {
|
|
import {
|
|
Delete,
|
|
Delete,
|
|
@@ -44,7 +44,7 @@ import {
|
|
Edit,
|
|
Edit,
|
|
} from "@element-plus/icons-vue";
|
|
} from "@element-plus/icons-vue";
|
|
import SingleInput from "@/components/single-input.vue";
|
|
import SingleInput from "@/components/single-input.vue";
|
|
-
|
|
|
|
|
|
+import { downloadPointsPolys } from "@/util/pc4xlsl";
|
|
import { relics } from "@/store/relics";
|
|
import { relics } from "@/store/relics";
|
|
import { ElMessageBox } from "element-plus";
|
|
import { ElMessageBox } from "element-plus";
|
|
|
|
|
|
@@ -87,7 +87,7 @@ const del = async (id: string) => {
|
|
emit('del', id)
|
|
emit('del', id)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-const handleDownload = () => {
|
|
|
|
|
|
+const handleDownload = async () => {
|
|
const points = []
|
|
const points = []
|
|
props.data.polygons.forEach(poly => {
|
|
props.data.polygons.forEach(poly => {
|
|
poly.lineIds.forEach(line => {
|
|
poly.lineIds.forEach(line => {
|
|
@@ -100,9 +100,8 @@ const handleDownload = () => {
|
|
})
|
|
})
|
|
});
|
|
});
|
|
console.log('points', points)
|
|
console.log('points', points)
|
|
-
|
|
|
|
-
|
|
|
|
console.log('handleDownload');
|
|
console.log('handleDownload');
|
|
|
|
+ await downloadPointsPolys(points, [{ title: "xx", desc: "xxxx" }], 'xx');
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|