更改ui
This commit is contained in:
parent
e095bcb9fb
commit
112ea9195b
|
@ -97,49 +97,61 @@
|
||||||
<div>
|
<div>
|
||||||
<q-slider v-model="array[group].alpha" :min="0.0" @change="chang('alpha')" :max="1" :step="0.01" color="green"
|
<q-slider v-model="array[group].alpha" :min="0.0" @change="chang('alpha')" :max="1" :step="0.01" color="green"
|
||||||
vertical reverse label-always />
|
vertical reverse label-always />
|
||||||
<div> <q-input dense filled hide-bottom-space type="number" max="1" min="0" step="0.1" @update:model-value="chang('alpha')"
|
<div> <q-input dense filled hide-bottom-space type="number" max="1" min="0" step="0.1"
|
||||||
v-model="array[group].alpha" label="Alpha" lazy-rules :rules="[
|
@update:model-value="chang('alpha')" v-model="array[group].alpha" lazy-rules :rules="[
|
||||||
(val) =>
|
(val) =>
|
||||||
(val !== null && val !== '') ||
|
(val !== null && val !== '') ||
|
||||||
$t('Please enter a number'),
|
$t('Please enter a number'),
|
||||||
(val) =>
|
(val) =>
|
||||||
(val >= 0 && val <= 1) || $t('Please enter a value within the range'),
|
(val >= 0 && val <= 1) || $t('Please enter a value within the range'),
|
||||||
]" /><q-btn style="margin-top: 0.5rem;" color="white" @click="reset('alpha')" text-color="black" :label="$t('reset')" /></div>
|
]" />
|
||||||
|
<p style="text-align: center;">Alpha</p>
|
||||||
|
<q-btn style="margin-top: 0.5rem;" color="white" @click="reset('alpha')" text-color="black"
|
||||||
|
:label="$t('reset')" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<q-slider v-model="array[group].p" :min="0" @change="chang('p')" :max="16" :step="0.01" color="green" vertical
|
<q-slider v-model="array[group].p" :min="0" @change="chang('p')" :max="16" :step="0.01" color="green" vertical
|
||||||
reverse label-always />
|
reverse label-always />
|
||||||
<div> <q-input dense filled hide-bottom-space type="number" max="16" min="0" step="0.1" @update:model-value="chang('p')"
|
<div> <q-input dense filled hide-bottom-space type="number" max="16" min="0" step="0.1"
|
||||||
v-model="array[group].p" label="Power" lazy-rules :rules="[
|
@update:model-value="chang('p')" v-model="array[group].p" lazy-rules :rules="[
|
||||||
(val) =>
|
|
||||||
(val !== null && val !== '') ||
|
|
||||||
$t('Please enter a number'),
|
|
||||||
(val) =>
|
|
||||||
(val >= 0 && val <= 16) || $t('Please enter a value within the range'),
|
|
||||||
]" /><q-btn style="margin-top: 0.5rem;" color="white" @click="reset('p')" text-color="black" :label="$t('reset')" /></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<q-slider v-model="array[group].gamma" :min="0" @change="chang('gamma')" :max="16" :step="0.01" color="green"
|
|
||||||
vertical reverse label-always />
|
|
||||||
<div>
|
|
||||||
<q-input :dense="true" filled hide-bottom-space type="number" max="16" min="0" step="0.1" @update:model-value="chang('gamma')"
|
|
||||||
v-model="array[group].gamma" label="Gamma" lazy-rules :rules="[
|
|
||||||
(val) =>
|
(val) =>
|
||||||
(val !== null && val !== '') ||
|
(val !== null && val !== '') ||
|
||||||
$t('Please enter a number'),
|
$t('Please enter a number'),
|
||||||
(val) =>
|
(val) =>
|
||||||
(val >= 0 && val <= 16) || $t('Please enter a value within the range'),
|
(val >= 0 && val <= 16) || $t('Please enter a value within the range'),
|
||||||
]" />
|
]" />
|
||||||
<q-btn style="margin-top: 0.5rem;" color="white" @click="reset('gamma')" text-color="black" :label="$t('reset')" /></div>
|
<p style="text-align: center;">Power</p>
|
||||||
|
<q-btn style="margin-top: 0.5rem;" color="white" @click="reset('p')" text-color="black"
|
||||||
|
:label="$t('reset')" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<q-slider v-model="array[group].gamma" :min="0" @change="chang('gamma')" :max="16" :step="0.01" color="green"
|
||||||
|
vertical reverse label-always />
|
||||||
|
<div>
|
||||||
|
<q-input :dense="true" filled hide-bottom-space type="number" max="16" min="0" step="0.1"
|
||||||
|
@update:model-value="chang('gamma')" v-model="array[group].gamma" lazy-rules :rules="[
|
||||||
|
(val) =>
|
||||||
|
(val !== null && val !== '') ||
|
||||||
|
$t('Please enter a number'),
|
||||||
|
(val) =>
|
||||||
|
(val >= 0 && val <= 16) || $t('Please enter a value within the range'),
|
||||||
|
]" />
|
||||||
|
<p style="text-align: center;">Gamma</p>
|
||||||
|
<q-btn style="margin-top: 0.5rem;" color="white" @click="reset('gamma')" text-color="black"
|
||||||
|
:label="$t('reset')" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="position: absolute;bottom: 0;">
|
<div style="position: absolute;bottom: 0;">
|
||||||
<q-checkbox v-model="auxiliary_line" @update:model-value="(value, evt)=>{send_auxiliary_line(value)}" :label="$t('auxiliary lines')"/>
|
<q-checkbox v-model="auxiliary_line" @update:model-value="(value, evt)=>{send_auxiliary_line(value)}"
|
||||||
|
:label="$t('auxiliary lines')" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -197,8 +209,8 @@ export default defineComponent({
|
||||||
]);
|
]);
|
||||||
const auto_sync = ref(false)
|
const auto_sync = ref(false)
|
||||||
const auxiliary_line = ref(false)
|
const auxiliary_line = ref(false)
|
||||||
const send_auxiliary_line=(val:boolean)=>{
|
const send_auxiliary_line = (val: boolean) => {
|
||||||
set?.SetBlendingOption("blending_grids_assistant_lines",val?"1":"0");
|
set?.SetBlendingOption("blending_grids_assistant_lines", val ? "1" : "0");
|
||||||
}
|
}
|
||||||
//正确的 索引编号
|
//正确的 索引编号
|
||||||
let arr = [1, 0, 2, 3];
|
let arr = [1, 0, 2, 3];
|
||||||
|
@ -212,13 +224,13 @@ export default defineComponent({
|
||||||
const reset = (type: string) => {
|
const reset = (type: string) => {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'gamma':
|
case 'gamma':
|
||||||
array[group.value].gamma=Number(config.params[group.value].def_gamma.toFixed(2));
|
array[group.value].gamma = Number(config.params[group.value].def_gamma.toFixed(2));
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
array[group.value].p=Number(config.params[group.value].def_power.toFixed(2));
|
array[group.value].p = Number(config.params[group.value].def_power.toFixed(2));
|
||||||
break;
|
break;
|
||||||
case 'alpha':
|
case 'alpha':
|
||||||
array[group.value].alpha=Number(config.params[group.value].def_alpha.toFixed(2));
|
array[group.value].alpha = Number(config.params[group.value].def_alpha.toFixed(2));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -458,7 +458,7 @@ export default defineComponent({
|
||||||
defaultnine.value[index].x = config.point9[index].def_x;
|
defaultnine.value[index].x = config.point9[index].def_x;
|
||||||
defaultnine.value[index].y = config.point9[index].def_y;
|
defaultnine.value[index].y = config.point9[index].def_y;
|
||||||
}
|
}
|
||||||
//setninepostion();
|
setninepostion();
|
||||||
use_set_cache();
|
use_set_cache();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
ste_status.value = 0;
|
ste_status.value = 0;
|
||||||
|
|
Loading…
Reference in New Issue