From ff00c6e65241113c5a33f2eb13d6440665437724 Mon Sep 17 00:00:00 2001 From: shefengchun <1077478963@qq.com> Date: Fri, 17 Feb 2023 09:37:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FusionSettings/DensityCorrection.vue | 40 +++++++++++-------- .../FusionSettings/FourPointCalibration.vue | 4 +- src/components/FusionSettingsDialog.vue | 32 +++++++++++++-- 3 files changed, 55 insertions(+), 21 deletions(-) diff --git a/src/components/FusionSettings/DensityCorrection.vue b/src/components/FusionSettings/DensityCorrection.vue index ffa6a99..a86aad8 100644 --- a/src/components/FusionSettings/DensityCorrection.vue +++ b/src/components/FusionSettings/DensityCorrection.vue @@ -48,6 +48,19 @@
+ + +
+
+
+
+
+
+
-
+ +
-
-
+
-
+
+
+
-
-
-
-
-
-
{ return ( diff --git a/src/components/FusionSettingsDialog.vue b/src/components/FusionSettingsDialog.vue index 5571ce4..b7fb86b 100644 --- a/src/components/FusionSettingsDialog.vue +++ b/src/components/FusionSettingsDialog.vue @@ -240,6 +240,9 @@ export default defineComponent({ }; const now_resolution=ref(1) // let allconfig = JSON.parse($store.state.fusion_configuration); + /** + * 模拟数据完成dom渲染再次获取真实后台数据 + */ let allconfig = JSON.parse("{\"resolution\": [{\"width\": 1024,\"height\": 768}]}"); const options_resolution = computed(() => { let tmp=[]; @@ -252,6 +255,10 @@ export default defineComponent({ return tmp }) const child :any = ref(null); + /** + * 开启网格时发送全部参数 + * + */ const send_show_blending_grids = () => { let tmp = "" switch (optionsstr.value) { @@ -303,6 +310,9 @@ export default defineComponent({ } }; + /** + * 重置全部参数 + */ const resetall = () => { set?.ResetBlendingConfig().then((res) => { let tmp = JSON.parse(res ? res.config : ""); @@ -320,6 +330,9 @@ export default defineComponent({ options.value = tmp }, 300); } + /** + * 清除sessionStorage缓存 + */ const clear_sessionStorage = () => { sessionStorage.removeItem("FusionLocale"); sessionStorage.removeItem("SurfaceCorrection"); @@ -346,6 +359,9 @@ export default defineComponent({ optionsstr.value = newValue; }, }); + /** + * 监听是否开启融合 + */ watch( () => EnableBlending, (newVal, oldVal) => { @@ -355,8 +371,11 @@ export default defineComponent({ { deep: true } ); + /** + * 设置分辨率 + * @param index 索引号 + */ const set_resolution=(index:number)=>{ - //SetProjectorResolution $q.loading.show({ message: 'Loading please wait' }) @@ -375,7 +394,9 @@ export default defineComponent({ }, 800); getconfig() } - + /** + * 监听ui切换 + */ watch(() => optionsstr, (newVal) => { let tmp = "" @@ -406,6 +427,9 @@ export default defineComponent({ //读取场景 get_scenes() }; + /** + * 读取服务器配置 + */ const getconfig = () => { try { set?.GetBlendingConfig("").then((res) => { @@ -427,7 +451,9 @@ export default defineComponent({ options.value = "FusionLocale" }; - + /** + * 读取服务器场景 + */ const get_scenes = () => { set?.EnumBlendingScene().then((res) => { if (res == null || res.scenes.length == 0) return