修复树形控件改名后对话框不显示的BUG

This commit is contained in:
fangxiang 2022-04-07 11:43:18 +08:00
parent 276f88b48e
commit 2c13c31f7a
7 changed files with 45 additions and 25 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "media_player_client", "name": "media_player_client",
"version": "1.3.3", "version": "1.3.5",
"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

@ -57,18 +57,32 @@
{{ server_commit_hash }}</q-item-section {{ server_commit_hash }}</q-item-section
> >
</q-item> </q-item>
<q-item v-if="click_count > target_click_count"> <div v-if="click_count > target_click_count">
<q-item>
<q-item-section <q-item-section
>{{ $t("server branch name") }}: >{{ $t("server branch name") }}:
{{ server_branch_name }}</q-item-section {{ server_branch_name }}</q-item-section
> >
</q-item> </q-item>
<q-item v-if="click_count > target_click_count"> <q-item>
<q-item-section <q-item-section
>{{ $t("server build date") }}: >{{ $t("server build date") }}:
{{ server_build_date }}</q-item-section {{ server_build_date }}</q-item-section
> >
</q-item> </q-item>
<q-item>
<q-item-section
>{{ $t("kernel version") }}:
{{ kernel_version }}</q-item-section
>
</q-item>
<q-item>
<q-item-section
>{{ $t("rootfs version") }}:
{{ rootfs_version }}</q-item-section
>
</q-item>
</div>
<q-item <q-item
v-if=" v-if="
click_count > target_click_count * 2 && click_count > target_click_count * 2 &&
@ -76,10 +90,7 @@
" "
> >
<q-item-section <q-item-section
><q-btn ><q-btn :label="$t('restart')" @click="restart_device" />
:label="$t('restart device3568')"
@click="restart_device"
/>
</q-item-section> </q-item-section>
</q-item> </q-item>
</q-list> </q-list>
@ -116,6 +127,8 @@ export default defineComponent({
let server_commit_hash = ref("unknow"); let server_commit_hash = ref("unknow");
let server_build_date = ref("unknow"); let server_build_date = ref("unknow");
let server_branch_name = ref("unknow"); let server_branch_name = ref("unknow");
let kernel_version = ref("unknow");
let rootfs_version = ref("unknow");
const restart_device = () => { const restart_device = () => {
GlobalData.getInstance() GlobalData.getInstance()
@ -132,6 +145,8 @@ export default defineComponent({
server_commit_hash, server_commit_hash,
server_build_date, server_build_date,
server_branch_name, server_branch_name,
kernel_version,
rootfs_version,
restart_device, restart_device,
async showDialog() { async showDialog() {
@ -147,6 +162,8 @@ export default defineComponent({
server_commit_hash.value = build_info.commit_hash; server_commit_hash.value = build_info.commit_hash;
server_build_date.value = build_info.build_date; server_build_date.value = build_info.build_date;
server_branch_name.value = build_info.branch_name; server_branch_name.value = build_info.branch_name;
kernel_version.value = build_info.kernel_version;
rootfs_version.value = build_info.rootfs_version;
} }
} catch {} } catch {}
}, },

View File

@ -51,7 +51,7 @@
<q-list> <q-list>
<q-item <q-item
v-if=" v-if="
prop.node.name == $t('root') || prop.node.name == $t('mode') ||
(prop.node.is_group && prop.node.item_data) (prop.node.is_group && prop.node.item_data)
" "
clickable clickable
@ -71,7 +71,7 @@
clickable clickable
v-close-popup v-close-popup
v-if=" v-if="
prop.node.name == $t('root') || prop.node.name == $t('mode') ||
(prop.node.is_group && prop.node.item_data) (prop.node.is_group && prop.node.item_data)
" "
v-ripple v-ripple

View File

@ -34,7 +34,7 @@
<q-list> <q-list>
<q-item <q-item
v-if=" v-if="
prop.node.name == $t('root') || prop.node.name == $t('plan') ||
(prop.node.is_group && prop.node.item_data) (prop.node.is_group && prop.node.item_data)
" "
clickable clickable
@ -54,7 +54,7 @@
clickable clickable
v-close-popup v-close-popup
v-if=" v-if="
prop.node.name == $t('root') || prop.node.name == $t('plan') ||
(prop.node.is_group && prop.node.item_data) (prop.node.is_group && prop.node.item_data)
" "
v-ripple v-ripple

View File

@ -37,7 +37,7 @@
<q-list> <q-list>
<q-item <q-item
v-if=" v-if="
prop.node.name == $t('root') || prop.node.name == $t('signal polling') ||
(prop.node.is_group && prop.node.item_data) (prop.node.is_group && prop.node.item_data)
" "
clickable clickable
@ -53,7 +53,7 @@
v-close-popup v-close-popup
v-if=" v-if="
false && false &&
(prop.node.name == $t('root') || (prop.node.name == $t('signal polling') ||
(prop.node.is_group && prop.node.item_data)) (prop.node.is_group && prop.node.item_data))
" "
v-ripple v-ripple

View File

@ -43,7 +43,7 @@
<q-list> <q-list>
<q-item <q-item
v-if=" v-if="
prop.node.name == $t('root') || prop.node.name == $t('signal source') ||
(prop.node.is_group && (prop.node.is_group &&
prop.node.item_data && prop.node.item_data &&
!prop.node.item_data.system_default) !prop.node.item_data.system_default)
@ -67,7 +67,7 @@
clickable clickable
v-close-popup v-close-popup
v-if=" v-if="
prop.node.name == $t('root') || prop.node.name == $t('signal source') ||
(prop.node.is_group && (prop.node.is_group &&
prop.node.item_data && prop.node.item_data &&
!prop.node.item_data.system_default) !prop.node.item_data.system_default)

View File

@ -464,4 +464,7 @@ export default {
connection: "连接中", connection: "连接中",
"please check ipaddress or username or password": "please check ipaddress or username or password":
"请检查用户名或用户名或密码", "请检查用户名或用户名或密码",
restart: "重启",
"kernel version": "内核版本",
"rootfs version": "文件系统版本",
}; };