mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-02-01 19:24:58 +08:00
feat: 同步bpm设计器审批人配置
This commit is contained in:
parent
5785d741bb
commit
dc8f5cf977
@ -8,15 +8,15 @@
|
|||||||
@change="changeCandidateStrategy"
|
@change="changeCandidateStrategy"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in getIntDictOptions(DICT_TYPE.BPM_TASK_CANDIDATE_STRATEGY)"
|
v-for="(dict, index) in CANDIDATE_STRATEGY"
|
||||||
:key="dict.value"
|
:key="index"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="userTaskForm.candidateStrategy == 10"
|
v-if="userTaskForm.candidateStrategy == CandidateStrategy.ROLE"
|
||||||
label="指定角色"
|
label="指定角色"
|
||||||
prop="candidateParam"
|
prop="candidateParam"
|
||||||
>
|
>
|
||||||
@ -31,7 +31,11 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="userTaskForm.candidateStrategy == 20 || userTaskForm.candidateStrategy == 21"
|
v-if="
|
||||||
|
userTaskForm.candidateStrategy == CandidateStrategy.DEPT_MEMBER ||
|
||||||
|
userTaskForm.candidateStrategy == CandidateStrategy.DEPT_LEADER ||
|
||||||
|
userTaskForm.candidateStrategy == CandidateStrategy.MULTI_LEVEL_DEPT_LEADER
|
||||||
|
"
|
||||||
label="指定部门"
|
label="指定部门"
|
||||||
prop="candidateParam"
|
prop="candidateParam"
|
||||||
span="24"
|
span="24"
|
||||||
@ -49,7 +53,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="userTaskForm.candidateStrategy == 22"
|
v-if="userTaskForm.candidateStrategy == CandidateStrategy.POST"
|
||||||
label="指定岗位"
|
label="指定岗位"
|
||||||
prop="candidateParam"
|
prop="candidateParam"
|
||||||
span="24"
|
span="24"
|
||||||
@ -65,7 +69,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="userTaskForm.candidateStrategy == 30"
|
v-if="userTaskForm.candidateStrategy == CandidateStrategy.USER"
|
||||||
label="指定用户"
|
label="指定用户"
|
||||||
prop="candidateParam"
|
prop="candidateParam"
|
||||||
span="24"
|
span="24"
|
||||||
@ -86,7 +90,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="userTaskForm.candidateStrategy === 40"
|
v-if="userTaskForm.candidateStrategy === CandidateStrategy.USER_GROUP"
|
||||||
label="指定用户组"
|
label="指定用户组"
|
||||||
prop="candidateParam"
|
prop="candidateParam"
|
||||||
>
|
>
|
||||||
@ -106,7 +110,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="userTaskForm.candidateStrategy === 60"
|
v-if="userTaskForm.candidateStrategy === CandidateStrategy.EXPRESSION"
|
||||||
label="流程表达式"
|
label="流程表达式"
|
||||||
prop="candidateParam"
|
prop="candidateParam"
|
||||||
>
|
>
|
||||||
@ -127,7 +131,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
import {
|
||||||
|
CANDIDATE_STRATEGY,
|
||||||
|
CandidateStrategy
|
||||||
|
} from '@/components/SimpleProcessDesignerV2/src/consts'
|
||||||
import { defaultProps, handleTree } from '@/utils/tree'
|
import { defaultProps, handleTree } from '@/utils/tree'
|
||||||
import * as RoleApi from '@/api/system/role'
|
import * as RoleApi from '@/api/system/role'
|
||||||
import * as DeptApi from '@/api/system/dept'
|
import * as DeptApi from '@/api/system/dept'
|
||||||
@ -163,7 +170,9 @@ const resetTaskForm = () => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const extensionElements = businessObject?.extensionElements ?? bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] })
|
const extensionElements =
|
||||||
|
businessObject?.extensionElements ??
|
||||||
|
bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] })
|
||||||
userTaskForm.value.candidateStrategy = extensionElements.values?.filter(
|
userTaskForm.value.candidateStrategy = extensionElements.values?.filter(
|
||||||
(ex) => ex.$type === `${prefix}:CandidateStrategy`
|
(ex) => ex.$type === `${prefix}:CandidateStrategy`
|
||||||
)?.[0]?.value
|
)?.[0]?.value
|
||||||
|
Loading…
Reference in New Issue
Block a user