|
@@ -12,7 +12,12 @@
|
|
<div>
|
|
<div>
|
|
<el-form label-position="top" label-width="100px">
|
|
<el-form label-position="top" label-width="100px">
|
|
<el-form-item label="选择抄送人" prop="candidateStrategy">
|
|
<el-form-item label="选择抄送人" prop="candidateStrategy">
|
|
- <el-select v-model="candidateConfig.candidateStrategy" style="width: 100%" clearable @change="changecandidateStrategy">
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="candidateConfig.candidateStrategy"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ clearable
|
|
|
|
+ @change="changecandidateStrategy"
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.BPM_TASK_CANDIDATE_STRATEGY)"
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.BPM_TASK_CANDIDATE_STRATEGY)"
|
|
:key="dict.value"
|
|
:key="dict.value"
|
|
@@ -160,7 +165,7 @@ const deptTreeOptions = ref() // 部门树
|
|
const userGroupOptions = ref<UserGroupApi.UserGroupVO[]>([]) // 用户组列表
|
|
const userGroupOptions = ref<UserGroupApi.UserGroupVO[]>([]) // 用户组列表
|
|
const candidateConfig = ref({
|
|
const candidateConfig = ref({
|
|
candidateStrategy: undefined,
|
|
candidateStrategy: undefined,
|
|
- candidateParam: [],
|
|
|
|
|
|
+ candidateParam: []
|
|
})
|
|
})
|
|
const store = useWorkFlowStoreWithOut()
|
|
const store = useWorkFlowStoreWithOut()
|
|
const { setCopyerDrawer, setCopyerConfig } = store
|
|
const { setCopyerDrawer, setCopyerConfig } = store
|
|
@@ -178,30 +183,29 @@ const visible = computed({
|
|
})
|
|
})
|
|
watch(copyerConfig, (val) => {
|
|
watch(copyerConfig, (val) => {
|
|
if (val.value.attributes) {
|
|
if (val.value.attributes) {
|
|
- console.log('val.value.attributes', val.value.attributes);
|
|
|
|
|
|
+ console.log('val.value.attributes', val.value.attributes)
|
|
candidateConfig.value.candidateStrategy = val.value.attributes.candidateStrategy
|
|
candidateConfig.value.candidateStrategy = val.value.attributes.candidateStrategy
|
|
- const candidateParamStr = val.value.attributes.candidateParam;
|
|
|
|
- if(val.value.attributes.candidateStrategy === 60) {
|
|
|
|
|
|
+ const candidateParamStr = val.value.attributes.candidateParam
|
|
|
|
+ if (val.value.attributes.candidateStrategy === 60) {
|
|
candidateConfig.value.candidateParam = [candidateParamStr]
|
|
candidateConfig.value.candidateParam = [candidateParamStr]
|
|
} else {
|
|
} else {
|
|
- if(candidateParamStr){
|
|
|
|
- candidateConfig.value.candidateParam = candidateParamStr.split(',').map((item) => +item)
|
|
|
|
|
|
+ if (candidateParamStr) {
|
|
|
|
+ candidateConfig.value.candidateParam = candidateParamStr.split(',').map((item) => +item)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
// candidateConfig.value = val.value.attributes
|
|
// candidateConfig.value = val.value.attributes
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
-
|
|
|
|
const saveConfig = () => {
|
|
const saveConfig = () => {
|
|
const rawConfig = toRaw(copyerConfig.value)
|
|
const rawConfig = toRaw(copyerConfig.value)
|
|
- const { candidateStrategy , candidateParam} = toRaw(candidateConfig.value);
|
|
|
|
|
|
+ const { candidateStrategy, candidateParam } = toRaw(candidateConfig.value)
|
|
const candidateParamStr = candidateParam.join(',')
|
|
const candidateParamStr = candidateParam.join(',')
|
|
rawConfig.value.attributes = {
|
|
rawConfig.value.attributes = {
|
|
candidateStrategy,
|
|
candidateStrategy,
|
|
candidateParam: candidateParamStr
|
|
candidateParam: candidateParamStr
|
|
- }
|
|
|
|
|
|
+ }
|
|
rawConfig.flag = true
|
|
rawConfig.flag = true
|
|
// TODO 进行校验
|
|
// TODO 进行校验
|
|
// setApproverConfig({
|
|
// setApproverConfig({
|
|
@@ -213,7 +217,7 @@ const saveConfig = () => {
|
|
setCopyerConfig({
|
|
setCopyerConfig({
|
|
value: rawConfig.value,
|
|
value: rawConfig.value,
|
|
flag: true,
|
|
flag: true,
|
|
- id: copyerConfig.value.id,
|
|
|
|
|
|
+ id: copyerConfig.value.id
|
|
})
|
|
})
|
|
console.log('after is copyerConfig', copyerConfig.value)
|
|
console.log('after is copyerConfig', copyerConfig.value)
|
|
closeDrawer()
|
|
closeDrawer()
|
|
@@ -228,7 +232,7 @@ const changecandidateStrategy = () => {
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
// 获得角色列表
|
|
// 获得角色列表
|
|
roleOptions.value = await RoleApi.getSimpleRoleList()
|
|
roleOptions.value = await RoleApi.getSimpleRoleList()
|
|
-
|
|
|
|
|
|
+ // 获得岗位列表
|
|
postOptions.value = await PostApi.getSimplePostList()
|
|
postOptions.value = await PostApi.getSimplePostList()
|
|
// 获得用户列表
|
|
// 获得用户列表
|
|
userOptions.value = await UserApi.getSimpleUserList()
|
|
userOptions.value = await UserApi.getSimpleUserList()
|