|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="main flex-1"> |
|
|
|
<a-spin :spinning="showEdit"> |
|
|
|
<div style="width:100%" v-if="lists && lists.length > 0"> |
|
|
|
<div style="width: 100%" v-if="lists && lists.length > 0"> |
|
|
|
<a-table |
|
|
|
:columns="columns" |
|
|
|
:data-source="lists" |
|
|
@ -19,45 +19,30 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot="time" slot-scope="text, record"> |
|
|
|
<span v-if="record.releaseTime">{{ record.releaseTime}}</span> |
|
|
|
<span v-if="record.closeTime">-{{record.closeTime}}</span> |
|
|
|
<span v-if="record.releaseTime">{{ record.releaseTime }}</span> |
|
|
|
<span v-if="record.closeTime">-{{ record.closeTime }}</span> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot="auditStatus" slot-scope="text, record"> |
|
|
|
<a-tag |
|
|
|
:color="record.auditStatus === 2 ? 'green' : record.auditStatus === 1 ? 'red' : 'blue'" |
|
|
|
>{{ record.auditStatus === 2 ? '已通过' : record.auditStatus === 1 ? '未通过' : '审核中' }}</a-tag> |
|
|
|
<a-tag :color="record.auditStatus === 2 ? 'green' : record.auditStatus === 1 ? 'red' : 'blue'">{{ |
|
|
|
record.auditStatus === 2 ? '已通过' : record.auditStatus === 1 ? '未通过' : '审核中' |
|
|
|
}}</a-tag> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot="examine" slot-scope="text, record"> |
|
|
|
<div class="d-flex flex-column align-center"> |
|
|
|
<a-button |
|
|
|
@click="handleApply(record, 2)" |
|
|
|
size="small" |
|
|
|
type="primary" |
|
|
|
v-if="record.auditStatus !== 2" |
|
|
|
>通过</a-button> |
|
|
|
<a-button @click="handleApply(record, 2)" size="small" type="primary" v-if="record.auditStatus !== 2">通过</a-button> |
|
|
|
<a-button @click="handleApply(record, 1)" size="small" type="danger" v-else>不通过</a-button> |
|
|
|
<a-textarea class="fill-width mt-3" placeholder="备注" v-model="record.remark" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot="edit" slot-scope="text, record"> |
|
|
|
<a-icon |
|
|
|
@click="showEditModal(record)" |
|
|
|
class="pointer mr-5" |
|
|
|
theme="twoTone" |
|
|
|
type="edit" |
|
|
|
/> |
|
|
|
<a-button @click="openEnroll(record.activityId)" size="small" type="primary">活动报名</a-button> |
|
|
|
<a-icon @click="showEditModal(record)" class="pointer mr-5" theme="twoTone" type="edit" /> |
|
|
|
<a-button @click="openEnroll(record.activityId)" size="small" type="primary">查看报名信息</a-button> |
|
|
|
</template> |
|
|
|
|
|
|
|
<div |
|
|
|
class="d-flex flex-column" |
|
|
|
slot="expandedRowRender" |
|
|
|
slot-scope="record" |
|
|
|
style="margin: 0" |
|
|
|
> |
|
|
|
<div class="d-flex flex-column" slot="expandedRowRender" slot-scope="record" style="margin: 0"> |
|
|
|
<a-spin :spinning="spinning" tip="详情加载中..."> |
|
|
|
<div class="d-flex flex-nowrap justify-space-between mb-3"> |
|
|
|
<div class="d-flex flex-row"> |
|
|
@ -68,10 +53,15 @@ |
|
|
|
<div class="d-flex flex-row"> |
|
|
|
<span class="font-bold-14"> |
|
|
|
活动类型: |
|
|
|
<a-tag |
|
|
|
color="blue" |
|
|
|
v-if="record.info && record.info.activityType !== null" |
|
|
|
>{{ record.info.activityType === 0 ? '路演' : record.info.activityType === 1 ? '讲座' : record.info.activityType === 2 ? '沙龙' : '' }}</a-tag> |
|
|
|
<a-tag color="blue" v-if="record.info && record.info.activityType !== null">{{ |
|
|
|
record.info.activityType === 0 |
|
|
|
? '路演' |
|
|
|
: record.info.activityType === 1 |
|
|
|
? '讲座' |
|
|
|
: record.info.activityType === 2 |
|
|
|
? '沙龙' |
|
|
|
: '' |
|
|
|
}}</a-tag> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div class="d-flex flex-row"> |
|
|
@ -83,18 +73,15 @@ |
|
|
|
<div class="d-flex flex-nowrap justify-space-between mb-3"> |
|
|
|
<div class="d-flex flex-row"> |
|
|
|
<span class="font-bold-14">组织单位:</span> |
|
|
|
<span |
|
|
|
v-if="record.info && record.info.organization" |
|
|
|
>{{ record.info.organization }}</span> |
|
|
|
<span v-if="record.info && record.info.organization">{{ record.info.organization }}</span> |
|
|
|
<span v-else>暂无</span> |
|
|
|
</div> |
|
|
|
<div class="d-flex flex-row"> |
|
|
|
<span class="font-bold-14"> |
|
|
|
发布平台: |
|
|
|
<a-tag |
|
|
|
color="green" |
|
|
|
v-if="record.info && record.info.publishPlatform !== null" |
|
|
|
>{{ record.info.publishPlatform === 0 ? '绿谷' : record.info.publishPlatform === 1 ? '创时代' : '' }}</a-tag> |
|
|
|
<a-tag color="green" v-if="record.info && record.info.publishPlatform !== null">{{ |
|
|
|
record.info.publishPlatform === 0 ? '绿谷' : record.info.publishPlatform === 1 ? '创时代' : '' |
|
|
|
}}</a-tag> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -123,8 +110,8 @@ |
|
|
|
|
|
|
|
<!-- 编辑 --> |
|
|
|
<activity-edit |
|
|
|
:editItem="editItem" |
|
|
|
:editVisible="editVisible" |
|
|
|
:edit-item="editItem" |
|
|
|
:edit-visible="editVisible" |
|
|
|
@closeModal="closeModal" |
|
|
|
@getDetail="getDetail" |
|
|
|
@getSelectTeam="getSelectTeam" |
|
|
@ -191,9 +178,7 @@ const columns = [ |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'ActivityDate', |
|
|
|
components: { |
|
|
|
ActivityEdit, |
|
|
|
}, |
|
|
|
components: { ActivityEdit }, |
|
|
|
|
|
|
|
props: { lists: { type: Array, default: () => [] }, pagination: { type: Object, default: () => {} } }, |
|
|
|
|
|
|
|