|
|
@ -74,7 +74,7 @@ |
|
|
|
align="center" |
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column align="center" |
|
|
|
label="小程序码" |
|
|
|
label="e锦水" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
prop="codeUrl"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -93,6 +93,26 @@ |
|
|
|
</el-popover> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" |
|
|
|
label="志愿者去哪" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
prop="volunteerCodeUrl"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-popover placement="right" |
|
|
|
title="" |
|
|
|
trigger="click" |
|
|
|
class="big_image"> |
|
|
|
<el-image slot="reference" |
|
|
|
min-width="70" |
|
|
|
height="70" |
|
|
|
v-if="scope.row.volunteerCodeUrl" |
|
|
|
:src="scope.row.volunteerCodeUrl" |
|
|
|
:alt="scope.row.volunteerCodeUrl"></el-image> |
|
|
|
<img class="big_image" |
|
|
|
:src="scope.row.volunteerCodeUrl" /> |
|
|
|
</el-popover> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="createdTime" |
|
|
|
label="创建时间" |
|
|
|
header-align="center" |
|
|
@ -110,7 +130,7 @@ |
|
|
|
<el-button v-if="scope.row.codeUrl" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="downloadHandle(scope.row.codeUrl)">下载</el-button> |
|
|
|
@click="downloadHandle(scope.row.codeUrl, scope.row.volunteerCodeUrl)">下载</el-button> |
|
|
|
<el-button v-if=" |
|
|
|
$hasPermission('sys:deptmacode:create') && !scope.row.codeUrl |
|
|
|
" |
|
|
@ -295,8 +315,9 @@ export default { |
|
|
|
this.dataForm.streetId = this.dataForm.communityId = this.dataForm.gridId = null |
|
|
|
this.communityList = this.gridList = [] |
|
|
|
}, |
|
|
|
downloadHandle (codeUrl) { |
|
|
|
downloadHandle (codeUrl, volunteerCodeUrl) { |
|
|
|
window.location.href = `${window.SITE_CONFIG['apiURL']}/oss/file/download?fileUrl=${codeUrl}` |
|
|
|
window.location.href = `${window.SITE_CONFIG['apiURL']}/oss/file/download?fileUrl=${volunteerCodeUrl}` |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|