添加预案对话框增加模式为空提醒

special_video 隐藏工具栏和右键菜单的窗口大小调整对话框
This commit is contained in:
fangxiang 2022-09-29 11:10:10 +08:00
parent 6aed12baa4
commit c7f0571381
6 changed files with 16 additions and 0 deletions

View File

@ -742,6 +742,16 @@ export default defineComponent({
return node.is_group; return node.is_group;
}, },
addRow(insert_flag: boolean = false) { addRow(insert_flag: boolean = false) {
if (GlobalData.getInstance().modes.length <= 0) {
$q.notify({
color: "positive",
icon: "warning",
message: $t.t("mode is empty! please add mode first") + "!",
position: "top",
timeout: 1500,
});
return;
}
const item = { const item = {
uuid: GlobalData.getInstance().modes[0].uuid, uuid: GlobalData.getInstance().modes[0].uuid,
delay: __DEFAULT_DELAY, delay: __DEFAULT_DELAY,

View File

@ -46,6 +46,7 @@
<q-item <q-item
clickable clickable
v-close-popup v-close-popup
v-if="!$store.state.isSpecialVideo()"
:disable="$props.disable" :disable="$props.disable"
@click="$emit('edit_rect', $props.window.window_id)" @click="$emit('edit_rect', $props.window.window_id)"
> >

View File

@ -362,4 +362,6 @@ export default {
rotation: "Rotation", rotation: "Rotation",
"multimedia rotation": "Multimedia Rotation", "multimedia rotation": "Multimedia Rotation",
"please select multimedia rotation": "Please Select Multimedia Rotation", "please select multimedia rotation": "Please Select Multimedia Rotation",
"mode is empty! please add mode first":
"Mode Is Empty! Please Add Mode First",
}; };

View File

@ -638,4 +638,5 @@ export default {
rotation: "旋转", rotation: "旋转",
"multimedia rotation": "媒体旋转", "multimedia rotation": "媒体旋转",
"please select multimedia rotation": "请选择旋转值", "please select multimedia rotation": "请选择旋转值",
"mode is empty! please add mode first": "当前没有模式,请先添加模式!",
}; };

View File

@ -141,6 +141,7 @@
icon="img:pad/toolbar/edit_window_rect.png" icon="img:pad/toolbar/edit_window_rect.png"
:label="$t('toolbar edit window rect')" :label="$t('toolbar edit window rect')"
class="col-auto" class="col-auto"
v-if="!$store.state.isSpecialVideo()"
@click="editRect" @click="editRect"
/> />

View File

@ -155,6 +155,7 @@
stretch stretch
no-caps no-caps
flat flat
v-if="!$store.state.isSpecialVideo()"
stack stack
:disable="plan_running || !$store.state.power_state" :disable="plan_running || !$store.state.power_state"
:icon="/*vertical_align_bottom*/ 'img:new_icon/edit_window_rect.png'" :icon="/*vertical_align_bottom*/ 'img:new_icon/edit_window_rect.png'"