special_video 视频增加旋转参数

This commit is contained in:
fangxiang 2022-09-28 09:24:54 +08:00
parent 3282948466
commit dca4010f1b
6 changed files with 38 additions and 33 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "media_player_client", "name": "media_player_client",
"version": "1.5.3", "version": "1.5.4",
"description": "A Quasar Framework app", "description": "A Quasar Framework app",
"productName": "MediaPlayerClient", "productName": "MediaPlayerClient",
"author": "fangxiang <fangxiang@cloudview.work>", "author": "fangxiang <fangxiang@cloudview.work>",

View File

@ -104,12 +104,6 @@
(val) => (val) =>
(val && val.length > 0) || $t('Please type something'), (val && val.length > 0) || $t('Please type something'),
]" ]"
@keydown="
(evt) => {
if (evt.keyCode == 13) {
}
}
"
> >
<template v-if="item_data.name" v-slot:append> <template v-if="item_data.name" v-slot:append>
<q-icon <q-icon
@ -136,12 +130,30 @@
:label="$t('signal source type')" :label="$t('signal source type')"
:hint="$t('please select signal source type')" :hint="$t('please select signal source type')"
@update:model-value="onSelected" @update:model-value="onSelected"
@keydown=" >
(evt) => { </q-select>
if (evt.keyCode == 13) { </q-item-section>
} </q-item>
} <q-item
" v-if="
$store.state.isSpecialVideo() &&
item_data.window_type == 'EwindowType::Multimedia'
"
>
<q-item-section>
<q-select
:loading="loading"
:disable="loading"
filled
option-value="value"
option-label="label"
emit-value
map-options
v-model="item_data.rotation"
:options="[0, 90, 270]"
:label="$t('multimedia rotation')"
:hint="$t('please select multimedia rotation')"
@update:model-value="onSelected"
> >
</q-select> </q-select>
</q-item-section> </q-item-section>
@ -204,12 +216,6 @@
media_url_label.length - 1 media_url_label.length - 1
)), )),
]" ]"
@keydown="
(evt) => {
if (evt.keyCode == 13) {
}
}
"
> >
<template v-if="item_data.media_url" v-slot:append> <template v-if="item_data.media_url" v-slot:append>
<q-icon <q-icon
@ -233,12 +239,6 @@
:label="$t('user name')" :label="$t('user name')"
:hint="$t('please input user name')" :hint="$t('please input user name')"
lazy-rules lazy-rules
@keydown="
(evt) => {
if (evt.keyCode == 13) {
}
}
"
> >
<template v-if="item_data.user_name" v-slot:append> <template v-if="item_data.user_name" v-slot:append>
<q-icon <q-icon
@ -262,12 +262,6 @@
:label="$t('password')" :label="$t('password')"
:hint="$t('please input password')" :hint="$t('please input password')"
lazy-rules lazy-rules
@keydown="
(evt) => {
if (evt.keyCode == 13) {
}
}
"
> >
<template v-if="item_data.password" v-slot:append> <template v-if="item_data.password" v-slot:append>
<q-icon <q-icon
@ -652,6 +646,7 @@ export default defineComponent({
setMediaUrlLabel(item_data.window_type); setMediaUrlLabel(item_data.window_type);
} }
console.log(item_data);
show_dialog.value = true; show_dialog.value = true;
}, },
resetData() { resetData() {

View File

@ -128,7 +128,9 @@
v-ripple v-ripple
v-close-popup v-close-popup
v-if=" v-if="
prop.node.item_data && !prop.node.item_data.system_default prop.node.item_data &&
prop.node.item_data.uuid &&
!prop.node.item_data.system_default
" "
@click=" @click="
() => () =>
@ -150,7 +152,9 @@
v-ripple v-ripple
v-close-popup v-close-popup
v-if=" v-if="
prop.node.item_data && !prop.node.item_data.system_default prop.node.item_data &&
prop.node.item_data.uuid &&
!prop.node.item_data.system_default
" "
@click=" @click="
(evt) => deleteItem(evt, prop.node.is_group, prop.node.uuid) (evt) => deleteItem(evt, prop.node.is_group, prop.node.uuid)

View File

@ -8,6 +8,7 @@ export class SignalSourceEntity extends BaseEntity {
password: string = ""; password: string = "";
ext_data: string = ""; ext_data: string = "";
group_uuid = ""; group_uuid = "";
rotation = 0;
system_default: boolean = false; system_default: boolean = false;
local_file_flag: boolean = false; local_file_flag: boolean = false;
note: string = ""; note: string = "";
@ -29,6 +30,7 @@ export class SignalSourceEntity extends BaseEntity {
dest.system_default = src.system_default; dest.system_default = src.system_default;
dest.local_file_flag = src.local_file_flag; dest.local_file_flag = src.local_file_flag;
dest.note = src.note; dest.note = src.note;
dest.rotation = src.rotation;
} }
} }

View File

@ -360,4 +360,6 @@ export default {
"Are You Sure to Restore Factory Settings? The Configuration Parameters, Signal, Signal Loop, Mode And Mode Plan Will Be Deleted!", "Are You Sure to Restore Factory Settings? The Configuration Parameters, Signal, Signal Loop, Mode And Mode Plan Will Be Deleted!",
layout: "Layout", layout: "Layout",
rotation: "Rotation", rotation: "Rotation",
"multimedia rotation": "Multimedia Rotation",
"please select multimedia rotation": "Please Select Multimedia Rotation",
}; };

View File

@ -636,4 +636,6 @@ export default {
"确定复位吗? 系统配置、信号源、轮询、模式、语言数据将被删除!", "确定复位吗? 系统配置、信号源、轮询、模式、语言数据将被删除!",
layout: "布局", layout: "布局",
rotation: "旋转", rotation: "旋转",
"multimedia rotation": "媒体旋转",
"please select multimedia rotation": "请选择旋转值",
}; };