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

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

View File

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