<template>
    <a-col :span="12">
        <a-card hoverable style="width: 100%">
            <template slot="actions" class="ant-card-actions">
                <div class="tw-h-full" @click="onEdit">编辑</div>
                <div class="tw-h-full">
                    <Del class="tw-h-full" :onOk="onDel" />
                </div>
            </template>
            <a-card-meta :title="`${value.orgName}[${value.jobName}]`">
                <template #description>
                    <div>兼职/全职：{{ value.isFullName }}</div>
                    <div>开始时间：{{ value.startDate }}</div>
                    <div>结束时间：{{ value.endDate }}</div>
                </template>
            </a-card-meta>
        </a-card>
    </a-col>
</template>

<script>
import Del from '@/components/popconfirm_delete/index.vue';

export default {
    components: { Del },
    model: {
        prop: 'value',
        event: 'change',
    },
    props: {
        value: Object,
    },
    methods: {
        onEdit() {
            this.$emit('edit', this.value);
        },
        onDel() {
            this.$emit('del', this.value);
        },
    },
};
</script>
