Skip to content

Commit dc8f5cf

Browse files
committed
feat: 同步bpm设计器审批人配置
1 parent 5785d74 commit dc8f5cf

File tree

1 file changed

+19
-10
lines changed
  • src/components/bpmnProcessDesigner/package/penal/task/task-components

1 file changed

+19
-10
lines changed

src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
@change="changeCandidateStrategy"
99
>
1010
<el-option
11-
v-for="dict in getIntDictOptions(DICT_TYPE.BPM_TASK_CANDIDATE_STRATEGY)"
12-
:key="dict.value"
11+
v-for="(dict, index) in CANDIDATE_STRATEGY"
12+
:key="index"
1313
:label="dict.label"
1414
:value="dict.value"
1515
/>
1616
</el-select>
1717
</el-form-item>
1818
<el-form-item
19-
v-if="userTaskForm.candidateStrategy == 10"
19+
v-if="userTaskForm.candidateStrategy == CandidateStrategy.ROLE"
2020
label="指定角色"
2121
prop="candidateParam"
2222
>
@@ -31,7 +31,11 @@
3131
</el-select>
3232
</el-form-item>
3333
<el-form-item
34-
v-if="userTaskForm.candidateStrategy == 20 || userTaskForm.candidateStrategy == 21"
34+
v-if="
35+
userTaskForm.candidateStrategy == CandidateStrategy.DEPT_MEMBER ||
36+
userTaskForm.candidateStrategy == CandidateStrategy.DEPT_LEADER ||
37+
userTaskForm.candidateStrategy == CandidateStrategy.MULTI_LEVEL_DEPT_LEADER
38+
"
3539
label="指定部门"
3640
prop="candidateParam"
3741
span="24"
@@ -49,7 +53,7 @@
4953
/>
5054
</el-form-item>
5155
<el-form-item
52-
v-if="userTaskForm.candidateStrategy == 22"
56+
v-if="userTaskForm.candidateStrategy == CandidateStrategy.POST"
5357
label="指定岗位"
5458
prop="candidateParam"
5559
span="24"
@@ -65,7 +69,7 @@
6569
</el-select>
6670
</el-form-item>
6771
<el-form-item
68-
v-if="userTaskForm.candidateStrategy == 30"
72+
v-if="userTaskForm.candidateStrategy == CandidateStrategy.USER"
6973
label="指定用户"
7074
prop="candidateParam"
7175
span="24"
@@ -86,7 +90,7 @@
8690
</el-select>
8791
</el-form-item>
8892
<el-form-item
89-
v-if="userTaskForm.candidateStrategy === 40"
93+
v-if="userTaskForm.candidateStrategy === CandidateStrategy.USER_GROUP"
9094
label="指定用户组"
9195
prop="candidateParam"
9296
>
@@ -106,7 +110,7 @@
106110
</el-select>
107111
</el-form-item>
108112
<el-form-item
109-
v-if="userTaskForm.candidateStrategy === 60"
113+
v-if="userTaskForm.candidateStrategy === CandidateStrategy.EXPRESSION"
110114
label="流程表达式"
111115
prop="candidateParam"
112116
>
@@ -127,7 +131,10 @@
127131
</template>
128132

129133
<script lang="ts" setup>
130-
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
134+
import {
135+
CANDIDATE_STRATEGY,
136+
CandidateStrategy
137+
} from '@/components/SimpleProcessDesignerV2/src/consts'
131138
import { defaultProps, handleTree } from '@/utils/tree'
132139
import * as RoleApi from '@/api/system/role'
133140
import * as DeptApi from '@/api/system/dept'
@@ -163,7 +170,9 @@ const resetTaskForm = () => {
163170
return
164171
}
165172
166-
const extensionElements = businessObject?.extensionElements ?? bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] })
173+
const extensionElements =
174+
businessObject?.extensionElements ??
175+
bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] })
167176
userTaskForm.value.candidateStrategy = extensionElements.values?.filter(
168177
(ex) => ex.$type === `${prefix}:CandidateStrategy`
169178
)?.[0]?.value

0 commit comments

Comments
 (0)