mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
feat: 更新工作流任务卡片
This commit is contained in:
@@ -144,20 +144,24 @@ const resolveProgress = (item: Workflow) => {
|
|||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<VCard class="mx-auto" @click="handleFlow(workflow)">
|
<VCard class="mx-auto" @click="handleFlow(workflow)" :ripple="false">
|
||||||
<VCardItem class="py-3" :class="`bg-${resolveStatusVariant(workflow?.state).color}`">
|
<VCardItem class="py-3" :class="`bg-${resolveStatusVariant(workflow?.state).color}`">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<IconBtn v-if="workflow?.state === 'P'">
|
<VAvatar variant="text" class="me-2">
|
||||||
<VIcon color="success" icon="mdi-play" @click.stop="handleEnable(workflow)" />
|
<VIcon
|
||||||
</IconBtn>
|
v-if="workflow?.state === 'P'"
|
||||||
<IconBtn v-else>
|
color="success"
|
||||||
<VIcon color="warning" icon="mdi-pause" @click.stop="handlePause(workflow)" />
|
size="x-large"
|
||||||
</IconBtn>
|
icon="mdi-play"
|
||||||
|
@click.stop="handleEnable(workflow)"
|
||||||
|
/>
|
||||||
|
<VIcon v-else color="warning" icon="mdi-pause" size="x-large" @click.stop="handlePause(workflow)" />
|
||||||
|
</VAvatar>
|
||||||
</template>
|
</template>
|
||||||
<VCardTitle>
|
<VCardTitle class="text-white">
|
||||||
{{ workflow?.name }}
|
{{ workflow?.name }}
|
||||||
</VCardTitle>
|
</VCardTitle>
|
||||||
<VCardSubtitle>{{ workflow?.description }}</VCardSubtitle>
|
<VCardSubtitle class="text-white">{{ workflow?.description }}</VCardSubtitle>
|
||||||
<template #append>
|
<template #append>
|
||||||
<IconBtn>
|
<IconBtn>
|
||||||
<VIcon icon="mdi-vector-polyline-edit" @click.stop="handleFlow(workflow)" />
|
<VIcon icon="mdi-vector-polyline-edit" @click.stop="handleFlow(workflow)" />
|
||||||
|
|||||||
Reference in New Issue
Block a user