判断是否为无界,显示隐藏底图升级数据恢复等操作
This commit is contained in:
parent
601a95a33e
commit
a45c188c1e
|
@ -222,8 +222,8 @@
|
||||||
style="color: #ffbe4a; font-size: 2.5em"
|
style="color: #ffbe4a; font-size: 2.5em"
|
||||||
></q-icon>
|
></q-icon>
|
||||||
{{
|
{{
|
||||||
props.value.length > 35
|
props.value.length > 25
|
||||||
? props.value.substr(0, 35) + "..."
|
? props.value.substr(0, 25) + "..."
|
||||||
: props.value
|
: props.value
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
|
@ -357,6 +357,7 @@
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
|
v-if="!iswujie"
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@click="$refs.background_image_dialog.showDialog()"
|
@click="$refs.background_image_dialog.showDialog()"
|
||||||
|
@ -370,6 +371,7 @@
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
|
v-if="!iswujie"
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@click="$refs.recovery_database_dialog.showDialog()"
|
@click="$refs.recovery_database_dialog.showDialog()"
|
||||||
|
@ -405,6 +407,7 @@
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
|
v-if="!iswujie"
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@click="$refs.upgrade_dialog.showDialog()"
|
@click="$refs.upgrade_dialog.showDialog()"
|
||||||
|
@ -487,7 +490,7 @@
|
||||||
|
|
||||||
<q-separator vertical inset />
|
<q-separator vertical inset />
|
||||||
|
|
||||||
<q-item v-if="isfan">
|
<q-item v-if="!iswujie">
|
||||||
<q-item-section avatar style="margin-right: 0px; padding-right: 0px">
|
<q-item-section avatar style="margin-right: 0px; padding-right: 0px">
|
||||||
<!-- <q-icon class="text-white rotate" name="img:svgs/fan.svg" /> -->
|
<!-- <q-icon class="text-white rotate" name="img:svgs/fan.svg" /> -->
|
||||||
<!-- <q-icon class="text-white rotate" name="img:new_icon/fan.png" /> -->
|
<!-- <q-icon class="text-white rotate" name="img:new_icon/fan.png" /> -->
|
||||||
|
@ -722,9 +725,9 @@ export default defineComponent({
|
||||||
show_device_list.value =
|
show_device_list.value =
|
||||||
typeof (<any>window).user_search?.hide_device_list == "undefined";
|
typeof (<any>window).user_search?.hide_device_list == "undefined";
|
||||||
});
|
});
|
||||||
let isfan = ref(true);
|
let iswujie=ref(false)
|
||||||
if ((window as any).$wujie) {
|
if ((window as any).$wujie) {
|
||||||
isfan.value = false;
|
iswujie.value=true
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
getconfig,
|
getconfig,
|
||||||
|
@ -737,7 +740,7 @@ export default defineComponent({
|
||||||
power_flag,
|
power_flag,
|
||||||
fan,
|
fan,
|
||||||
isfull,
|
isfull,
|
||||||
isfan,
|
iswujie,
|
||||||
async backupDB() {
|
async backupDB() {
|
||||||
let client = GlobalData.getInstance().getCurrentClient();
|
let client = GlobalData.getInstance().getCurrentClient();
|
||||||
if (client) {
|
if (client) {
|
||||||
|
@ -830,9 +833,12 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
logout() {
|
logout() {
|
||||||
const w = window as any;
|
const w = window as any;
|
||||||
|
console.log(w)
|
||||||
if (w.controlLogout && typeof w.controlLogout == "function") {
|
if (w.controlLogout && typeof w.controlLogout == "function") {
|
||||||
|
console.log(1)
|
||||||
w.controlLogout();
|
w.controlLogout();
|
||||||
} else {
|
} else {
|
||||||
|
console.log(2)
|
||||||
Cookies.remove("auto_login");
|
Cookies.remove("auto_login");
|
||||||
SessionStorage.clear();
|
SessionStorage.clear();
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue