|
@@ -20,25 +20,27 @@
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div style="padding-bottom: 6px">{{ v.name }}</div>
|
|
|
- <div v-if="v.type === 1" style="display: flex; align-items: center; gap: 6px">
|
|
|
- <el-tooltip content="添加用户" placement="left">
|
|
|
- <el-button style="width: 32px" @click="selectHandler(v.name, 1)">
|
|
|
- <svg-icon style="font-size: 18px" icon-class="flow-user-add" />
|
|
|
- </el-button>
|
|
|
- </el-tooltip>
|
|
|
- <FlowNodeAvatar v-for="(item, index) in userMap.get(v.name).assignees" :key="index" :name="item.name" style="margin-top: 5px" />
|
|
|
- </div>
|
|
|
- <div v-if="v.type === 2" style="display: flex; align-items: center; gap: 6px">
|
|
|
- <el-tooltip content="添加角色" placement="left">
|
|
|
- <el-button style="width: 32px" @click="selectHandler(v.name, 2)">
|
|
|
- <svg-icon style="font-size: 18px" icon-class="flow-group-add" />
|
|
|
- </el-button>
|
|
|
- </el-tooltip>
|
|
|
- <FlowNodeAvatar v-for="(item, index) in userMap.get(v.name).assignees" :key="index" :name="item.name" style="margin-top: 5px">
|
|
|
- <template #avatar>
|
|
|
- <svg-icon icon-class="flow-group" color="#fff" />
|
|
|
- </template>
|
|
|
- </FlowNodeAvatar>
|
|
|
+ <div v-if="v.type !== 0">
|
|
|
+ <div v-if="userMap.get(v.name).type === 1" style="display: flex; align-items: center; gap: 6px">
|
|
|
+ <el-tooltip content="添加用户" placement="left">
|
|
|
+ <el-button style="width: 32px" @click="selectHandler(v.name, 1)">
|
|
|
+ <svg-icon style="font-size: 18px" icon-class="flow-user-add" />
|
|
|
+ </el-button>
|
|
|
+ </el-tooltip>
|
|
|
+ <FlowNodeAvatar v-for="(item, index) in userMap.get(v.name).assignees" :key="index" :name="item.name" style="margin-top: 5px" />
|
|
|
+ </div>
|
|
|
+ <div v-else style="display: flex; align-items: center; gap: 6px">
|
|
|
+ <el-tooltip content="添加角色" placement="left">
|
|
|
+ <el-button style="width: 32px" @click="selectHandler(v.name, 2)">
|
|
|
+ <svg-icon style="font-size: 18px" icon-class="flow-group-add" />
|
|
|
+ </el-button>
|
|
|
+ </el-tooltip>
|
|
|
+ <FlowNodeAvatar v-for="(item, index) in userMap.get(v.name).assignees" :key="index" :name="item.name" style="margin-top: 5px">
|
|
|
+ <template #avatar>
|
|
|
+ <svg-icon icon-class="flow-group" color="#fff" />
|
|
|
+ </template>
|
|
|
+ </FlowNodeAvatar>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-timeline-item>
|