|
@@ -44,6 +44,10 @@
|
|
|
</FlowNodeAvatar>
|
|
|
</template>
|
|
|
</div>
|
|
|
+ <div v-else-if="assigneeDesc[v.name]">
|
|
|
+ <!-- 没有assigneeMap 的情况下 尝试获取描述 -->
|
|
|
+ <el-tag>{{ assigneeDesc[v.name] }}</el-tag>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-timeline-item>
|
|
|
<el-timeline-item>
|
|
@@ -70,6 +74,8 @@ import { ref, shallowRef, computed, reactive, watchEffect } from 'vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import UseSelect from '@/components/scWorkflow/select.vue'
|
|
|
import FlowNodeAvatar from '@/components/Flow/FlowNodeAvatar.vue'
|
|
|
+import { approveTypeOptions_config, selectModeOptions_config, setTypeOptions_config } from '@/components/scWorkflow/nodes/config'
|
|
|
+
|
|
|
const EReditorRef = ref()
|
|
|
type Props = {
|
|
|
modelValue: boolean
|
|
@@ -93,6 +99,9 @@ const useSelectRef = ref()
|
|
|
const assigneeMap = ref<{
|
|
|
[key: string]: Assignee
|
|
|
}>({})
|
|
|
+const assigneeDesc = ref<{
|
|
|
+ [key: string]: string
|
|
|
+}>({})
|
|
|
const active_assigneeKey = ref<string>()
|
|
|
const active_selectOpts = ref({})
|
|
|
// const userMap = ref(new Map())
|
|
@@ -204,6 +213,7 @@ const packageProcess = (data, list = []) => {
|
|
|
break
|
|
|
case 2:
|
|
|
// 主管 (不需要选择)
|
|
|
+ assigneeDesc.value[config.name] = config.examineLevel === 1 ? '直接主管' : `发起人的第${config.examineLevel}级主管`
|
|
|
break
|
|
|
case 3:
|
|
|
// 角色 选择角色 (允许重新选择)
|
|
@@ -218,9 +228,11 @@ const packageProcess = (data, list = []) => {
|
|
|
user_fn()
|
|
|
break
|
|
|
case 5: // 发起人自己 (不能选择)
|
|
|
+ assigneeDesc.value[config.name] = setTypeOptions_config[5]
|
|
|
break
|
|
|
case 6:
|
|
|
// 连续多级主管 (不能选择)
|
|
|
+ assigneeDesc.value[config.name] = config.examineLevel === 1 ? '直接主管' : `发起人的第${config.examineLevel}级主管`
|
|
|
break
|
|
|
}
|
|
|
}
|