feat: 更新工作流任务申请模态框样式,添加消息类型选择禁用功能
This commit is contained in:
parent
49521b667d
commit
4614b97796
@ -82,12 +82,18 @@ watch(visible, () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NModal v-model:show="visible" :title="title" :native-scrollbar="false" closable>
|
<NModal v-model:show="visible" preset="card" class="w-800px" :title="title" :native-scrollbar="false" closable>
|
||||||
<NForm :model="model">
|
<NForm :model="model">
|
||||||
<NFormItem label="通知方式" path="messageType">
|
<NFormItem label="通知方式" path="messageType">
|
||||||
<NCheckboxGroup v-model:value="model.messageType">
|
<NCheckboxGroup v-model:value="model.messageType">
|
||||||
<NSpace item-style="display: flex;">
|
<NSpace item-style="display: flex;">
|
||||||
<NCheckbox v-for="item in messageTypeOptions" :key="item.value" :value="item.value" :label="item.label" />
|
<NCheckbox
|
||||||
|
v-for="item in messageTypeOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:disabled="item.value === '1'"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
/>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</NCheckboxGroup>
|
</NCheckboxGroup>
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
@ -95,9 +101,9 @@ watch(visible, () => {
|
|||||||
<FileUpload ref="fileUploadRef" :file-size="20" :max="20" upload-type="file" :accept="accept" />
|
<FileUpload ref="fileUploadRef" :file-size="20" :max="20" upload-type="file" :accept="accept" />
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
</NForm>
|
</NForm>
|
||||||
<template #footer>
|
<div class="flex justify-end gap-12px">
|
||||||
<NButton @click="visible = false">取消</NButton>
|
<NButton @click="visible = false">取消</NButton>
|
||||||
<NButton type="primary" @click="handleSubmit">提交</NButton>
|
<NButton type="primary" @click="handleSubmit">提交</NButton>
|
||||||
</template>
|
</div>
|
||||||
</NModal>
|
</NModal>
|
||||||
</template>
|
</template>
|
||||||
|
@ -173,6 +173,7 @@ watch(visible, () => {
|
|||||||
<template>
|
<template>
|
||||||
<NDrawer v-model:show="visible" :title="title" display-directive="show" :width="800" class="max-w-90%">
|
<NDrawer v-model:show="visible" :title="title" display-directive="show" :width="800" class="max-w-90%">
|
||||||
<NDrawerContent :title="title" :native-scrollbar="false" closable>
|
<NDrawerContent :title="title" :native-scrollbar="false" closable>
|
||||||
|
<div></div>
|
||||||
<NForm ref="formRef" :model="model" :rules="rules">
|
<NForm ref="formRef" :model="model" :rules="rules">
|
||||||
<NFormItem label="流程类型" path="flowCode">
|
<NFormItem label="流程类型" path="flowCode">
|
||||||
<NSelect v-model:value="model.flowCode" placeholder="请输入流程类型" :options="flowCodeTypeOptions" />
|
<NSelect v-model:value="model.flowCode" placeholder="请输入流程类型" :options="flowCodeTypeOptions" />
|
||||||
@ -203,13 +204,13 @@ watch(visible, () => {
|
|||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.confirm') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.confirm') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
<WorkflowTaskApplyModal
|
|
||||||
v-model:visible="taskApplyVisible"
|
|
||||||
:task-id="startWorkflowResult?.taskId || ''"
|
|
||||||
:task-variables="taskVariables"
|
|
||||||
@finished="handleTaskFinished"
|
|
||||||
/>
|
|
||||||
</NDrawerContent>
|
</NDrawerContent>
|
||||||
|
<WorkflowTaskApplyModal
|
||||||
|
v-model:visible="taskApplyVisible"
|
||||||
|
:task-id="startWorkflowResult?.taskId || ''"
|
||||||
|
:task-variables="taskVariables"
|
||||||
|
@finished="handleTaskFinished"
|
||||||
|
/>
|
||||||
</NDrawer>
|
</NDrawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user