|
@@ -34,13 +34,13 @@ const flowInfo = ref({
|
|
|
processIcon: 'approval', // 流程图标
|
|
|
categoryId: '', // 流程组分类ID
|
|
|
// useScope: 0, // 使用范围 0,全员 1,指定人员(业务关联) 2,均不可提交
|
|
|
- processActorList: [
|
|
|
- {
|
|
|
- actorId: 0, // 参与者ID
|
|
|
- actorName: '', // 参与者
|
|
|
- actorType: 0 // 参与者类型 0,用户 1,部门 2,用户组
|
|
|
- }
|
|
|
- ], // 流程参与者,当使用范围为指定人员时候设置
|
|
|
+ // processActorList: [
|
|
|
+ // {
|
|
|
+ // actorId: 0, // 参与者ID
|
|
|
+ // actorName: '', // 参与者
|
|
|
+ // actorType: 0 // 参与者类型 0,用户 1,部门 2,用户组
|
|
|
+ // }
|
|
|
+ // ], // 流程参与者,当使用范围为指定人员时候设置
|
|
|
processPermissionList: [
|
|
|
{
|
|
|
userId: 0, // 用户ID
|
|
@@ -198,15 +198,15 @@ const initBaseicInfEv = item => {
|
|
|
flowStore.setModelContent(modelContent)
|
|
|
// updateRemoteCache()
|
|
|
flowProcessId.value = queryObj.value.id // 赋值流程id
|
|
|
- if (item.useScope === 1) {
|
|
|
- nodeRoleList.value = item.processActorList.map(item => {
|
|
|
- return {
|
|
|
- id: item.actorId,
|
|
|
- name: item.actorName,
|
|
|
- actorType: 0
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (item.useScope === 1) {
|
|
|
+ // nodeRoleList.value = item.processActorList.map(item => {
|
|
|
+ // return {
|
|
|
+ // id: item.actorId,
|
|
|
+ // name: item.actorName,
|
|
|
+ // actorType: 0
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
|
|
|
if (item.processPermissionList && item.processPermissionList.length) {
|
|
|
nodeRoleManageList.value = item.processPermissionList.map(item => {
|
|
@@ -287,7 +287,7 @@ const chooseIconEv = item => {
|
|
|
|
|
|
// ----- 缓存相关 start ------
|
|
|
const flowBaseInfoWatcher = computed(() => {
|
|
|
- const { processKey, processName, processIcon, categoryId, remark, processActorList, processPermissionList } = flowInfo.value
|
|
|
+ const { processKey, processName, processIcon, categoryId, remark, processPermissionList } = flowInfo.value
|
|
|
// 只关注参数相关的数据变更
|
|
|
const _s = {
|
|
|
processKey, // 流程显示名称
|
|
@@ -295,7 +295,6 @@ const flowBaseInfoWatcher = computed(() => {
|
|
|
processIcon, // 流程图标
|
|
|
categoryId, // 流程组分类ID
|
|
|
remark, // 备注说明
|
|
|
- processActorList, // 流程参与者,当使用范围为指定人员时候设置
|
|
|
processPermissionList // 流程定义权限
|
|
|
}
|
|
|
console.log('第一步:监听的对象属性 ------', _s)
|