|
|
|
@ -16,18 +16,18 @@
|
|
|
|
|
*/ |
|
|
|
|
import { ref, watch } from 'vue' |
|
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
|
import type { IJsonItem } from '../types' |
|
|
|
|
import { useTaskNodeStore } from '@/store/project/task-node' |
|
|
|
|
import { queryProcessDefinitionByCode } from '@/service/modules/process-definition' |
|
|
|
|
import type { IJsonItem } from '../types' |
|
|
|
|
|
|
|
|
|
export function useSwitch( |
|
|
|
|
model: { [field: string]: any }, |
|
|
|
|
projectCode: number |
|
|
|
|
): IJsonItem[] { |
|
|
|
|
const { t } = useI18n() |
|
|
|
|
const branchFlowOptions = ref([] as any) |
|
|
|
|
|
|
|
|
|
const taskStore = useTaskNodeStore() |
|
|
|
|
const branchFlowOptions = ref(taskStore.postTaskOptions as any) |
|
|
|
|
const loading = ref(false) |
|
|
|
|
|
|
|
|
|
const getOtherTaskDefinitionList = async () => { |
|
|
|
|
if (loading.value) return |
|
|
|
|
loading.value = true |
|
|
|
|