Merge pull request 'feat: add back-office link and show pos version' (#14) from feat/issue-13/add-bo-link into dev
Reviewed-on: #14release/1.0.1
commit
124dfee0b3
|
|
@ -70,6 +70,11 @@
|
||||||
"Dates range error": "With a date range, a text of at least 5 characters must be specified",
|
"Dates range error": "With a date range, a text of at least 5 characters must be specified",
|
||||||
"Close": "Close",
|
"Close": "Close",
|
||||||
"Connect to invidual POS": "Connect to invidual POS",
|
"Connect to invidual POS": "Connect to invidual POS",
|
||||||
|
"REMOTE CONTROL": "REMOTE CONTROL",
|
||||||
|
"EXTERNAL LINK": "EXTERNAL LINK",
|
||||||
|
"Note: Click on the button below to access DOTSOFT Back-office": "Note: Click on the button below to access DOTSOFT Back-office",
|
||||||
|
"Open Back-office": "Open Back-office",
|
||||||
|
"Mount drive": "Mount drive",
|
||||||
"---------------------------": "---------------------------",
|
"---------------------------": "---------------------------",
|
||||||
"UI Elements": "عناصر واجهة المستخدم",
|
"UI Elements": "عناصر واجهة المستخدم",
|
||||||
"Forms & Tables": "النماذج والجداول",
|
"Forms & Tables": "النماذج والجداول",
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,11 @@
|
||||||
"Dates range error": "With a date range, a text of at least 5 characters must be specified",
|
"Dates range error": "With a date range, a text of at least 5 characters must be specified",
|
||||||
"Close": "Close",
|
"Close": "Close",
|
||||||
"Connect to invidual POS": "Connect to invidual POS",
|
"Connect to invidual POS": "Connect to invidual POS",
|
||||||
|
"REMOTE CONTROL": "REMOTE CONTROL",
|
||||||
|
"EXTERNAL LINK": "EXTERNAL LINK",
|
||||||
|
"Note: Click on the button below to access DOTSOFT Back-office": "Note: Click on the button below to access DOTSOFT Back-office",
|
||||||
|
"Open Back-office": "Open Back-office",
|
||||||
|
"Mount drive": "Mount drive",
|
||||||
"---------------------------": "---------------------------",
|
"---------------------------": "---------------------------",
|
||||||
"UI Elements": "UI Elements",
|
"UI Elements": "UI Elements",
|
||||||
"Forms & Tables": "Forms & Tables",
|
"Forms & Tables": "Forms & Tables",
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,11 @@
|
||||||
"Dates range error": "Dans le cas d'une plage de dates, un texte d'au moins 5 caractères doit être spécifié.",
|
"Dates range error": "Dans le cas d'une plage de dates, un texte d'au moins 5 caractères doit être spécifié.",
|
||||||
"Close": "Fermer",
|
"Close": "Fermer",
|
||||||
"Connect to invidual POS": "Connexion à une caisse individuelle",
|
"Connect to invidual POS": "Connexion à une caisse individuelle",
|
||||||
|
"REMOTE CONTROL": "CONTROLE A DISTANCE",
|
||||||
|
"EXTERNAL LINK": "LIEN EXTERNE",
|
||||||
|
"Note: Click on the button below to access DOTSOFT Back-office": "Note: Cliquez sur le bouton ci-dessous pour accéder au Back-office DOTSOFT",
|
||||||
|
"Open Back-office": "Ouvrir DOTSOFT",
|
||||||
|
"Mount drive": "Monter lecteur",
|
||||||
"---------------------------": "---------------------------",
|
"---------------------------": "---------------------------",
|
||||||
"UI Elements": "ÉLÉMENTS DE L'UI",
|
"UI Elements": "ÉLÉMENTS DE L'UI",
|
||||||
"Forms & Tables": "Formulaires et tableaux",
|
"Forms & Tables": "Formulaires et tableaux",
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,17 @@ const props = defineProps<Props>()
|
||||||
<VChip
|
<VChip
|
||||||
label
|
label
|
||||||
size="small"
|
size="small"
|
||||||
class="text-capitalize"
|
class="text-capitalize me-1"
|
||||||
>
|
>
|
||||||
{{ pos.ip }}
|
{{ pos.ip }}
|
||||||
</VChip>
|
</VChip>
|
||||||
|
<VChip
|
||||||
|
label
|
||||||
|
size="small"
|
||||||
|
class="text-capitalize"
|
||||||
|
>
|
||||||
|
{{ pos.version }}
|
||||||
|
</VChip>
|
||||||
/
|
/
|
||||||
<VChip
|
<VChip
|
||||||
label
|
label
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@ import type { StoreData } from '@/models/storeData'
|
||||||
import logoVNC from '@images/misc/remote_128.png'
|
import logoVNC from '@images/misc/remote_128.png'
|
||||||
|
|
||||||
const props = defineProps<Props>()
|
const props = defineProps<Props>()
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
const { t } = useI18n()
|
||||||
|
|
||||||
const drive = ['M:', 'N:', 'O:', 'P:', 'Q:', 'R:', 'S:', 'T:']
|
const drive = ['M:', 'N:', 'O:', 'P:', 'Q:', 'R:', 'S:', 'T:']
|
||||||
|
|
||||||
const selectedProtocol = ref('hdpos')
|
const selectedProtocol = ref('hdpos')
|
||||||
|
|
@ -40,6 +44,12 @@ const mountDrive = (ip: string, drive: string) => {
|
||||||
|
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const openBO = () => {
|
||||||
|
const url = `http://aspf.adic.lan/site/login/login.asp?dataid=1&validated=1&input_login=caisse${localStoreData.value.store.id_structure}-20&input_password=caisse&id_caisse=20`
|
||||||
|
|
||||||
|
window.open(url, '_blank')
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
@ -48,11 +58,11 @@ const mountDrive = (ip: string, drive: string) => {
|
||||||
cols="12"
|
cols="12"
|
||||||
md="6"
|
md="6"
|
||||||
>
|
>
|
||||||
<VCard
|
<VCard>
|
||||||
flat
|
|
||||||
border
|
|
||||||
>
|
|
||||||
<VCardText>
|
<VCardText>
|
||||||
|
<p>
|
||||||
|
{{ $t('REMOTE CONTROL') }}
|
||||||
|
</p>
|
||||||
<VCardText class="text-center d-flex align-center justify-left">
|
<VCardText class="text-center d-flex align-center justify-left">
|
||||||
<img
|
<img
|
||||||
:src="logoVNC"
|
:src="logoVNC"
|
||||||
|
|
@ -116,14 +126,14 @@ const mountDrive = (ip: string, drive: string) => {
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="mountDrive(caisse.ip, caisse.drive)"
|
@click="mountDrive(caisse.ip, caisse.drive)"
|
||||||
>
|
>
|
||||||
Mount drive {{ caisse.drive }}
|
{{ $t('Mount drive') }} {{ caisse.drive }}
|
||||||
</VBtn>
|
</VBtn>
|
||||||
<VBtn
|
<VBtn
|
||||||
v-else
|
v-else
|
||||||
disabled
|
disabled
|
||||||
color="primary"
|
color="primary"
|
||||||
>
|
>
|
||||||
Mount drive
|
{{ $t('Mount drive') }}
|
||||||
</VBtn>
|
</VBtn>
|
||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
|
|
@ -132,5 +142,30 @@ const mountDrive = (ip: string, drive: string) => {
|
||||||
</VCardText>
|
</VCardText>
|
||||||
</VCard>
|
</VCard>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
<VCol
|
||||||
|
cols="12"
|
||||||
|
md="6"
|
||||||
|
>
|
||||||
|
<VCard>
|
||||||
|
<!-- 👉 BO access Link -->
|
||||||
|
<VCardText>
|
||||||
|
<p>
|
||||||
|
{{ $t('EXTERNAL LINK') }}
|
||||||
|
<VAlert
|
||||||
|
color="warning"
|
||||||
|
variant="tonal"
|
||||||
|
class="mb-5 mt-4"
|
||||||
|
>
|
||||||
|
{{ $t('Note: Click on the button below to access DOTSOFT Back-office') }}
|
||||||
|
</VAlert>
|
||||||
|
</p>
|
||||||
|
<div>
|
||||||
|
<VBtn @click="openBO">
|
||||||
|
{{ $t('Open Back-office') }}
|
||||||
|
</VBtn>
|
||||||
|
</div>
|
||||||
|
</VCardText>
|
||||||
|
</VCard>
|
||||||
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue