初始版本提交

This commit is contained in:
yaoyn
2024-02-05 09:15:37 +08:00
parent b52d4414be
commit 445292105f
1848 changed files with 236859 additions and 75 deletions

View File

@ -0,0 +1,44 @@
<template>
<span @click.stop="restart"
><slot></slot>
<LaunchProcess
v-if="visible"
:schemaId="schemaId"
:taskId="taskId"
:processId="processId"
@close="close"
/>
</span>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import LaunchProcess from './LaunchProcess.vue';
const props = defineProps({
schemaId: {
type: String,
required: true,
},
taskId: {
type: String,
},
processId: {
type: String,
},
});
let emits = defineEmits(['close']);
let visible = ref(false);
function restart() {
if (props.taskId) {
visible.value = true;
} else {
// 只能选一个
visible.value = false;
}
}
function close() {
visible.value = false;
emits('close');
}
</script>