1
0
Fork 0
mirror of https://github.com/silenty4ng/k5web synced 2025-04-01 21:25:02 +00:00

add write channel confirm

This commit is contained in:
Silent YANG 2025-01-24 22:17:14 +08:00
parent 42d5125ec3
commit 67c3fd5d52
3 changed files with 15 additions and 2 deletions
src
locale
views/list/search-table

View file

@ -183,6 +183,8 @@ export default {
'sat.selfSatInfo': 'My satellite parameters',
'sat.addSelfSat': 'Add my satellite',
'chat': 'Radio Chat',
'menu.cps.writeNoticeTitle': 'Confirm',
'menu.cps.writeNoticeContent': "Confirmation to write the channel shown on the web page to the device? (will override the device's current channel configuration)",
...localeSettings,
...localeMessageBox,
...localeLogin,

View file

@ -183,6 +183,8 @@ export default {
'sat.selfSatInfo': '我的卫星参数',
'sat.addSelfSat': '添加我的卫星',
'chat': '无线电聊天',
'menu.cps.writeNoticeTitle': '确认',
'menu.cps.writeNoticeContent': '确认将网页显示的信道写入设备吗?(将覆盖设备当前信道配置)',
...localeSettings,
...localeMessageBox,
...localeLogin,

View file

@ -1,5 +1,13 @@
<template>
<div class="container">
<a-modal v-model:visible="istate.showNotice" @ok="writeChannel" @cancel="istate.showNotice = false">
<template #title>
{{ $t('menu.cps.writeNoticeTitle') }}
</template>
<div>
{{ $t('menu.cps.writeNoticeContent') }}
</div>
</a-modal>
<Breadcrumb :items="[$t('menu.dashboard'), $t('menu.cps.channel')]" />
<a-card class="general-card">
<template #title>
@ -14,7 +22,7 @@
</template>
{{ $t('cps.onDeviceRead') }}
</a-button>
<a-button @click="writeChannel">
<a-button @click="istate.showNotice = true">
<template #icon>
<icon-plus />
</template>
@ -158,7 +166,8 @@
})
const istate = reactive({
showHide: 0
showHide: 0,
showNotice: false
})
const onDragSort = (params: any) => {