feat:流程-流程实例的版本问题
1.流程变更后,新旧流程按版本执行,按各种版本的流程定义和流程配置继续流转 2.可以切换流程实例的版本
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user