修复提交数据等待期间还能修改数据的BUG
This commit is contained in:
parent
877a964430
commit
56cc1f7712
|
@ -40,13 +40,20 @@
|
||||||
name="network"
|
name="network"
|
||||||
icon="language"
|
icon="language"
|
||||||
:label="$t('network setting')"
|
:label="$t('network setting')"
|
||||||
|
:disable="loading"
|
||||||
/>
|
/>
|
||||||
<q-tab
|
<q-tab
|
||||||
name="graphics"
|
name="graphics"
|
||||||
icon="picture_in_picture_alt"
|
icon="picture_in_picture_alt"
|
||||||
:label="$t('graphics setting')"
|
:label="$t('graphics setting')"
|
||||||
|
:disable="loading"
|
||||||
|
/>
|
||||||
|
<q-tab
|
||||||
|
name="other"
|
||||||
|
icon="build"
|
||||||
|
:label="$t('other setting')"
|
||||||
|
:disable="loading"
|
||||||
/>
|
/>
|
||||||
<q-tab name="other" icon="build" :label="$t('other setting')" />
|
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-tab-panels v-model="tab" animated>
|
<q-tab-panels v-model="tab" animated>
|
||||||
|
@ -64,6 +71,7 @@
|
||||||
v-model="auto_ip"
|
v-model="auto_ip"
|
||||||
:options="[$t('enable'), $t('disable')]"
|
:options="[$t('enable'), $t('disable')]"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
@ -75,6 +83,7 @@
|
||||||
<q-input
|
<q-input
|
||||||
v-model="ip_address"
|
v-model="ip_address"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
maxlength="15"
|
maxlength="15"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) =>
|
(val) =>
|
||||||
|
@ -95,6 +104,7 @@
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-input
|
<q-input
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
v-model="gateway"
|
v-model="gateway"
|
||||||
maxlength="15"
|
maxlength="15"
|
||||||
:rules="[
|
:rules="[
|
||||||
|
@ -116,6 +126,7 @@
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-input
|
<q-input
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
v-model="netmask"
|
v-model="netmask"
|
||||||
maxlength="15"
|
maxlength="15"
|
||||||
:rules="[
|
:rules="[
|
||||||
|
@ -138,6 +149,7 @@
|
||||||
<q-input
|
<q-input
|
||||||
v-model="mac_address"
|
v-model="mac_address"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
maxlength="17"
|
maxlength="17"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) =>
|
(val) =>
|
||||||
|
@ -171,6 +183,7 @@
|
||||||
<q-input
|
<q-input
|
||||||
v-model="brightness"
|
v-model="brightness"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
type="number"
|
type="number"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -183,6 +196,7 @@
|
||||||
<q-input
|
<q-input
|
||||||
v-model="contrast"
|
v-model="contrast"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
type="number"
|
type="number"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -195,6 +209,7 @@
|
||||||
<q-input
|
<q-input
|
||||||
v-model="hue"
|
v-model="hue"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
type="number"
|
type="number"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -207,6 +222,7 @@
|
||||||
<q-select
|
<q-select
|
||||||
v-model="device_resolution"
|
v-model="device_resolution"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
:options="device_resolution_options"
|
:options="device_resolution_options"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -219,6 +235,7 @@
|
||||||
<q-select
|
<q-select
|
||||||
v-model="output_board_resolution"
|
v-model="output_board_resolution"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
:options="output_board_resolution_options"
|
:options="output_board_resolution_options"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -242,6 +259,7 @@
|
||||||
<q-select
|
<q-select
|
||||||
v-model="use_ntp"
|
v-model="use_ntp"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
:options="[$t('enable'), $t('disable')]"
|
:options="[$t('enable'), $t('disable')]"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -251,7 +269,11 @@
|
||||||
$t("ntp server") + ":"
|
$t("ntp server") + ":"
|
||||||
}}</q-item-section>
|
}}</q-item-section>
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-input v-model="ntp_server" :loading="loading" />
|
<q-input
|
||||||
|
v-model="ntp_server"
|
||||||
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item v-if="use_ntp == $t('enable')">
|
<q-item v-if="use_ntp == $t('enable')">
|
||||||
|
@ -262,6 +284,7 @@
|
||||||
<q-input
|
<q-input
|
||||||
v-model="ntp_sync_delay"
|
v-model="ntp_sync_delay"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
type="number"
|
type="number"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -274,6 +297,7 @@
|
||||||
<q-input
|
<q-input
|
||||||
v-model="current_date"
|
v-model="current_date"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
type="date"
|
type="date"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -281,6 +305,7 @@
|
||||||
<q-input
|
<q-input
|
||||||
v-model="current_time"
|
v-model="current_time"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
type="time"
|
type="time"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -293,6 +318,7 @@
|
||||||
<q-select
|
<q-select
|
||||||
v-model="time_zone"
|
v-model="time_zone"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:disable="loading"
|
||||||
:options="time_zone_options"
|
:options="time_zone_options"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
@ -531,10 +557,6 @@ export default defineComponent({
|
||||||
|
|
||||||
let success = false;
|
let success = false;
|
||||||
try {
|
try {
|
||||||
GlobalData.getInstance()
|
|
||||||
.getCurrentClient()
|
|
||||||
?.setSystemNetwork(request);
|
|
||||||
success = true;
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (request.ip_address != $store.state.device_ip_address) {
|
if (request.ip_address != $store.state.device_ip_address) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -550,6 +572,10 @@ export default defineComponent({
|
||||||
}, 1500);
|
}, 1500);
|
||||||
}
|
}
|
||||||
}, 1000 * 10);
|
}, 1000 * 10);
|
||||||
|
/*await*/ GlobalData.getInstance()
|
||||||
|
.getCurrentClient()
|
||||||
|
?.setSystemNetwork(request);
|
||||||
|
success = true;
|
||||||
} catch {}
|
} catch {}
|
||||||
$q.notify({
|
$q.notify({
|
||||||
color: success ? "positive" : "negative",
|
color: success ? "positive" : "negative",
|
||||||
|
|
Loading…
Reference in New Issue