|
|
@ -33,6 +33,10 @@ |
|
|
|
class="diy-button--reset" |
|
|
|
size="small" |
|
|
|
@click="resetSearch">重置</el-button> |
|
|
|
<!-- <el-button style="margin-left:10px" |
|
|
|
class="diy-button--reset" |
|
|
|
size="small" |
|
|
|
@click="resetSearch">重置</el-button> --> |
|
|
|
</div> |
|
|
|
<div class="div_btn"> |
|
|
|
<el-button style="" |
|
|
@ -119,6 +123,11 @@ |
|
|
|
<el-table-column prop="neighborHoodName" |
|
|
|
label="小区名称" |
|
|
|
min-width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a class="name-a" @click="handleDetail(scope.row)"> |
|
|
|
{{ scope.row.neighborHoodName }} |
|
|
|
</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="agencyName" |
|
|
|
label="所属组织" |
|
|
@ -157,9 +166,9 @@ |
|
|
|
size="small" |
|
|
|
@click="handleToNextLevel(scope.row)">进入</el-button> --> |
|
|
|
<el-button type="text" |
|
|
|
class="div-table-button--detail" |
|
|
|
class="div-table-button--delete" |
|
|
|
size="small" |
|
|
|
@click="handleDetail(scope.row)">查看</el-button> |
|
|
|
@click="handleDownQr(scope.row)">二维码</el-button> |
|
|
|
<el-button v-if="scope.row.showBtn" |
|
|
|
type="text" |
|
|
|
class="div-table-button--edit" |
|
|
@ -223,6 +232,7 @@ import CommunityForm from './communityForm' |
|
|
|
import { requestPost } from "@/js/dai/request"; |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import { Loading } from 'element-ui' // 引入Loading服务 |
|
|
|
import axios from 'axios' |
|
|
|
|
|
|
|
let loading // 加载动画 |
|
|
|
export default { |
|
|
@ -528,7 +538,22 @@ export default { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async handleDownQr(row) { |
|
|
|
const url = window.SITE_CONFIG['apiURL'] + `/gov/org/icneighborhood/createQrCode/${row.neighborHoodId}` |
|
|
|
await axios({ |
|
|
|
method: 'POST', |
|
|
|
url, |
|
|
|
responseType: 'blob' |
|
|
|
}).then(res => { |
|
|
|
console.log('res----1r', res) |
|
|
|
if (res.headers["content-disposition"]) { |
|
|
|
let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1]) |
|
|
|
console.log('filename', fileName) |
|
|
|
this.download(res.data, fileName) //释放掉blob对象 |
|
|
|
} else this.$message.error('下载失败') |
|
|
|
// this.download(res.data, '1.png') |
|
|
|
}) |
|
|
|
}, |
|
|
|
//导出表格 |
|
|
|
async handleExport () { |
|
|
|
let title = this.agencyObj.label |
|
|
|