feat:流程-流程实例的版本问题

1.流程变更后,新旧流程按版本执行,按各种版本的流程定义和流程配置继续流转
2.可以切换流程实例的版本
This commit is contained in:
lvjunzhao
2025-02-25 18:42:40 +08:00
parent 2850e8abf5
commit 2d240ccf0c
6 changed files with 399 additions and 23 deletions

View File

@ -19,21 +19,23 @@
import LookTask from './flow/LookTask.vue';
import { LoadingBox } from '/@/components/ModalPanel/index';
import { notification } from 'ant-design-vue';
import { onMounted, ref } from 'vue';
import { onActivated, onMounted, ref } from 'vue';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
const props = withDefaults(
defineProps<{
processId: string;
taskId: string;
visible?: boolean;
}>(),
{
processId: '',
taskId: '',
visible: false,
const props = defineProps({
processId: {
type: String,
default: ''
},
);
taskId: {
type: String,
default: ''
},
visible: {
type: Boolean,
default: false
},
})
let emits = defineEmits(['close']);
let visible = ref(false);
let showLoading = ref(false);
@ -42,7 +44,7 @@
look();
}
});
async function look() {
function look() {
if (props.processId) {
showLoading.value = false;
visible.value = true;
@ -59,4 +61,7 @@
visible.value = false;
emits('close');
}
defineExpose({
look
});
</script>