updates
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
30a32ad17d
commit
737ab9e99b
|
@ -67,7 +67,8 @@ const saveChange = async (field, { rowIndex, row }) => {
|
|||
|
||||
// Buscador_Ticket (vNewTicketFk)
|
||||
// Call Form_Requery
|
||||
await split({ simple: true });
|
||||
await split({ simple: true }, [row]);
|
||||
|
||||
break;
|
||||
case 'code':
|
||||
// Call ticketChangeState(ticketFk, stateFk)
|
||||
|
@ -326,23 +327,26 @@ const emit = defineEmits([...useDialogPluginComponent.emits, 'selection']);
|
|||
function rowsHasSelected({ keys }) {
|
||||
emit('selection', keys);
|
||||
}
|
||||
const split = async (options) => {
|
||||
// const confirmationModal = ref(false);
|
||||
const split = async ({ simple }, data = []) => {
|
||||
openConfirmationModal(
|
||||
t('Confirm splitAll'),
|
||||
t('Are you sure you want to split all tickets?'),
|
||||
null,
|
||||
() => console.log('')
|
||||
() => {
|
||||
const body = simple ? data : selectedRows.value;
|
||||
axios.post(`Tickets/split`, body);
|
||||
}
|
||||
);
|
||||
// confirmationModal.value = true;
|
||||
|
||||
let body = [];
|
||||
// let body = [];
|
||||
// if (options.simple) {
|
||||
body = selectedRows.value;
|
||||
|
||||
// }
|
||||
// if (options.all) {
|
||||
// body = $props.rows;
|
||||
// }
|
||||
|
||||
await axios.post(`Tickets/split`, body);
|
||||
};
|
||||
defineExpose({ split });
|
||||
// const { dialogRef, onDialogHide } = useDialogPluginComponent();
|
||||
|
@ -365,6 +369,12 @@ defineExpose({ split });
|
|||
@on-fetch="(data) => (editableStates = data)"
|
||||
auto-load
|
||||
/>
|
||||
<!-- <VnConfirm
|
||||
ref="dialogRef"
|
||||
v-model="confirmationModal"
|
||||
:title="t('Confirm splitAll')"
|
||||
:message="t('Are you sure you want to split all tickets?')"
|
||||
></VnConfirm> -->
|
||||
<VnPaginate
|
||||
:data-key="URL_KEY"
|
||||
:url="`${URL_KEY}/${entityId}/detail`"
|
||||
|
@ -392,7 +402,6 @@ defineExpose({ split });
|
|||
<template v-if="col.name == 'actions'">
|
||||
<QBtn
|
||||
round
|
||||
v-close-popup
|
||||
color="primary"
|
||||
@click="saveChange('split', props)"
|
||||
>
|
||||
|
@ -438,11 +447,6 @@ defineExpose({ split });
|
|||
</QTable>
|
||||
</template>
|
||||
</VnPaginate>
|
||||
<VnConfirm
|
||||
model="confirmationModal"
|
||||
:title="t('Confirm splitAll')"
|
||||
:message="t('Are you sure you want to split all tickets?')"
|
||||
></VnConfirm>
|
||||
</template>
|
||||
|
||||
<style lang="scss"></style>
|
||||
|
|
|
@ -38,7 +38,6 @@ async function splitAll() {
|
|||
</script>
|
||||
<template>
|
||||
<QDialog
|
||||
persistent
|
||||
ref="dialogLackRef"
|
||||
full-width
|
||||
@before-show="() => (hasRowsSelected = false)"
|
||||
|
@ -58,7 +57,6 @@ async function splitAll() {
|
|||
<QSpace />
|
||||
<QBtn
|
||||
round
|
||||
v-close-popup
|
||||
color="primary"
|
||||
@click="splitAll()"
|
||||
:disabled="!hasRowsSelected"
|
||||
|
@ -71,7 +69,6 @@ async function splitAll() {
|
|||
<QBtn icon="close" flat round dense v-close-popup />
|
||||
</QCardSection>
|
||||
<QCardSection class="row items-center">
|
||||
{{ hasRowsSelected }}
|
||||
<TicketLackDialog
|
||||
ref="ticketRef"
|
||||
:id="ticket.itemFk"
|
||||
|
|
Loading…
Reference in New Issue