|
@@ -10,6 +10,14 @@
|
|
|
>
|
|
|
屏幕拍照
|
|
|
</el-button>
|
|
|
+ <el-input-number
|
|
|
+ style="margin-right: 20px"
|
|
|
+ v-model="tempRadion"
|
|
|
+ :precision="2"
|
|
|
+ :step="0.01"
|
|
|
+ :min="1"
|
|
|
+ :max="3"
|
|
|
+ />
|
|
|
<el-button
|
|
|
size="large"
|
|
|
style="margin-right: 20px; width: 100px"
|
|
@@ -63,6 +71,8 @@ const params = computed(() => router.currentRoute.value.params as Params);
|
|
|
const panoDomRef = ref<HTMLCanvasElement>();
|
|
|
const destroyFns: (() => void)[] = [];
|
|
|
const point = ref<ScenePoint>();
|
|
|
+const tempRadion = ref(3.0);
|
|
|
+
|
|
|
watchEffect(() => {
|
|
|
if (params.value?.pid) {
|
|
|
const pid = Number(params.value!.pid);
|
|
@@ -81,7 +91,8 @@ watchEffect(() => {
|
|
|
|
|
|
const panoUrls = computed(() => {
|
|
|
return (
|
|
|
- point.value && getPointPano(point.value, point.value.cameraType === DeviceType.CLUNT)
|
|
|
+ point.value &&
|
|
|
+ getPointPano(point.value, point.value.cameraType === DeviceType.CLUNT)
|
|
|
);
|
|
|
});
|
|
|
const update = ref(false);
|
|
@@ -103,7 +114,8 @@ const copyGis = async () => {
|
|
|
const photo = async () => {
|
|
|
loading.value = true;
|
|
|
await new Promise((resolve) => setTimeout(resolve, 300));
|
|
|
- const ration = 3;
|
|
|
+ const ration = tempRadion.value;
|
|
|
+ console.log("ration", ration);
|
|
|
setSize(ration, 1920, 1080);
|
|
|
let dataURL: Blob | string = panoDomRef.value.toDataURL("image/jpg", 1);
|
|
|
if (!noValidPoint(point.value)) {
|
|
@@ -149,7 +161,10 @@ onMounted(() => {
|
|
|
|
|
|
onUnmounted(() => mergeFuns(...destroyFns)());
|
|
|
watchEffect(() => {
|
|
|
- if (router.currentRoute.value.name.toString().includes("pano") && point.value) {
|
|
|
+ if (
|
|
|
+ router.currentRoute.value.name.toString().includes("pano") &&
|
|
|
+ point.value
|
|
|
+ ) {
|
|
|
setDocTitle(point.value.index.toString() || relics.value.name);
|
|
|
}
|
|
|
});
|