适配接口

This commit is contained in:
shefengchun 2022-12-30 12:08:27 +08:00
parent 8a1f6f2a26
commit f9075ed78d
3 changed files with 25 additions and 1 deletions

View File

@ -123,6 +123,7 @@
</div>
</div>
</div>
<div class="col-12">是否启用混合<q-checkbox v-model="EnableBlending" @chang="changEnableBlending" /></div>
</div>
</div>
<div v-if="!(group == 4) && array2[group].isshow" class="col-4">
@ -209,6 +210,7 @@ export default defineComponent({
const age = ref(0);
const standard = ref(0);
const group = ref(4);
const EnableBlending=ref(true);
let array: any = ref([
{ alpha: 0, p: 0, gamma: 0 },
{ alpha: 0, p: 0, gamma: 0 },
@ -316,6 +318,20 @@ export default defineComponent({
},
{ deep: true }
);
watch(
() => EnableBlending,
(newVal, oldVal) => {
//set?.setBlendingCorrection($store.getters.GetTheCurrentlySelectedCamera[0], $store.getters.GetTheCurrentlySelectedCamera[1], 9, 1, Number(newVal.x), Number(newVal.y));
///
///
$store.commit('setEnableBlending',newVal);
console.log(EnableBlending)
},
);
const changEnableBlending=()=>{
$store.commit('setEnableBlending',EnableBlending);
console.log(EnableBlending)
}
return {
model,
age,
@ -327,7 +343,9 @@ export default defineComponent({
array,
$t,
chang,
EnableBlending,
array2,
changEnableBlending
};
},
});

View File

@ -41,7 +41,7 @@
</div>
<div class="col-9">
<div class="q-ta-md">
<q-btn-toggle no-caps v-model="options" toggle-color="primary" :options="[
<q-btn-toggle :disable="$store.state.EnableBlending" no-caps v-model="options" toggle-color="primary" :options="[
{ label: $t('FusionLocale'), value: 'FusionLocale' },
{ label: $t('FourPointCalibration'), value: 'FourPointCalibration' },
{ label: $t('SurfaceCorrection'), value: 'SurfaceCorrection' },
@ -132,6 +132,7 @@ export default defineComponent({
console.log(newValue)
}
})
let data = ref({});
return {
show_dialog,

View File

@ -83,6 +83,7 @@ export interface StateInterface {
isSpecialVideo: () => boolean;
//
selected_projector: string;
EnableBlending:boolean
}
// provide typings for `this.$store`
@ -344,6 +345,7 @@ export default store(function (/* { ssrContext } */) {
custom_defines: new CustomDefines(),
selected_projector: "0/0",
EnableBlending:false,
isLedPlayer: () => {
return (
Store.state.product_name == EProductNames.LED_PLAYER ||
@ -605,6 +607,9 @@ export default store(function (/* { ssrContext } */) {
setSelectedProjector(state: StateInterface, playload?: any){
state.selected_projector = playload;
},
setEnableBlending(state: StateInterface, playload?: any){
state.EnableBlending = playload;
},
clearSignalSourceTree(state: StateInterface, playload?: any) {
state.signal_source_tree = [];
},