refactor: add messenger by area
This commit is contained in:
parent
ffee1b4b99
commit
2a5038d8a2
3 changed files with 5 additions and 4 deletions
|
|
@ -28,7 +28,6 @@ defineProps<{
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const optionStore = useOptionStore();
|
const optionStore = useOptionStore();
|
||||||
const modelByArea = ref<boolean>(false);
|
|
||||||
|
|
||||||
const userInTable = defineModel<WorkflowUserInTable[]>('userInTable', {
|
const userInTable = defineModel<WorkflowUserInTable[]>('userInTable', {
|
||||||
default: [],
|
default: [],
|
||||||
|
|
@ -631,16 +630,16 @@ onMounted(async () => {
|
||||||
</q-item>
|
</q-item>
|
||||||
|
|
||||||
<span class="text-caption app-text-muted-2 q-px-md">
|
<span class="text-caption app-text-muted-2 q-px-md">
|
||||||
{{ $t('general.area') }}
|
{{ $t('personnel.MESSENGER') }}
|
||||||
</span>
|
</span>
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
@click="modelByArea = !modelByArea"
|
@click="step.messengerByArea = !step.messengerByArea"
|
||||||
class="column"
|
class="column"
|
||||||
>
|
>
|
||||||
<div class="row items-center">
|
<div class="row items-center">
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
v-model="modelByArea"
|
v-model="step.messengerByArea"
|
||||||
size="xs"
|
size="xs"
|
||||||
></q-checkbox>
|
></q-checkbox>
|
||||||
<div class="column q-pl-md">
|
<div class="column q-pl-md">
|
||||||
|
|
|
||||||
|
|
@ -315,6 +315,7 @@ function triggerPropertiesDialog(step: WorkFlowPayloadStep) {
|
||||||
v-model:user-in-table="userInTable"
|
v-model:user-in-table="userInTable"
|
||||||
v-model:flow-data="flowData"
|
v-model:flow-data="flowData"
|
||||||
v-model:register-branch-id="registerBranchId"
|
v-model:register-branch-id="registerBranchId"
|
||||||
|
v-model:messenger-by-area="messengerByArea"
|
||||||
@change-status="$emit('changeStatus')"
|
@change-status="$emit('changeStatus')"
|
||||||
@trigger-properties="triggerPropertiesDialog"
|
@trigger-properties="triggerPropertiesDialog"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -230,6 +230,7 @@ function assignFormData(workflowData: WorkflowTemplate) {
|
||||||
id: s.id,
|
id: s.id,
|
||||||
name: s.name,
|
name: s.name,
|
||||||
detail: s.detail,
|
detail: s.detail,
|
||||||
|
messengerByArea: s.messengerByArea || false,
|
||||||
value: s.value.length > 0 ? JSON.parse(JSON.stringify(s.value)) : [],
|
value: s.value.length > 0 ? JSON.parse(JSON.stringify(s.value)) : [],
|
||||||
responsiblePersonId: s.responsiblePerson.map((p) => p.userId),
|
responsiblePersonId: s.responsiblePerson.map((p) => p.userId),
|
||||||
responsibleInstitution: JSON.parse(
|
responsibleInstitution: JSON.parse(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue