fix: [bpm][antd] bpmn 设计器审批人超时未处理自定义配置问题修复

This commit is contained in:
jason
2025-12-12 13:36:50 +08:00
parent 0db2710e80
commit d50b9fae60

View File

@@ -2,14 +2,17 @@
import { inject, nextTick, ref, toRaw, watch } from 'vue'; import { inject, nextTick, ref, toRaw, watch } from 'vue';
import { import {
Col,
Divider, Divider,
FormItem, FormItem,
InputNumber, InputNumber,
RadioButton, RadioButton,
RadioGroup, RadioGroup,
Row,
Select, Select,
SelectOption, SelectOption,
Switch, Switch,
TypographyText,
} from 'ant-design-vue'; } from 'ant-design-vue';
import { convertTimeUnit } from '#/views/bpm/components/simple-process-design/components/nodes-config/utils'; import { convertTimeUnit } from '#/views/bpm/components/simple-process-design/components/nodes-config/utils';
@@ -73,7 +76,7 @@ const resetElement = () => {
// 执行动作 // 执行动作
timeoutHandlerType.value = elExtensionElements.value.values?.find( timeoutHandlerType.value = elExtensionElements.value.values?.find(
(ex: any) => ex.$type === `${prefix}:TimeoutHandlerType`, (ex: any) => ex.$type === `${prefix}:TimeoutHandlerType`,
)?.[0]; );
if (timeoutHandlerType.value) { if (timeoutHandlerType.value) {
configExtensions.value.push(timeoutHandlerType.value); configExtensions.value.push(timeoutHandlerType.value);
if (eventDefinition.value.timeCycle) { if (eventDefinition.value.timeCycle) {
@@ -243,15 +246,25 @@ watch(
</RadioButton> </RadioButton>
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>
<FormItem label="超时时间设置" v-if="timeoutHandlerEnable"> <FormItem
<span class="mr-2">当超过</span> label="超时时间设置"
<FormItem name="timeDuration"> v-if="timeoutHandlerEnable"
:label-col="{ span: 24 }"
:wrapper-col="{ span: 24 }"
>
<Row :gutter="[0, 0]">
<Col>
<TypographyText class="mr-2 mt-2 inline-flex text-sm">
当超过
</TypographyText>
</Col>
<Col>
<FormItem name="timeDuration" class="mb-0">
<InputNumber <InputNumber
class="mr-2" class="mr-2 mt-0.5"
:style="{ width: '100px' }"
v-model:value="timeDuration" v-model:value="timeDuration"
:min="1" :min="1"
:controls="true" controls-position="right"
@change=" @change="
() => { () => {
updateTimeModdle(); updateTimeModdle();
@@ -260,21 +273,27 @@ watch(
" "
/> />
</FormItem> </FormItem>
</Col>
<Col>
<Select <Select
v-model:value="timeUnit" v-model:value="timeUnit"
class="mr-2" class="mr-2 !w-24"
:style="{ width: '100px' }"
@change="onTimeUnitChange" @change="onTimeUnitChange"
> >
<SelectOption <SelectOption
v-for="item in TIME_UNIT_TYPES" v-for="item in TIME_UNIT_TYPES"
:key="item.value" :key="item.value"
:label="item.label"
:value="item.value" :value="item.value"
> >
{{ item.label }} {{ item.label }}
</SelectOption> </SelectOption>
</Select> </Select>
<TypographyText class="mr-2 mt-2 inline-flex text-sm">
未处理 未处理
</TypographyText>
</Col>
</Row>
</FormItem> </FormItem>
<FormItem <FormItem
label="最大提醒次数" label="最大提醒次数"
@@ -295,5 +314,3 @@ watch(
</FormItem> </FormItem>
</div> </div>
</template> </template>
<style lang="scss" scoped></style>