|
|
@ -97,7 +97,7 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="publishStaffName" |
|
|
|
align="center" |
|
|
|
min-width="180" |
|
|
|
width="120" |
|
|
|
label="发布人" |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
</el-table-column> |
|
|
@ -138,12 +138,19 @@ |
|
|
|
width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-button @click="handleEdit(scope.row)" |
|
|
|
<el-button @click="handleDetail(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class=".div-table-button--detail">查看</el-button> |
|
|
|
|
|
|
|
<el-button v-if="user.id===scope.row.publishStaffId" |
|
|
|
@click="handleEdit(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--edit">修改</el-button> |
|
|
|
|
|
|
|
<el-button @click="handleDel(scope.row)" |
|
|
|
<el-button v-if="user.id===scope.row.publishStaffId" |
|
|
|
@click="handleDel(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--delete">删除</el-button> |
|
|
@ -186,6 +193,7 @@ |
|
|
|
@closed="showEdit = false"> |
|
|
|
<add-activity ref="ref_edit_form" |
|
|
|
:formType="formType" |
|
|
|
:icPartyActId="icPartyActId" |
|
|
|
@handleOk="handleOk" |
|
|
|
@handleClose="handleClose"></add-activity> |
|
|
|
</el-dialog> |
|
|
@ -322,9 +330,17 @@ export default { |
|
|
|
this.formType = 'add' |
|
|
|
this.showAdd = true; |
|
|
|
|
|
|
|
}, |
|
|
|
async handleDetail (row) { |
|
|
|
this.icPartyActId = row.icPartyActId |
|
|
|
this.addDiaTitle = '查看活动计划' |
|
|
|
this.formType = 'detail' |
|
|
|
this.showEdit = true |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
async handleEdit (row) { |
|
|
|
this.icPartyActId = row.icPartyActId |
|
|
|
this.formType = 'edit' |
|
|
|
this.showEdit = true |
|
|
|
|
|
|
|