BPM:新增 flowable expression 表达式,替代现有 BpmTaskAssignScript,更加灵活
This commit is contained in:
parent
feadd022e7
commit
960f27f6ef
@ -117,6 +117,15 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item v-if="userTaskForm.assignType === 60" label="流程表达式" prop="assignOptions">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
v-model="userTaskForm.assignOptions[0]"
|
||||||
|
clearable
|
||||||
|
style="width: 100%"
|
||||||
|
@change="updateElementTask"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -160,7 +169,13 @@ const resetTaskForm = () => {
|
|||||||
userTaskForm.value.assignType = undefined
|
userTaskForm.value.assignType = undefined
|
||||||
}
|
}
|
||||||
if (businessObject.assignOptions && businessObject.assignOptions.length > 0) {
|
if (businessObject.assignOptions && businessObject.assignOptions.length > 0) {
|
||||||
userTaskForm.value.assignOptions = businessObject.assignOptions?.split(',').map((item) => +item)
|
if (userTaskForm.value.assignType === 60) {
|
||||||
|
userTaskForm.value.assignOptions = [businessObject.assignOptions]
|
||||||
|
} else {
|
||||||
|
userTaskForm.value.assignOptions = businessObject.assignOptions
|
||||||
|
.split(',')
|
||||||
|
.map((item) => +item)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
userTaskForm.value.assignOptions = []
|
userTaskForm.value.assignOptions = []
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user