修复曲面校正不发送默认点数

This commit is contained in:
shefengchun 2023-02-28 14:39:32 +08:00
parent a87b1bc380
commit 1eb926d029
2 changed files with 11 additions and 4 deletions

View File

@ -278,8 +278,11 @@ export default defineComponent({
use_set_cache();
options_value_point_amount.value = Object.keys(config.multi_curved_surface)
setTimeout(() => {
ste_status.value = 0;
set?.SetBlendingOption("blending_grids_control_point_count", `${value_point_amount.value}`)
}, 100);
setTimeout(() => {
ste_status.value = 0;
}, 120);
},
{ deep: true }
);
@ -304,8 +307,8 @@ export default defineComponent({
}, { deep: true })
watch(() => value_point_amount, (newval, oldval) => {
set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`)
save_set_cache()
if(ste_status.value==0)set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`)
save_set_cache()
}, { deep: true })
/**

View File

@ -419,9 +419,11 @@ export default defineComponent({
switch (newVal.value) {
case 'FusionLocale':
tmp = "blending"
set?.SetBlendingOption("blending_grids_select_ui", tmp)
break;
case 'FourPointCalibration':
tmp = '4'
set?.SetBlendingOption("blending_grids_select_ui", tmp)
set?.SetBlendingOption("blending_grids_control_point_count", `4`)
set?.SetBlendingOption("blending_grids_select_point", `4:1`)
break;
@ -430,6 +432,7 @@ export default defineComponent({
/**
* 延迟发送不然获取不到值
*/
set?.SetBlendingOption("blending_grids_select_ui", tmp)
setTimeout(() => {
set?.SetBlendingOption("blending_grids_control_point_count", `${child.value!.value_point_amount}`)
set?.SetBlendingOption("blending_grids_select_point", `${child.value!.value_point_amount}:1`)
@ -438,11 +441,12 @@ export default defineComponent({
break;
case 'DensityCorrection':
tmp = 'hor_density'
set?.SetBlendingOption("blending_grids_select_ui", tmp)
break;
default:
break;
}
if (tmp.length) set?.SetBlendingOption("blending_grids_select_ui", tmp)
// if (tmp.length) set?.SetBlendingOption("blending_grids_select_ui", tmp)
},
{ deep: true })