Desarrollo de los submodulos basic data, notes y pbx #245
|
@ -78,6 +78,11 @@ select:-webkit-autofill {
|
|||
color: $white;
|
||||
}
|
||||
|
||||
.card-width {
|
||||
max-width: 800px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.vn-card {
|
||||
background-color: var(--vn-gray);
|
||||
color: var(--vn-text);
|
||||
|
|
|
@ -7,6 +7,7 @@ import CardDescriptor from 'src/components/ui/CardDescriptor.vue';
|
|||
import VnLv from 'src/components/ui/VnLv.vue';
|
||||
import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue';
|
||||
import useCardDescription from 'src/composables/useCardDescription';
|
||||
import { useState } from 'src/composables/useState';
|
||||
|
||||
const $props = defineProps({
|
||||
id: {
|
||||
|
@ -23,6 +24,7 @@ const $props = defineProps({
|
|||
const route = useRoute();
|
||||
const { t } = useI18n();
|
||||
const { getTokenMultimedia } = useSession();
|
||||
const state = useState();
|
||||
|
||||
const entityId = computed(() => {
|
||||
return $props.id || route.params.id;
|
||||
|
@ -112,7 +114,7 @@ const setData = (entity) => {
|
|||
<VnLinkPhone :phone-number="entity.phone" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :value="sip">
|
||||
<VnLv :value="state.get('extension') || sip">
|
||||
jsegarra marked this conversation as resolved
Outdated
|
||||
<template #label>
|
||||
{{ t('worker.summary.sipExtension') }}
|
||||
<VnLinkPhone v-if="sip" :phone-number="sip" />
|
||||
|
|
|
@ -5,6 +5,7 @@ import { useRoute } from 'vue-router';
|
|||
|
||||
import axios from 'axios';
|
||||
|
||||
import { useState } from 'src/composables/useState';
|
||||
import { useStateStore } from 'stores/useStateStore';
|
||||
import useNotify from 'src/composables/useNotify';
|
||||
|
||||
|
@ -13,13 +14,13 @@ import VnRow from 'components/ui/VnRow.vue';
|
|||
const { notify } = useNotify();
|
||||
const { t } = useI18n();
|
||||
const route = useRoute();
|
||||
const state = useState();
|
||||
const stateStore = useStateStore();
|
||||
|
||||
const isLoading = ref(false);
|
||||
const extension = ref('');
|
||||
const worker = ref({});
|
||||
const workersRef = ref(null);
|
||||
const id = ref(route.params.id);
|
||||
|
||||
jsegarra marked this conversation as resolved
Outdated
jsegarra
commented
Cuando se modifica no actualiza el valor del Descriptor Cuando se modifica no actualiza el valor del Descriptor
cfonseca
commented
Corregido: Corregido: c06d810fe9
|
||||
const hasChanged = computed(() => {
|
||||
return extension.value !== worker.value?.sip?.extension;
|
||||
|
@ -49,14 +50,17 @@ const getData = async (id) => {
|
|||
params: { filter: JSON.stringify(filter) },
|
||||
});
|
||||
extension.value = data.sip.extension;
|
||||
state.set('extension', data.sip.extension);
|
||||
worker.value = data;
|
||||
} catch (error) {
|
||||
console.error(error.error);
|
||||
state.set('extension', null);
|
||||
extension.value = '';
|
||||
}
|
||||
};
|
||||
|
||||
const setInitialData = () => {
|
||||
extension.value = worker.value?.sip?.extension;
|
||||
state.set('extension', worker.value?.sip?.extension);
|
||||
};
|
||||
|
||||
const onSubmit = async () => {
|
||||
|
@ -77,6 +81,10 @@ const onSubmit = async () => {
|
|||
isLoading.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
const updateModelValue = () => {
|
||||
state.set('extension', extension.value);
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
jsegarra marked this conversation as resolved
Outdated
alexm
commented
Usar componente FormModel Usar componente FormModel
cfonseca
commented
Corregido: Corregido: 081d4bf5fc
|
||||
|
@ -108,15 +116,14 @@ const onSubmit = async () => {
|
|||
<QCardSection>
|
||||
<VnRow class="row q-gutter-md q-mb-md">
|
||||
<div class="col">
|
||||
<QInput :label="t('Extension')" v-model="extension" />
|
||||
<QInput
|
||||
:label="t('worker.summary.sipExtension')"
|
||||
v-model="extension"
|
||||
@update:model-value="updateModelValue()"
|
||||
/>
|
||||
</div>
|
||||
</VnRow>
|
||||
</QCardSection>
|
||||
</QCard>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<i18n>
|
||||
es:
|
||||
Extension: Extensión
|
||||
</i18n>
|
||||
|
|
|
@ -79,7 +79,12 @@ const toWorkerNotes = () => {
|
|||
<QForm>
|
||||
<VnRow class="row q-gutter-md q-mb-md">
|
||||
<div class="col">
|
||||
<QInput :label="t('Note')" type="textarea" v-model="text" />
|
||||
<QInput
|
||||
jsegarra marked this conversation as resolved
Outdated
jsegarra
commented
Duda UI/UX, cuando pego un texto tipo "Lorem Ipsum", tengo que hacer mucho scroll para ver el texto, mientras que tengo un espacio bien amplio por los lados. Es correcto esto? Duda UI/UX, cuando pego un texto tipo "Lorem Ipsum", tengo que hacer mucho scroll para ver el texto, mientras que tengo un espacio bien amplio por los lados.
Es correcto esto?
Es Salix no pasa
cfonseca
commented
Corregido: Corregido: c06d810fe9
jsegarra
commented
Hemos visto que en Salix está así, por ello no es error, sino propuesta de mejora para ocupar el ancho de la ventana Hemos visto que en Salix está así, por ello no es error, sino propuesta de mejora para ocupar el ancho de la ventana
cfonseca
commented
Corregido: Corregido: 1d37b91e09
|
||||
:label="t('Note')"
|
||||
autofocus
|
||||
type="textarea"
|
||||
v-model="text"
|
||||
/>
|
||||
</div>
|
||||
</VnRow>
|
||||
</QForm>
|
||||
|
|
Loading…
Reference in New Issue
El valor se está mostrando pero el icono no
Corregido:
1d37b91e09