|
@@ -46,7 +46,7 @@ const { tagsView } = useStore()
|
|
|
const router = useRouter()
|
|
|
const route = useRoute()
|
|
|
const flowStore = useFlowStore()
|
|
|
-const { categoryId, processId, processIcon, processKey, processName, remark, modelContent, processForm, processSetting } = storeToRefs(flowStore)
|
|
|
+const { categoryId, processId, processIcon, processKey, processName, remark, modelContent, processForm, processSetting, processPermissionList } = storeToRefs(flowStore)
|
|
|
|
|
|
const compRefs = ref() // 实例化子组件
|
|
|
const cache_components = ref({})
|
|
@@ -106,7 +106,8 @@ const submitHandler = async () => {
|
|
|
name: processName.value,
|
|
|
nodeConfig: JSON.parse(modelContent.value || '{}')
|
|
|
}),
|
|
|
- processSetting: processSetting.value
|
|
|
+ processSetting: processSetting.value,
|
|
|
+ processPermissionList: processPermissionList.value
|
|
|
}
|
|
|
const res = await process.progressCreateApi(params)
|
|
|
ElMessage.success('操作成功')
|
|
@@ -182,6 +183,11 @@ const getCurrentProcessDetailEv = () => {
|
|
|
processForm.value = JSON.parse(res.processForm) || {}
|
|
|
// flowStore.setProcessForm(processForm)
|
|
|
flowStore.setProcessSetting(res.processSetting)
|
|
|
+ processPermissionList.value = (res.processPermissionList || []).map(i => ({
|
|
|
+ ...i,
|
|
|
+ id: i.userId,
|
|
|
+ name: i.userName
|
|
|
+ }))
|
|
|
// 默认执行一次保存
|
|
|
const _refs = compRefs.value
|
|
|
for (let i = 0; i < _refs.length; i++) {
|