|
@@ -12,7 +12,6 @@ const visiblePopover = ref(false)
|
|
const selectVisible = ref(false)
|
|
const selectVisible = ref(false)
|
|
const useSelectRef = ref(null)
|
|
const useSelectRef = ref(null)
|
|
const nodeRoleList = ref([])
|
|
const nodeRoleList = ref([])
|
|
-const nodeRoleManageList = ref([])
|
|
|
|
const currentNode = ref('nodeRoleList')
|
|
const currentNode = ref('nodeRoleList')
|
|
const formRef = ref()
|
|
const formRef = ref()
|
|
const options = ref([])
|
|
const options = ref([])
|
|
@@ -105,7 +104,7 @@ const selectContentEv = item => {
|
|
if (currentNode.value === 'nodeRoleList') {
|
|
if (currentNode.value === 'nodeRoleList') {
|
|
nodeRoleList.value = item
|
|
nodeRoleList.value = item
|
|
const flag = !item.length
|
|
const flag = !item.length
|
|
- flowInfo.value.useScope = flag ? 0 : 1
|
|
|
|
|
|
+ flowInfo.useScope = flag ? 0 : 1
|
|
let processActorList = []
|
|
let processActorList = []
|
|
for (let i in item) {
|
|
for (let i in item) {
|
|
processActorList.push({
|
|
processActorList.push({
|
|
@@ -114,7 +113,7 @@ const selectContentEv = item => {
|
|
actorType: 0
|
|
actorType: 0
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- flowInfo.value.processActorList = processActorList
|
|
|
|
|
|
+ flowInfo.processActorList = processActorList
|
|
} else {
|
|
} else {
|
|
let processPermissionList = []
|
|
let processPermissionList = []
|
|
for (let i in item) {
|
|
for (let i in item) {
|
|
@@ -126,7 +125,6 @@ const selectContentEv = item => {
|
|
operateData: 0
|
|
operateData: 0
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- nodeRoleManageList.value = item
|
|
|
|
flowInfo.processPermissionList = processPermissionList
|
|
flowInfo.processPermissionList = processPermissionList
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -135,7 +133,7 @@ const delRole = (index, itemName) => {
|
|
if (itemName === 'nodeRoleList') {
|
|
if (itemName === 'nodeRoleList') {
|
|
nodeRoleList.value.splice(index, 1)
|
|
nodeRoleList.value.splice(index, 1)
|
|
} else {
|
|
} else {
|
|
- nodeRoleManageList.value.splice(index, 1)
|
|
|
|
|
|
+ flowInfo.processPermissionList.splice(index, 1)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -144,26 +142,6 @@ const getGroupList = async () => {
|
|
options.value = data || []
|
|
options.value = data || []
|
|
}
|
|
}
|
|
|
|
|
|
-const initBaseicInfEv = item => {
|
|
|
|
- const { processForm, modelContent, ...rest } = item
|
|
|
|
- flowInfo.value = rest
|
|
|
|
- flowStore.setProcessForm(processForm)
|
|
|
|
- flowStore.setModelContent(modelContent)
|
|
|
|
- flowProcessId.value = queryObj.value.id // 赋值流程id
|
|
|
|
-
|
|
|
|
- if (item.processPermissionList && item.processPermissionList.length) {
|
|
|
|
- nodeRoleManageList.value = item.processPermissionList.map(item => {
|
|
|
|
- return {
|
|
|
|
- id: item.userId,
|
|
|
|
- name: item.userName,
|
|
|
|
- operateApproval: 0,
|
|
|
|
- operateOwner: 0,
|
|
|
|
- operateData: 0
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// icon图标点击保存
|
|
// icon图标点击保存
|
|
const chooseIconEv = item => {
|
|
const chooseIconEv = item => {
|
|
value.processIcon = item
|
|
value.processIcon = item
|
|
@@ -252,14 +230,14 @@ defineExpose({
|
|
</div>
|
|
</div>
|
|
<div class="tags-list" style="margin-top: 15px; width: 100%">
|
|
<div class="tags-list" style="margin-top: 15px; width: 100%">
|
|
<el-tag
|
|
<el-tag
|
|
- v-for="(role, index) in nodeRoleManageList"
|
|
|
|
- :key="role.id"
|
|
|
|
|
|
+ v-for="(user, index) in flowInfo.processPermissionList"
|
|
|
|
+ :key="user.userId"
|
|
type="info"
|
|
type="info"
|
|
closable
|
|
closable
|
|
style="margin-right: 8px"
|
|
style="margin-right: 8px"
|
|
@close="delRole(index, 'nodeRoleManageList')"
|
|
@close="delRole(index, 'nodeRoleManageList')"
|
|
- >{{ role.name }}</el-tag
|
|
|
|
- >
|
|
|
|
|
|
+ >{{ user.userName }}
|
|
|
|
+ </el-tag>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|