适配接口
This commit is contained in:
parent
8a1f6f2a26
commit
f9075ed78d
|
@ -123,6 +123,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-12">是否启用混合<q-checkbox v-model="EnableBlending" @chang="changEnableBlending" /></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!(group == 4) && array2[group].isshow" class="col-4">
|
<div v-if="!(group == 4) && array2[group].isshow" class="col-4">
|
||||||
|
@ -209,6 +210,7 @@ export default defineComponent({
|
||||||
const age = ref(0);
|
const age = ref(0);
|
||||||
const standard = ref(0);
|
const standard = ref(0);
|
||||||
const group = ref(4);
|
const group = ref(4);
|
||||||
|
const EnableBlending=ref(true);
|
||||||
let array: any = ref([
|
let array: any = ref([
|
||||||
{ alpha: 0, p: 0, gamma: 0 },
|
{ alpha: 0, p: 0, gamma: 0 },
|
||||||
{ alpha: 0, p: 0, gamma: 0 },
|
{ alpha: 0, p: 0, gamma: 0 },
|
||||||
|
@ -316,6 +318,20 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ 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 {
|
return {
|
||||||
model,
|
model,
|
||||||
age,
|
age,
|
||||||
|
@ -327,7 +343,9 @@ export default defineComponent({
|
||||||
array,
|
array,
|
||||||
$t,
|
$t,
|
||||||
chang,
|
chang,
|
||||||
|
EnableBlending,
|
||||||
array2,
|
array2,
|
||||||
|
changEnableBlending
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-9">
|
<div class="col-9">
|
||||||
<div class="q-ta-md">
|
<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('FusionLocale'), value: 'FusionLocale' },
|
||||||
{ label: $t('FourPointCalibration'), value: 'FourPointCalibration' },
|
{ label: $t('FourPointCalibration'), value: 'FourPointCalibration' },
|
||||||
{ label: $t('SurfaceCorrection'), value: 'SurfaceCorrection' },
|
{ label: $t('SurfaceCorrection'), value: 'SurfaceCorrection' },
|
||||||
|
@ -132,6 +132,7 @@ export default defineComponent({
|
||||||
console.log(newValue)
|
console.log(newValue)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
let data = ref({});
|
let data = ref({});
|
||||||
return {
|
return {
|
||||||
show_dialog,
|
show_dialog,
|
||||||
|
|
|
@ -83,6 +83,7 @@ export interface StateInterface {
|
||||||
isSpecialVideo: () => boolean;
|
isSpecialVideo: () => boolean;
|
||||||
//
|
//
|
||||||
selected_projector: string;
|
selected_projector: string;
|
||||||
|
EnableBlending:boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
// provide typings for `this.$store`
|
// provide typings for `this.$store`
|
||||||
|
@ -344,6 +345,7 @@ export default store(function (/* { ssrContext } */) {
|
||||||
|
|
||||||
custom_defines: new CustomDefines(),
|
custom_defines: new CustomDefines(),
|
||||||
selected_projector: "0/0",
|
selected_projector: "0/0",
|
||||||
|
EnableBlending:false,
|
||||||
isLedPlayer: () => {
|
isLedPlayer: () => {
|
||||||
return (
|
return (
|
||||||
Store.state.product_name == EProductNames.LED_PLAYER ||
|
Store.state.product_name == EProductNames.LED_PLAYER ||
|
||||||
|
@ -605,6 +607,9 @@ export default store(function (/* { ssrContext } */) {
|
||||||
setSelectedProjector(state: StateInterface, playload?: any){
|
setSelectedProjector(state: StateInterface, playload?: any){
|
||||||
state.selected_projector = playload;
|
state.selected_projector = playload;
|
||||||
},
|
},
|
||||||
|
setEnableBlending(state: StateInterface, playload?: any){
|
||||||
|
state.EnableBlending = playload;
|
||||||
|
},
|
||||||
clearSignalSourceTree(state: StateInterface, playload?: any) {
|
clearSignalSourceTree(state: StateInterface, playload?: any) {
|
||||||
state.signal_source_tree = [];
|
state.signal_source_tree = [];
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue