fix: [bpm][antd] bpmn 设计器审批人超时未处理自定义配置问题修复
This commit is contained in:
@@ -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,38 +246,54 @@ 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"
|
||||||
<InputNumber
|
:label-col="{ span: 24 }"
|
||||||
class="mr-2"
|
:wrapper-col="{ span: 24 }"
|
||||||
:style="{ width: '100px' }"
|
>
|
||||||
v-model:value="timeDuration"
|
<Row :gutter="[0, 0]">
|
||||||
:min="1"
|
<Col>
|
||||||
:controls="true"
|
<TypographyText class="mr-2 mt-2 inline-flex text-sm">
|
||||||
@change="
|
当超过
|
||||||
() => {
|
</TypographyText>
|
||||||
updateTimeModdle();
|
</Col>
|
||||||
updateElementExtensions();
|
<Col>
|
||||||
}
|
<FormItem name="timeDuration" class="mb-0">
|
||||||
"
|
<InputNumber
|
||||||
/>
|
class="mr-2 mt-0.5"
|
||||||
</FormItem>
|
v-model:value="timeDuration"
|
||||||
<Select
|
:min="1"
|
||||||
v-model:value="timeUnit"
|
controls-position="right"
|
||||||
class="mr-2"
|
@change="
|
||||||
:style="{ width: '100px' }"
|
() => {
|
||||||
@change="onTimeUnitChange"
|
updateTimeModdle();
|
||||||
>
|
updateElementExtensions();
|
||||||
<SelectOption
|
}
|
||||||
v-for="item in TIME_UNIT_TYPES"
|
"
|
||||||
:key="item.value"
|
/>
|
||||||
:value="item.value"
|
</FormItem>
|
||||||
>
|
</Col>
|
||||||
{{ item.label }}
|
<Col>
|
||||||
</SelectOption>
|
<Select
|
||||||
</Select>
|
v-model:value="timeUnit"
|
||||||
未处理
|
class="mr-2 !w-24"
|
||||||
|
@change="onTimeUnitChange"
|
||||||
|
>
|
||||||
|
<SelectOption
|
||||||
|
v-for="item in TIME_UNIT_TYPES"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
>
|
||||||
|
{{ item.label }}
|
||||||
|
</SelectOption>
|
||||||
|
</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>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user