mirror of https://github.com/certd/certd
refactor: cancel tip
parent
6a3955a1d6
commit
d2fad719fa
|
@ -5,12 +5,11 @@
|
||||||
</template>
|
</template>
|
||||||
<p>
|
<p>
|
||||||
<fs-date-format :model-value="runnable.status?.startTime"></fs-date-format>
|
<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-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-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>
|
</p>
|
||||||
</a-timeline-item>
|
</a-timeline-item>
|
||||||
</template>
|
</template>
|
||||||
|
@ -66,7 +65,6 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
status,
|
status,
|
||||||
|
|
Loading…
Reference in New Issue