From f44f60d038e9ca6f6a367f49507075a4131b91ef Mon Sep 17 00:00:00 2001
From: shefengchun <1077478963@qq.com>
Date: Thu, 2 Feb 2023 15:48:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=95=E7=8B=AC=E8=B0=83?=
=?UTF-8?q?=E8=AF=95=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/FusionSettings/Debugging.vue | 82 +++++++++++++++++++
.../FusionSettings/DebuggingItem.vue | 63 ++++++++++++++
.../FusionSettings/DensityCorrection.vue | 6 --
src/components/FusionSettingsDialog.vue | 68 ++++++++-------
src/i18n/en-US/index.ts | 7 +-
src/i18n/zh-CN/index.ts | 7 +-
6 files changed, 190 insertions(+), 43 deletions(-)
create mode 100644 src/components/FusionSettings/Debugging.vue
create mode 100644 src/components/FusionSettings/DebuggingItem.vue
diff --git a/src/components/FusionSettings/Debugging.vue b/src/components/FusionSettings/Debugging.vue
new file mode 100644
index 0000000..3f9777b
--- /dev/null
+++ b/src/components/FusionSettings/Debugging.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/FusionSettings/DebuggingItem.vue b/src/components/FusionSettings/DebuggingItem.vue
new file mode 100644
index 0000000..7b65ed5
--- /dev/null
+++ b/src/components/FusionSettings/DebuggingItem.vue
@@ -0,0 +1,63 @@
+
+ {{ $t(show_name) }}
+
+
+
+
diff --git a/src/components/FusionSettings/DensityCorrection.vue b/src/components/FusionSettings/DensityCorrection.vue
index 9ea2ef0..6eaea61 100644
--- a/src/components/FusionSettings/DensityCorrection.vue
+++ b/src/components/FusionSettings/DensityCorrection.vue
@@ -676,11 +676,6 @@ export default defineComponent({
}
save_set_cache();
};
- const creat_svg=(index:Number,type:string):string=>{
- //btoa(unescape(encodeURIComponent(str)))
- //'data:image/svg+xml;base64,'+btoa(``)
- return type=='h'?`data:image/svg+xml,%3Csvg width='50' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='50%25' font-size='14' fill='%2300c853' font-family='system-ui, sans-serif' text-anchor='middle' dominant-baseline='middle'%3E←h${index}→%3C/text%3E%3C/svg%3E`:'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iNTAiCiAgICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHRleHQgZm9udC1zaXplPSIxNCIgZmlsbD0iI2Q1MDAwMCI+CiAgICAgICAgPHRzcGFuIHg9IjMiIHk9IjEwIj7ihpE8L3RzcGFuPgogICAgICAgIDx0c3BhbiB4PSIwIiB5PSIyMCI+djE8L3RzcGFuPgogICAgICAgIDx0c3BhbiB4PSIzIiB5PSIzMCI+4oaTPC90c3Bhbj4KICAgIDwvdGV4dD4KPC9zdmc+'
- }
initialization();
return {
model,
@@ -694,7 +689,6 @@ export default defineComponent({
isshowarray,
isactivearray,
save,
- creat_svg
};
},
});
diff --git a/src/components/FusionSettingsDialog.vue b/src/components/FusionSettingsDialog.vue
index 38a993c..5232926 100644
--- a/src/components/FusionSettingsDialog.vue
+++ b/src/components/FusionSettingsDialog.vue
@@ -64,6 +64,10 @@
},
{ label: $t('GridSettings'), value: 'GridSettings' },
]" />
+
@@ -75,8 +79,6 @@
- {{ $t("Whether to hide the desktop") }}
{{ $t("disable blending params") }}
@@ -84,8 +86,7 @@
-
-
+
{
- set?.SetBlendingOption(hide_desktop_value_id.value, hide_desktop_value.value ? "1" : "0");
- };
+ // const send_hide_desktop = () => {
+ // set?.SetBlendingOption(hide_desktop_value_id.value, hide_desktop_value.value ? "1" : "0");
+ // };
const send_disable_blending_params = () => {
set?.SetBlendingOption(disable_blending_params_id.value, disable_blending_params.value ? "1" : "0");
};
@@ -243,8 +246,8 @@ export default defineComponent({
const EnableBlending = ref(false);
let optionsstr = ref();
optionsstr.value = "FusionLocale";
- const hide_desktop_value_id = ref("debug@show_mask");
- const hide_desktop_value = ref(false);
+ // const hide_desktop_value_id = ref("debug@show_mask");
+ // const hide_desktop_value = ref(false);
const disable_blending_params_id = ref("1");
const disable_blending_params = ref(false);
const show_blending_grids_id = ref("blending_grids_show");
@@ -302,6 +305,7 @@ export default defineComponent({
sessionStorage.removeItem("FourPointCalibration");
sessionStorage.removeItem("GridSettings");
}, 500);
+ options.value="FusionLocale"
};
@@ -318,14 +322,7 @@ export default defineComponent({
onBeforeMount(() => {
setTimeout(() => {
try {
- set?.GetBlendingConfig("").then((res) => {
- let tmp = JSON.parse(res ? res.config : "");
- EnableBlending.value = tmp.enable;
- $store.commit("setEnablefusion", tmp.enable);
- config.value.col = tmp.col;
- config.value.row = tmp.row;
- $store.commit("setfusion_configuration", res?.config);
- });
+
} catch (error) {
erroe();
}
@@ -336,7 +333,7 @@ export default defineComponent({
set?.GetBlendingConfig("").then((res) => {
let tmp = JSON.parse(res ? res.config : "");
let local_options = [
- [hide_desktop_value_id, hide_desktop_value],
+ // [hide_desktop_value_id, hide_desktop_value],
[disable_blending_params_id, disable_blending_params],
[show_blending_grids_id, show_blending_grids]
];
@@ -348,17 +345,21 @@ export default defineComponent({
local_opt[1].value = ("0" == opt || "false" == opt.toLowerCase() ? false : true);
}
}
+ EnableBlending.value = tmp.enable;
+ $store.commit("setEnablefusion", tmp.enable);
+ config.value.col = tmp.col;
+ config.value.row = tmp.row;
+ $store.commit("setfusion_configuration", res?.config);
+
});
}, 1000);
});
const save_cover_name = ref("")
const plan_list = [
- '1'
+ ''
]
const apply_the_selected_configuration = () => {
//这里根据选择的配置 应用
-
- //console.log(select_configuration_name.value)
set?.ApplyBlendingScene(select_configuration_name.value).then((res) => {
let tmp = JSON.parse(res ? res.config : "");
EnableBlending.value = tmp.enable;
@@ -370,7 +371,6 @@ export default defineComponent({
let tmp = options.value
options.value = ""
- //getconfig()
$store.commit("setSelectedProjector", "0/0");
setTimeout(() => {
sessionStorage.removeItem("FusionLocale");
@@ -380,9 +380,6 @@ export default defineComponent({
sessionStorage.removeItem("GridSettings");
options.value = tmp
}, 800);
- // setTimeout(() => {
- // options.value = tmp
- // }, 100);
}
const plan_list_op = ref(plan_list)
const filterFn = (val: any, update: any, abort: any) => {
@@ -400,16 +397,17 @@ export default defineComponent({
set?.SaveBlendingConfig(save_cover_name.value);
clear();
save_cover_name.value = save_name.value = ''
- set?.GetBlendingConfig("").then((res) => {
- let tmp = JSON.parse(res ? res.config : "");
- EnableBlending.value = tmp.enable;
- $store.commit("setEnablefusion", tmp.enable);
- config.value.col = tmp.col;
- config.value.row = tmp.row;
- $store.commit("setfusion_configuration", res?.config);
- });
+ // set?.GetBlendingConfig("").then((res) => {
+ // let tmp = JSON.parse(res ? res.config : "");
+ // EnableBlending.value = tmp.enable;
+ // $store.commit("setEnablefusion", tmp.enable);
+ // config.value.col = tmp.col;
+ // config.value.row = tmp.row;
+ // $store.commit("setfusion_configuration", res?.config);
+ // });
$store.commit("setSelectedProjector", "0/0");
}
+
const isdebug = computed(() => {
let tmp = JSON.parse($store.state.fusion_configuration)
let str = 'debug@show_mask'
@@ -431,8 +429,8 @@ export default defineComponent({
del_scenes,
filterFn,
setModel,
- send_hide_desktop,
- hide_desktop_value,
+ // send_hide_desktop,
+ // hide_desktop_value,
send_disable_blending_params,
disable_blending_params,
send_show_blending_grids,
diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts
index 2c004f3..e097f76 100644
--- a/src/i18n/en-US/index.ts
+++ b/src/i18n/en-US/index.ts
@@ -440,5 +440,10 @@ export default {
"New Please enter a name":"New Please enter a name",
"Please select an override":"Please select an override",
"confirm delete":"confirm delete",
- "delete or not":"delete or not"
+ "delete or not":"delete or not",
+ "debugging":"debugging",
+ "disable_blending":"disable blending",
+ "disable_clip":"disable clip",
+ "show_mask":"show desktop",
+ "save_bmp":"save bmp"
};
diff --git a/src/i18n/zh-CN/index.ts b/src/i18n/zh-CN/index.ts
index dce6078..a916e4d 100644
--- a/src/i18n/zh-CN/index.ts
+++ b/src/i18n/zh-CN/index.ts
@@ -709,5 +709,10 @@ export default {
"New Please enter a name":"新建 请输入名称",
"Please select an override":"请选择覆盖",
"confirm delete":"确定删除",
- "Whether to delete":"是否删除"
+ "Whether to delete":"是否删除",
+ "debugging":"调试",
+ "disable_blending":"禁用混合",
+ "disable_clip":"禁用裁剪",
+ "show_mask":"显示桌面",
+ "save_bmp":"保存BMP"
};