|
|
@ -1,22 +1,25 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="div_btn"> |
|
|
|
<el-button v-if="agencyObj.level === 'building' || source !== 'search'" |
|
|
|
<!-- v-if="agencyObj.level === 'building' || source !== 'search'" --> |
|
|
|
<el-button |
|
|
|
v-show="btnAuths.ic_house_add" |
|
|
|
style="float: left" |
|
|
|
class="diy-button--add" |
|
|
|
size="small" |
|
|
|
@click="handleAdd">新增房屋</el-button> |
|
|
|
<div class="btn_upload" |
|
|
|
v-if="showImportBtn"> |
|
|
|
> |
|
|
|
<!-- v-if="showImportBtn" --> |
|
|
|
<el-button :headers="$getElUploadHeaders()" |
|
|
|
v-if="btnAuths.ic_house_import" |
|
|
|
|
|
|
|
style="float: left" |
|
|
|
class="diy-button--export" |
|
|
|
size="small" |
|
|
|
@click="handleExportModule">下载房屋模板</el-button> |
|
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
|
<el-upload ref="upload" |
|
|
|
v-if="btnAuths.ic_house_import" |
|
|
|
|
|
|
|
:multiple="false" |
|
|
|
:show-file-list="false" |
|
|
|
:before-upload="beforeUpload" |
|
|
@ -25,31 +28,36 @@ |
|
|
|
:limit="1" |
|
|
|
:on-exceed="handleExceed" |
|
|
|
:http-request="uploadFile"> |
|
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
|
<el-button style="margin-left: 10px" |
|
|
|
size="small" |
|
|
|
class="diy-button--delete">导入房屋数据</el-button> |
|
|
|
</el-upload> |
|
|
|
</div> |
|
|
|
<el-button style="float: left; margin-left: 10px" |
|
|
|
v-if="btnAuths.ic_house_export" |
|
|
|
|
|
|
|
class="diy-button--reset" |
|
|
|
size="small" |
|
|
|
@click="handleExport">导出</el-button> |
|
|
|
<!-- v-if="btnAuths.ic_house_export" --> |
|
|
|
<el-button style="float: left; margin-left: 10px" |
|
|
|
v-if="btnAuths.ic_house_batch_del" |
|
|
|
|
|
|
|
class="diy-button--more" |
|
|
|
size="small" |
|
|
|
@click="deleteBatch">批量删除</el-button> |
|
|
|
<!-- v-if="btnAuths.ic_house_batch_del" --> |
|
|
|
<el-button style="margin-left: 10px" |
|
|
|
v-if="btnAuths.ic_house_export_yhyd" |
|
|
|
|
|
|
|
class="diy-button--export" |
|
|
|
size="small" |
|
|
|
:disabled="yihuyidangDisabled" |
|
|
|
@click="handleExportYihuyidang()">导出一户一档</el-button> |
|
|
|
<!-- v-if="btnAuths.ic_house_export_yhyd" --> |
|
|
|
<el-button size="small" |
|
|
|
class="diy-button--add" |
|
|
|
v-if="btnAuths.ic_house_smart_import && displayedBaobiaoBtn" |
|
|
|
|
|
|
|
@click="reportForm">智能填报</el-button> |
|
|
|
<!-- v-if="btnAuths.ic_house_smart_import && displayedBaobiaoBtn" --> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="div_table_item"> |
|
|
@ -150,18 +158,20 @@ |
|
|
|
align="center" |
|
|
|
class="operate"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- v-if="btnAuths.ic_house_view" --> |
|
|
|
<el-button type="text" |
|
|
|
v-if="btnAuths.ic_house_view" |
|
|
|
|
|
|
|
class="div-table-button--detail" |
|
|
|
size="small" |
|
|
|
@click="handleDetail(scope.row)">查看</el-button> |
|
|
|
<el-button v-if="btnAuths.ic_house_update && scope.row.showBtn" |
|
|
|
<!-- v-if="btnAuths.ic_house_update && scope.row.showBtn" --> |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
class="div-table-button--edit" |
|
|
|
size="small" |
|
|
|
@click="handleEdit(scope.row)">修改</el-button> |
|
|
|
|
|
|
|
<el-button v-if="btnAuths.ic_house_del && scope.row.showBtn" |
|
|
|
<!-- v-if="btnAuths.ic_house_del && scope.row.showBtn" --> |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
class="div-table-button--delete" |
|
|
|
size="small" |
|
|
|