魔墙:修改更新提示以及缩放的步长

This commit is contained in:
miao 2023-01-04 09:21:35 +08:00
parent 5f9ab983e0
commit 35d5a3fdb9
1 changed files with 11 additions and 4 deletions

View File

@ -241,9 +241,9 @@
markers markers
switch-marker-labels-side switch-marker-labels-side
label-always label-always
:min="0.1" :min="0.10"
:max="2" :max="2"
:step="0.1" :step="0.05"
/> />
</div> </div>
<div <div
@ -374,6 +374,7 @@
background-color: grey; background-color: grey;
border: 1px solid black; border: 1px solid black;
text-align: center; text-align: center;
font-size: {{ percenter }};
" "
:style="{ :style="{
width: box_width(item, j), width: box_width(item, j),
@ -390,6 +391,8 @@
@dragend="(evt) => onDragend(evt, item, j)" @dragend="(evt) => onDragend(evt, item, j)"
> >
{{ test_monitor_list[(item - 1) * 4 + (j - 1)].uuid }} {{ test_monitor_list[(item - 1) * 4 + (j - 1)].uuid }}
W:{{ test_monitor_list[(item - 1) * 4 + (j - 1)].w }}
H:{{ test_monitor_list[(item - 1) * 4 + (j - 1)].h }}
</div> </div>
</div> </div>
<div <div
@ -419,6 +422,8 @@
@dragend="(evt) => onDragend(evt, item, j)" @dragend="(evt) => onDragend(evt, item, j)"
> >
{{ test_monitor_list[(item - 1) * 4 + (j - 1)].uuid }} {{ test_monitor_list[(item - 1) * 4 + (j - 1)].uuid }}
W:{{ test_monitor_list[(item - 1) * 4 + (j - 1)].w }}
H:{{ test_monitor_list[(item - 1) * 4 + (j - 1)].h }}
</div> </div>
</div> </div>
</div> </div>
@ -620,17 +625,19 @@ export default defineComponent({
let client = GlobalData.getInstance().getCurrentClient(); let client = GlobalData.getInstance().getCurrentClient();
if(client){ if(client){
const setMagic = await client.setMagicWallConfig(cloud_monitor_list); const setMagic = await client.setMagicWallConfig(cloud_monitor_list);
if(setMagic?.success){
$q.notify({ $q.notify({
color: setMagic?.success ? "positive" : "negative", color: setMagic?.success ? "positive" : "negative",
icon: setMagic?.success ? "done" : "warning", icon: setMagic?.success ? "done" : "warning",
message: message:
$t.t("update magic wall") + $t.t("update magic wall") +
(setMagic?.success ? $t.t("success") : $t.t("fail")) + $t.t("fail") +
"!", "!",
position: "top", position: "top",
timeout: 2500, timeout: 2500,
}); });
} }
}
}; };
const ar = 0.5; const ar = 0.5;
const br = 0.6; const br = 0.6;