0
0
Fork 0

feat: refs #6452 drop worker pbx

This commit is contained in:
Jorge Penadés 2024-10-15 16:56:34 +02:00
parent 4fb3e0dadf
commit 7ec7137540
4 changed files with 0 additions and 80 deletions

View File

@ -736,7 +736,6 @@ worker:
pda: PDA pda: PDA
notes: Notas notes: Notas
dms: My documentation dms: My documentation
pbx: Private Branch Exchange
log: Log log: Log
calendar: Calendar calendar: Calendar
timeControl: Time control timeControl: Time control

View File

@ -742,7 +742,6 @@ worker:
pda: PDA pda: PDA
notes: Notas notes: Notas
dms: Mi documentación dms: Mi documentación
pbx: Centralita
log: Historial log: Historial
calendar: Calendario calendar: Calendario
timeControl: Control de horario timeControl: Control de horario

View File

@ -1,68 +0,0 @@
<script setup>
import { watch, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router';
import { useState } from 'src/composables/useState';
import FormModel from 'src/components/FormModel.vue';
import VnRow from 'components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue';
const { t } = useI18n();
const state = useState();
const route = useRoute();
const workerPBXForm = ref();
const extension = ref(null);
const filter = {
include: [
{
relation: 'sip',
},
],
};
watch(
() => route.params.id,
() => state.set('extension', null)
);
const onFetch = (data) => {
state.set('extension', data?.sip?.extension);
extension.value = state.get('extension');
};
const updateModelValue = (data) => {
state.set('extension', data);
workerPBXForm.value.hasChanges = true;
};
</script>
<template>
<FormModel
ref="workerPBXForm"
:filter="filter"
:url="`Workers/${route.params.id}`"
url-update="Sips"
auto-load
:mapper="
() => ({
userFk: +route.params.id,
extension,
})
"
model="DeviceProductionUser"
@on-fetch="onFetch"
>
<template #form="{}">
<VnRow>
<VnInput
:label="t('worker.summary.sipExtension')"
v-model="extension"
@update:model-value="updateModelValue"
/>
</VnRow>
</template>
</FormModel>
</template>

View File

@ -18,7 +18,6 @@ export default {
'WorkerNotes', 'WorkerNotes',
'WorkerPda', 'WorkerPda',
'WorkerNotificationsManager', 'WorkerNotificationsManager',
'WorkerPBX',
'WorkerLog', 'WorkerLog',
'WorkerCalendar', 'WorkerCalendar',
'WorkerDms', 'WorkerDms',
@ -144,15 +143,6 @@ export default {
component: () => component: () =>
import('src/pages/Worker/Card/WorkerNotificationsManager.vue'), import('src/pages/Worker/Card/WorkerNotificationsManager.vue'),
}, },
{
path: 'pbx',
name: 'WorkerPBX',
meta: {
title: 'pbx',
icon: 'vn:pbx',
},
component: () => import('src/pages/Worker/Card/WorkerPBX.vue'),
},
{ {
name: 'WorkerDms', name: 'WorkerDms',
path: 'dms', path: 'dms',