|
|
@ -1,245 +1,213 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="div_btn"> |
|
|
|
<el-button |
|
|
|
v-if="agencyObj.level === 'building' || source !== 'search'" |
|
|
|
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"> |
|
|
|
<el-button |
|
|
|
:headers="$getElUploadHeaders()" |
|
|
|
v-if="btnAuths.ic_house_import" |
|
|
|
style="float: left" |
|
|
|
class="diy-button--export" |
|
|
|
size="small" |
|
|
|
@click="handleExportModule" |
|
|
|
>下载房屋模板</el-button |
|
|
|
> |
|
|
|
<el-upload |
|
|
|
ref="upload" |
|
|
|
v-if="btnAuths.ic_house_import" |
|
|
|
:multiple="false" |
|
|
|
:show-file-list="false" |
|
|
|
:before-upload="beforeUpload" |
|
|
|
action="" |
|
|
|
accept=".xls,.xlsx" |
|
|
|
:limit="1" |
|
|
|
:on-exceed="handleExceed" |
|
|
|
:http-request="uploadFile" |
|
|
|
> |
|
|
|
<el-button |
|
|
|
style="margin-left: 10px" |
|
|
|
size="small" |
|
|
|
class="diy-button--delete" |
|
|
|
>导入房屋数据</el-button |
|
|
|
> |
|
|
|
<el-button v-if="agencyObj.level === 'building' || source !== 'search'" |
|
|
|
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"> |
|
|
|
<el-button :headers="$getElUploadHeaders()" |
|
|
|
v-if="btnAuths.ic_house_import" |
|
|
|
style="float: left" |
|
|
|
class="diy-button--export" |
|
|
|
size="small" |
|
|
|
@click="handleExportModule">下载房屋模板</el-button> |
|
|
|
<el-upload ref="upload" |
|
|
|
v-if="btnAuths.ic_house_import" |
|
|
|
:multiple="false" |
|
|
|
:show-file-list="false" |
|
|
|
:before-upload="beforeUpload" |
|
|
|
action="" |
|
|
|
accept=".xls,.xlsx" |
|
|
|
:limit="1" |
|
|
|
:on-exceed="handleExceed" |
|
|
|
:http-request="uploadFile"> |
|
|
|
<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 |
|
|
|
> |
|
|
|
<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 |
|
|
|
> |
|
|
|
<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 |
|
|
|
> |
|
|
|
<el-button |
|
|
|
size="small" |
|
|
|
class="diy-button--add" |
|
|
|
v-if="btnAuths.ic_house_smart_import && displayedBaobiaoBtn" |
|
|
|
@click="reportForm" |
|
|
|
>智能填报</el-button |
|
|
|
> |
|
|
|
<el-button style="float: left; margin-left: 10px" |
|
|
|
v-if="btnAuths.ic_house_export" |
|
|
|
class="diy-button--reset" |
|
|
|
size="small" |
|
|
|
@click="handleExport">导出</el-button> |
|
|
|
<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> |
|
|
|
<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> |
|
|
|
<el-button size="small" |
|
|
|
class="diy-button--add" |
|
|
|
v-if="btnAuths.ic_house_smart_import && displayedBaobiaoBtn" |
|
|
|
@click="reportForm">智能填报</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="div_table_item"> |
|
|
|
<el-table |
|
|
|
ref="ref_table" |
|
|
|
:data="tableData" |
|
|
|
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" |
|
|
|
v-loading="tableLoading" |
|
|
|
@sort-change="handleSortOrderChange" |
|
|
|
border |
|
|
|
:height="tableHeight" |
|
|
|
style="width: 100%" |
|
|
|
@select-all="selectAll" |
|
|
|
@selection-change="selectionChange" |
|
|
|
> |
|
|
|
<el-table-column type="selection" :selectable="checkSelect" width="55"> |
|
|
|
<el-table ref="ref_table" |
|
|
|
:data="tableData" |
|
|
|
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" |
|
|
|
v-loading="tableLoading" |
|
|
|
@sort-change="handleSortOrderChange" |
|
|
|
border |
|
|
|
:height="tableHeight" |
|
|
|
style="width: 100%" |
|
|
|
@select-all="selectAll" |
|
|
|
@selection-change="selectionChange"> |
|
|
|
<el-table-column type="selection" |
|
|
|
:selectable="checkSelect" |
|
|
|
width="55"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
fixed="left" |
|
|
|
width="55" |
|
|
|
type="index" |
|
|
|
label="序号" |
|
|
|
:index="indexMethod" |
|
|
|
> |
|
|
|
<el-table-column fixed="left" |
|
|
|
width="55" |
|
|
|
type="index" |
|
|
|
label="序号" |
|
|
|
:index="indexMethod"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="houseNameShow" |
|
|
|
label="房屋名称" |
|
|
|
fixed="left" |
|
|
|
min-width="160" |
|
|
|
> |
|
|
|
<el-table-column prop="houseNameShow" |
|
|
|
label="房屋名称" |
|
|
|
fixed="left" |
|
|
|
min-width="160"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="neighborHoodName" |
|
|
|
label="所属小区" |
|
|
|
min-width="150" |
|
|
|
> |
|
|
|
<el-table-column prop="neighborHoodName" |
|
|
|
label="所属小区" |
|
|
|
min-width="150"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="buildingName" label="所属楼栋" width="80"> |
|
|
|
<el-table-column prop="buildingName" |
|
|
|
label="所属楼栋" |
|
|
|
width="80"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="unitNum" label="单元号" width="70"> |
|
|
|
<el-table-column prop="unitNum" |
|
|
|
label="单元号" |
|
|
|
width="70"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="doorName" label="门牌号" width="70"> |
|
|
|
<el-table-column prop="doorName" |
|
|
|
label="门牌号" |
|
|
|
width="70"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="houseType" label="类型" width="50"> |
|
|
|
<el-table-column prop="houseType" |
|
|
|
label="类型" |
|
|
|
width="50"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="purpose" label="用途" width="50"> |
|
|
|
<el-table-column prop="purpose" |
|
|
|
label="用途" |
|
|
|
width="50"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="rentFlag" label="房屋状态" width="80"> |
|
|
|
<el-table-column prop="rentFlag" |
|
|
|
label="房屋状态" |
|
|
|
width="80"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="ownerName" label="房主姓名" width="90"> |
|
|
|
<el-table-column prop="ownerName" |
|
|
|
label="房主姓名" |
|
|
|
width="90"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="ownerPhone" label="联系方式" width="110"> |
|
|
|
<el-table-column prop="ownerPhone" |
|
|
|
label="联系方式" |
|
|
|
width="110"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="ownerIdCard" label="身份证" width="170"> |
|
|
|
<el-table-column prop="ownerIdCard" |
|
|
|
label="身份证" |
|
|
|
width="170"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="remark" label="备注" width="170"> |
|
|
|
<el-table-column prop="remark" |
|
|
|
label="备注" |
|
|
|
width="170"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="sort" |
|
|
|
sortable="custom" |
|
|
|
min-width="140" |
|
|
|
label="排序" |
|
|
|
> |
|
|
|
<el-table-column prop="sort" |
|
|
|
sortable="custom" |
|
|
|
min-width="140" |
|
|
|
label="排序"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div @click="handleEditSort(scope.row)"> |
|
|
|
<span v-if="!scope.row.isChange">{{ scope.row.sort }}</span> |
|
|
|
<el-input-number |
|
|
|
v-else |
|
|
|
@change="handleChangeSort(scope.row)" |
|
|
|
v-model="scope.row.sort" |
|
|
|
class="item_width_4" |
|
|
|
:precision="2" |
|
|
|
size="small" |
|
|
|
:min="0" |
|
|
|
:max="9999" |
|
|
|
label="描述文字" |
|
|
|
></el-input-number> |
|
|
|
<el-input-number v-else |
|
|
|
@change="handleChangeSort(scope.row)" |
|
|
|
v-model="scope.row.sort" |
|
|
|
class="item_width_4" |
|
|
|
:precision="2" |
|
|
|
size="small" |
|
|
|
:min="0" |
|
|
|
:max="9999" |
|
|
|
label="描述文字"></el-input-number> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
label="操作" |
|
|
|
fixed="right" |
|
|
|
width="140" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
class="operate" |
|
|
|
> |
|
|
|
<el-table-column label="操作" |
|
|
|
fixed="right" |
|
|
|
width="140" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
class="operate"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<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" |
|
|
|
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" |
|
|
|
type="text" |
|
|
|
class="div-table-button--delete" |
|
|
|
size="small" |
|
|
|
@click="handleDelete(scope.row)" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
<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" |
|
|
|
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" |
|
|
|
type="text" |
|
|
|
class="div-table-button--delete" |
|
|
|
size="small" |
|
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<div> |
|
|
|
<el-pagination |
|
|
|
@size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="pageSize" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total" |
|
|
|
> |
|
|
|
<el-pagination @size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="pageSize" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total"> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 修改弹出框 --> |
|
|
|
<el-dialog |
|
|
|
:visible.sync="formShow" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
:title="formTitle" |
|
|
|
width="900px" |
|
|
|
top="5vh" |
|
|
|
class="dialog-h" |
|
|
|
@closed="diaClose" |
|
|
|
> |
|
|
|
<room-form |
|
|
|
ref="ref_form" |
|
|
|
@dialogCancle="addFormCancle" |
|
|
|
@dialogOk="addFormOk" |
|
|
|
></room-form> |
|
|
|
<el-dialog :visible.sync="formShow" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
:title="formTitle" |
|
|
|
width="900px" |
|
|
|
top="5vh" |
|
|
|
class="dialog-h" |
|
|
|
@closed="diaClose"> |
|
|
|
<room-form ref="ref_form" |
|
|
|
:view_real_data="btnAuths.ic_house_view_real_data" |
|
|
|
@dialogCancle="addFormCancle" |
|
|
|
@dialogOk="addFormOk"></room-form> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 详情弹出框 --> |
|
|
|
<el-dialog |
|
|
|
:visible.sync="detailShow" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
:title="formTitle" |
|
|
|
width="900px" |
|
|
|
top="5vh" |
|
|
|
class="dialog-h" |
|
|
|
@closed="detailFormCancle" |
|
|
|
> |
|
|
|
<room-detail |
|
|
|
ref="ref_form_detail" |
|
|
|
:view_real_data="btnAuths.ic_house_view_real_data" |
|
|
|
@diaDetailClose="detailFormCancle" |
|
|
|
></room-detail> |
|
|
|
<el-dialog :visible.sync="detailShow" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
:title="'查看房屋'" |
|
|
|
width="900px" |
|
|
|
top="5vh" |
|
|
|
class="dialog-h" |
|
|
|
@closed="detailFormCancle"> |
|
|
|
<room-detail ref="ref_form_detail" |
|
|
|
:view_real_data="btnAuths.ic_house_view_real_data" |
|
|
|
@diaDetailClose="detailFormCancle"></room-detail> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<baobiao ref="baobiao" /> |
|
|
@ -256,7 +224,7 @@ import baobiao from "@/views/modules/cpts/baobiao"; |
|
|
|
|
|
|
|
let loading; // 加载动画 |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
source: "tree", //来源 |
|
|
|
importRoomLoading: false, |
|
|
@ -320,7 +288,7 @@ export default { |
|
|
|
roomForm, |
|
|
|
roomDetail, |
|
|
|
}, |
|
|
|
async mounted() { |
|
|
|
async mounted () { |
|
|
|
this.updateBtnAuths(); |
|
|
|
|
|
|
|
this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({ |
|
|
@ -331,7 +299,7 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
tableHeight() { |
|
|
|
tableHeight () { |
|
|
|
return this.$store.state.inIframe |
|
|
|
? this.clientHeight - 425 + this.iframeHeight |
|
|
|
: this.clientHeight - 425; |
|
|
@ -341,7 +309,7 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 更新按钮权限 |
|
|
|
updateBtnAuths() { |
|
|
|
updateBtnAuths () { |
|
|
|
let rot = this.$route; |
|
|
|
if (Array.isArray(rot.meta.btns)) { |
|
|
|
rot.meta.btns.forEach((item) => { |
|
|
@ -350,7 +318,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
reportForm() { |
|
|
|
reportForm () { |
|
|
|
let paramMap = { |
|
|
|
pageSize: this.pageSize, |
|
|
|
pageNo: this.pageNo, |
|
|
@ -374,25 +342,25 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
indexMethod(index) { |
|
|
|
indexMethod (index) { |
|
|
|
return index + 1; |
|
|
|
}, |
|
|
|
handleSortOrderChange(value) { |
|
|
|
handleSortOrderChange (value) { |
|
|
|
this.sortType = value.order === "ascending" ? "asc" : "desc"; |
|
|
|
this.loadTable(); |
|
|
|
}, |
|
|
|
handleSortChange(value) { |
|
|
|
handleSortChange (value) { |
|
|
|
this.sortType = value.order === "ascending" ? "asc" : "desc"; |
|
|
|
this.loadTable(); |
|
|
|
}, |
|
|
|
|
|
|
|
handleEditSort(row) { |
|
|
|
handleEditSort (row) { |
|
|
|
if (!row.isChange) { |
|
|
|
row.isChange = true; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async handleChangeSort(row, index) { |
|
|
|
async handleChangeSort (row, index) { |
|
|
|
// row.isChange = false |
|
|
|
|
|
|
|
let params = { |
|
|
@ -415,7 +383,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
checkSelect(row, index) { |
|
|
|
checkSelect (row, index) { |
|
|
|
let isChecked = false; |
|
|
|
if (row.showBtn) { |
|
|
|
// 判断里面是否存在某个参数 |
|
|
@ -426,9 +394,9 @@ export default { |
|
|
|
return isChecked; |
|
|
|
}, |
|
|
|
|
|
|
|
loadTreeFromSearch() {}, |
|
|
|
loadTreeFromSearch () { }, |
|
|
|
|
|
|
|
async loadTable(source, treeObj) { |
|
|
|
async loadTable (source, treeObj) { |
|
|
|
this.source = source; |
|
|
|
this.tableLoading = true; |
|
|
|
|
|
|
@ -501,12 +469,12 @@ export default { |
|
|
|
this.tableLoading = false; |
|
|
|
}, |
|
|
|
|
|
|
|
diaClose() { |
|
|
|
diaClose () { |
|
|
|
this.$refs.ref_form.resetData(); |
|
|
|
this.formShow = false; |
|
|
|
}, |
|
|
|
|
|
|
|
handleDetail(row) { |
|
|
|
handleDetail (row) { |
|
|
|
// this.formTitle = "房屋详情"; |
|
|
|
// this.formShow = true; |
|
|
|
// this.$nextTick(() => { |
|
|
@ -521,12 +489,12 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
detailFormCancle() { |
|
|
|
detailFormCancle () { |
|
|
|
// this.$refs.ref_form_detail.diaDestroy() |
|
|
|
this.detailShow = false; |
|
|
|
}, |
|
|
|
|
|
|
|
handleAdd() { |
|
|
|
handleAdd () { |
|
|
|
this.formTitle = "新增房屋"; |
|
|
|
this.formShow = true; |
|
|
|
this.$nextTick(() => { |
|
|
@ -534,7 +502,7 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
handleEdit(row) { |
|
|
|
handleEdit (row) { |
|
|
|
this.formTitle = "修改房屋"; |
|
|
|
this.formShow = true; |
|
|
|
this.$nextTick(() => { |
|
|
@ -542,15 +510,15 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
addFormCancle() { |
|
|
|
addFormCancle () { |
|
|
|
this.formShow = false; |
|
|
|
}, |
|
|
|
addFormOk() { |
|
|
|
addFormOk () { |
|
|
|
this.formShow = false; |
|
|
|
this.loadTable(); |
|
|
|
}, |
|
|
|
|
|
|
|
deleteBatch() { |
|
|
|
deleteBatch () { |
|
|
|
if (this.selection.length > 0) { |
|
|
|
this.$confirm("确认删除选择的房屋?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
@ -572,14 +540,14 @@ export default { |
|
|
|
this.$message.warning("请先选择要删除的房屋"); |
|
|
|
} |
|
|
|
}, |
|
|
|
selectAll(selection) { |
|
|
|
selectAll (selection) { |
|
|
|
this.selection = selection; |
|
|
|
}, |
|
|
|
selectionChange(selection) { |
|
|
|
selectionChange (selection) { |
|
|
|
this.selection = selection; |
|
|
|
}, |
|
|
|
|
|
|
|
async handleDelete(row) { |
|
|
|
async handleDelete (row) { |
|
|
|
this.$confirm("确认删除?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
@ -598,7 +566,7 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
async deleteCommunityBatch() { |
|
|
|
async deleteCommunityBatch () { |
|
|
|
let ids = []; |
|
|
|
this.selection.forEach((element) => { |
|
|
|
ids.push(element.houseId); |
|
|
@ -633,7 +601,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async deleteRoom(row) { |
|
|
|
async deleteRoom (row) { |
|
|
|
const url = "/gov/org/house/housedel"; |
|
|
|
|
|
|
|
let params = { |
|
|
@ -655,7 +623,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//导出表格 |
|
|
|
async handleExport() { |
|
|
|
async handleExport () { |
|
|
|
let title = this.agencyObj.label; |
|
|
|
title = title + "—房屋列表"; |
|
|
|
|
|
|
@ -706,7 +674,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 下载文件 |
|
|
|
download(data, fileName) { |
|
|
|
download (data, fileName) { |
|
|
|
if (!data) { |
|
|
|
return; |
|
|
|
} |
|
|
@ -730,7 +698,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleExportModule() { |
|
|
|
handleExportModule () { |
|
|
|
let title = ""; |
|
|
|
title = "房屋模板"; |
|
|
|
|
|
|
@ -750,7 +718,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//导出一户一档 |
|
|
|
handleExportYihuyidang() { |
|
|
|
handleExportYihuyidang () { |
|
|
|
this.yihuyidangDisabled = true; |
|
|
|
let title = this.agencyObj.label; |
|
|
|
title = title + "-一户一档"; |
|
|
@ -806,7 +774,7 @@ export default { |
|
|
|
); |
|
|
|
}, |
|
|
|
// 上传文件之前的钩子 |
|
|
|
beforeUpload(file) { |
|
|
|
beforeUpload (file) { |
|
|
|
this.files = file; |
|
|
|
|
|
|
|
const isText = file.type === "application/vnd.ms-excel"; |
|
|
@ -823,11 +791,11 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
// 上传文件个数超过定义的数量 |
|
|
|
handleExceed(files, fileList) { |
|
|
|
handleExceed (files, fileList) { |
|
|
|
this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`); |
|
|
|
}, |
|
|
|
|
|
|
|
async uploadFile() { |
|
|
|
async uploadFile () { |
|
|
|
if (this.fileName == "") { |
|
|
|
this.$message.warning("请选择要上传的文件!"); |
|
|
|
return false; |
|
|
@ -876,7 +844,7 @@ export default { |
|
|
|
); |
|
|
|
}, |
|
|
|
|
|
|
|
showMessage(msg) { |
|
|
|
showMessage (msg) { |
|
|
|
this.$alert(msg, "操作结果", { |
|
|
|
confirmButtonText: "关闭", |
|
|
|
callback: (action) => { |
|
|
@ -886,18 +854,18 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
handleSizeChange(val) { |
|
|
|
handleSizeChange (val) { |
|
|
|
this.pageSize = val; |
|
|
|
this.pageNo = 1; |
|
|
|
this.loadTable(); |
|
|
|
}, |
|
|
|
handleCurrentChange(val) { |
|
|
|
handleCurrentChange (val) { |
|
|
|
this.pageNo = val; |
|
|
|
this.loadTable(); |
|
|
|
}, |
|
|
|
|
|
|
|
// 开启加载动画 |
|
|
|
startLoading() { |
|
|
|
startLoading () { |
|
|
|
loading = Loading.service({ |
|
|
|
lock: true, // 是否锁定 |
|
|
|
text: "正在加载……", // 加载中需要显示的文字 |
|
|
@ -905,7 +873,7 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 结束加载动画 |
|
|
|
endLoading() { |
|
|
|
endLoading () { |
|
|
|
// clearTimeout(timer); |
|
|
|
if (loading) { |
|
|
|
loading.close(); |
|
|
@ -913,7 +881,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
selection(val) { |
|
|
|
selection (val) { |
|
|
|
if (val.length > 0) { |
|
|
|
this.showDeletBtn = true; |
|
|
|
} else { |
|
|
|