mirror of https://github.com/certd/certd
refactor: cancel tip
parent
6a3955a1d6
commit
d2fad719fa
|
@ -5,12 +5,11 @@
|
|||
</template>
|
||||
<p>
|
||||
<fs-date-format :model-value="runnable.status?.startTime"></fs-date-format>
|
||||
<a-tag class="ml-1" :color="status.color">{{ status.label }}</a-tag>
|
||||
|
||||
<a-tag class="ml-1" :color="status.color" :closable="status.value === 'start'" @close="cancelTask">
|
||||
{{ status.label }}
|
||||
</a-tag>
|
||||
<a-tag v-if="isCurrent" class="pointer" color="green" :closable="true" @close="cancel">当前</a-tag>
|
||||
<a-tag v-else-if="!editMode" class="pointer" color="blue" @click="view">查看</a-tag>
|
||||
|
||||
<a-tag v-if="status.value === 'start'" class="pointer" color="red" @click="cancelTask">取消</a-tag>
|
||||
</p>
|
||||
</a-timeline-item>
|
||||
</template>
|
||||
|
@ -66,7 +65,6 @@ export default defineComponent({
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
return {
|
||||
status,
|
||||
|
|
Loading…
Reference in New Issue