|
@ -3,130 +3,74 @@ |
|
|
<div class="u-table-btn2"> |
|
|
<div class="u-table-btn2"> |
|
|
<div class="u-table-btn2-left"> |
|
|
<div class="u-table-btn2-left"> |
|
|
<!-- v-show="btnAuths.ic_house_add" --> |
|
|
<!-- v-show="btnAuths.ic_house_add" --> |
|
|
<el-button v-if="agencyObj.level === 'building' || source !== 'search'" |
|
|
<el-button v-if="agencyObj.level === 'building' || source !== 'search'" class="diy-button--blue" |
|
|
class="diy-button--blue" |
|
|
icon="el-icon-plus" size="small" :disabled="addDisabled" @click="handleAdd">新增房屋</el-button> |
|
|
icon="el-icon-plus" |
|
|
|
|
|
size="small" |
|
|
|
|
|
:disabled="addDisabled" |
|
|
|
|
|
@click="handleAdd">新增房屋</el-button> |
|
|
|
|
|
|
|
|
|
|
|
<div class="u-btn-upload" |
|
|
<div class="u-btn-upload" v-if="showImportBtn"> |
|
|
v-if="showImportBtn"> |
|
|
|
|
|
|
|
|
|
|
|
<el-popover popper-class="btn-popper" |
|
|
<el-popover popper-class="btn-popper" placement="bottom" width="20" trigger="hover"> |
|
|
placement="bottom" |
|
|
|
|
|
width="20" |
|
|
|
|
|
trigger="hover"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="table-more-btn"> |
|
|
<div class="table-more-btn"> |
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
<el-upload ref="upload" |
|
|
<el-upload ref="upload" :multiple="false" style="text-align: center" :show-file-list="false" |
|
|
:multiple="false" |
|
|
:before-upload="beforeUpload" action="" accept=".xls,.xlsx" :limit="1" :on-exceed="handleExceed" |
|
|
style="text-align: center" |
|
|
:http-request="uploadFile"> |
|
|
:show-file-list="false" |
|
|
<el-button style="" size="small" type="text" class="diy-button--other">导入房屋数据</el-button> |
|
|
:before-upload="beforeUpload" |
|
|
|
|
|
action="" |
|
|
|
|
|
accept=".xls,.xlsx" |
|
|
|
|
|
:limit="1" |
|
|
|
|
|
:on-exceed="handleExceed" |
|
|
|
|
|
:http-request="uploadFile"> |
|
|
|
|
|
<el-button style="" |
|
|
|
|
|
size="small" |
|
|
|
|
|
type="text" |
|
|
|
|
|
class="diy-button--other">导入房屋数据</el-button> |
|
|
|
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<el-button size="small" |
|
|
<el-button size="small" style="float:right" class="diy-button--white" slot="reference">导入<i |
|
|
style="float:right" |
|
|
class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
class="diy-button--white" |
|
|
|
|
|
slot="reference">导入<i class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
|
|
|
</el-popover> |
|
|
</el-popover> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<!-- v-if="btnAuths.ic_house_export" --> |
|
|
<!-- v-if="btnAuths.ic_house_export" --> |
|
|
<el-button style="float: left; margin-left: 10px" |
|
|
<el-button style="float: left; margin-left: 10px" class="diy-button--white" size="small" |
|
|
class="diy-button--white" |
|
|
@click="handleExport">导出</el-button> |
|
|
size="small" |
|
|
|
|
|
@click="handleExport">导出</el-button> |
|
|
|
|
|
<!-- v-if="btnAuths.ic_house_batch_del" --> |
|
|
<!-- v-if="btnAuths.ic_house_batch_del" --> |
|
|
<el-button style="float: left; margin-left: 10px" |
|
|
<el-button style="float: left; margin-left: 10px" class="diy-button--white" size="small" |
|
|
class="diy-button--white" |
|
|
@click="deleteBatch">批量删除</el-button> |
|
|
size="small" |
|
|
|
|
|
@click="deleteBatch">批量删除</el-button> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div> |
|
|
<div> |
|
|
<el-popover popper-class="btn-popper" |
|
|
<el-popover popper-class="btn-popper" placement="bottom" style="margin-left: 10px" width="20" trigger="hover"> |
|
|
placement="bottom" |
|
|
|
|
|
style="margin-left: 10px" |
|
|
|
|
|
width="20" |
|
|
|
|
|
trigger="hover"> |
|
|
|
|
|
<div class="table-more-btn"> |
|
|
<div class="table-more-btn"> |
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
<el-button :headers="$getElUploadHeaders()" |
|
|
<el-button :headers="$getElUploadHeaders()" class="diy-button--other" size="small" type="text" |
|
|
class="diy-button--other" |
|
|
@click="handleExportModule('community')">下载小区模板</el-button> |
|
|
size="small" |
|
|
|
|
|
type="text" |
|
|
|
|
|
@click="handleExportModule('community')">下载小区模板</el-button> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="table-more-btn"> |
|
|
<div class="table-more-btn"> |
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
<el-button :headers="$getElUploadHeaders()" |
|
|
<el-button :headers="$getElUploadHeaders()" class="diy-button--other" size="small" type="text" |
|
|
class="diy-button--other" |
|
|
@click="handleExportModule('building')">下载楼栋模板</el-button> |
|
|
size="small" |
|
|
|
|
|
type="text" |
|
|
|
|
|
@click="handleExportModule('building')">下载楼栋模板</el-button> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="table-more-btn"> |
|
|
<div class="table-more-btn"> |
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
<!-- v-if="btnAuths.ic_house_import" --> |
|
|
<el-button :headers="$getElUploadHeaders()" |
|
|
<el-button :headers="$getElUploadHeaders()" class="diy-button--other" size="small" type="text" |
|
|
class="diy-button--other" |
|
|
@click="handleExportModule('room')">下载房屋模板</el-button> |
|
|
size="small" |
|
|
|
|
|
type="text" |
|
|
|
|
|
@click="handleExportModule('room')">下载房屋模板</el-button> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<!-- v-if="btnAuths.ic_house_export_yhyd" --> |
|
|
<!-- v-if="btnAuths.ic_house_export_yhyd" --> |
|
|
<div class="table-more-btn"> |
|
|
<div class="table-more-btn"> |
|
|
<el-button style="" |
|
|
<el-button style="" class="diy-button--other" size="small" type="text" :disabled="yihuyidangDisabled" |
|
|
class="diy-button--other" |
|
|
@click="handleExportYihuyidang()">导出一户一档</el-button> |
|
|
size="small" |
|
|
|
|
|
type="text" |
|
|
|
|
|
:disabled="yihuyidangDisabled" |
|
|
|
|
|
@click="handleExportYihuyidang()">导出一户一档</el-button> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<!-- btnAuths.ic_house_smart_import && --> |
|
|
<!-- btnAuths.ic_house_smart_import && --> |
|
|
<div v-if="displayedBaobiaoBtn" |
|
|
<div v-if="displayedBaobiaoBtn" class="table-more-btn"> |
|
|
class="table-more-btn"> |
|
|
<el-button size="small" class="diy-button--other" type="text" @click="reportForm">智能填报</el-button> |
|
|
<el-button size="small" |
|
|
|
|
|
class="diy-button--other" |
|
|
|
|
|
type="text" |
|
|
|
|
|
@click="reportForm">智能填报</el-button> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<el-button size="small" |
|
|
<el-button size="small" style="float:right" class="diy-button--white" slot="reference">更多<i |
|
|
style="float:right" |
|
|
class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
class="diy-button--white" |
|
|
|
|
|
slot="reference">更多<i class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
|
|
|
</el-popover> |
|
|
</el-popover> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="m-table-item"> |
|
|
<div class="m-table-item"> |
|
|
<el-table ref="ref_table" |
|
|
<el-table ref="ref_table" :data="tableData" v-loading="tableLoading" @sort-change="handleSortOrderChange" border |
|
|
:data="tableData" |
|
|
:height="tableHeight" style="width: 100%" @select-all="selectAll" @selection-change="selectionChange"> |
|
|
v-loading="tableLoading" |
|
|
<el-table-column type="selection" :selectable="checkSelect" width="55"> |
|
|
@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> |
|
|
<!-- <el-table-column fixed="left" |
|
|
<!-- <el-table-column fixed="left" |
|
|
width="70" |
|
|
width="70" |
|
@ -137,183 +81,84 @@ |
|
|
:index="indexMethod"> |
|
|
:index="indexMethod"> |
|
|
</el-table-column> --> |
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
|
<el-table-column prop="houseNameShow" |
|
|
<el-table-column prop="houseNameShow" header-align="left" align="left" label="房屋名称" fixed="left" |
|
|
header-align="left" |
|
|
min-width="160"> |
|
|
align="left" |
|
|
|
|
|
label="房屋名称" |
|
|
|
|
|
fixed="left" |
|
|
|
|
|
min-width="160"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="neighborHoodName" |
|
|
<el-table-column prop="neighborHoodName" label="所属小区" header-align="left" align="left" min-width="150"> |
|
|
label="所属小区" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
min-width="150"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="buildingName" |
|
|
<el-table-column prop="buildingName" label="所属楼栋" header-align="left" align="left" width="90"> |
|
|
label="所属楼栋" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="90"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="unitNum" |
|
|
<el-table-column prop="unitNum" label="单元号" header-align="left" align="left" width="80"> |
|
|
label="单元号" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="80"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="doorName" |
|
|
<el-table-column prop="doorName" label="门牌号" header-align="left" align="left" width="80"> |
|
|
label="门牌号" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="80"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="houseType" |
|
|
<el-table-column prop="houseType" label="类型" header-align="left" align="left" width="70"> |
|
|
label="类型" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="70"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="purpose" |
|
|
<el-table-column prop="purpose" label="用途" header-align="left" align="left" width="70"> |
|
|
label="用途" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="70"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="rentFlag" |
|
|
<el-table-column prop="rentFlag" label="房屋状态" header-align="left" align="left" width="90"> |
|
|
label="房屋状态" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="90"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="ownerName" |
|
|
<el-table-column prop="ownerName" label="房主姓名" header-align="left" align="left" width="90"> |
|
|
label="房主姓名" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="90"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="ownerPhone" |
|
|
<el-table-column prop="ownerPhone" label="联系方式" header-align="left" align="left" width="110"> |
|
|
label="联系方式" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="110"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="ownerIdCard" |
|
|
<el-table-column prop="ownerIdCard" label="证件号" header-align="left" align="left" width="170"> |
|
|
label="证件号" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="170"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="remark" |
|
|
<el-table-column prop="remark" label="备注" header-align="left" align="left" width="170"> |
|
|
label="备注" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="170"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column prop="sort" |
|
|
<el-table-column prop="sort" sortable="custom" min-width="100" header-align="left" align="left" label="排序"> |
|
|
sortable="custom" |
|
|
|
|
|
min-width="100" |
|
|
|
|
|
header-align="left" |
|
|
|
|
|
align="left" |
|
|
|
|
|
label="排序"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div @click="handleEditSort(scope.row)"> |
|
|
<div @click="handleEditSort(scope.row)"> |
|
|
<span v-if="!scope.row.isChange">{{ scope.row.sort }}</span> |
|
|
<span v-if="!scope.row.isChange">{{ scope.row.sort }}</span> |
|
|
<!-- :precision="2" --> |
|
|
<!-- :precision="2" --> |
|
|
<el-input-number v-else |
|
|
<el-input-number v-else @change="handleChangeSort(scope.row)" v-model="scope.row.sort" |
|
|
@change="handleChangeSort(scope.row)" |
|
|
class="item_width_4" size="small" :min="0" :max="9999" label="描述文字"></el-input-number> |
|
|
v-model="scope.row.sort" |
|
|
|
|
|
class="item_width_4" |
|
|
|
|
|
size="small" |
|
|
|
|
|
:min="0" |
|
|
|
|
|
:max="9999" |
|
|
|
|
|
label="描述文字"></el-input-number> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="操作" |
|
|
<el-table-column label="操作" fixed="right" width="220" header-align="center" align="center" class="operate"> |
|
|
fixed="right" |
|
|
|
|
|
width="220" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
class="operate"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- v-if="btnAuths.ic_house_view" --> |
|
|
<!-- v-if="btnAuths.ic_house_view" --> |
|
|
<el-button type="text" |
|
|
<el-button type="text" class="div-table-button--blue" size="small" |
|
|
class="div-table-button--blue" |
|
|
@click="handleDetail(scope.row)">查看</el-button> |
|
|
size="small" |
|
|
|
|
|
@click="handleDetail(scope.row)">查看</el-button> |
|
|
|
|
|
<!-- btnAuths.ic_house_update && --> |
|
|
<!-- btnAuths.ic_house_update && --> |
|
|
<el-button type="text" |
|
|
<el-button type="text" class="div-table-button--blue" size="small" |
|
|
class="div-table-button--blue" |
|
|
@click="handleEdit(scope.row)">编辑</el-button> |
|
|
size="small" |
|
|
|
|
|
@click="handleEdit(scope.row)">编辑</el-button> |
|
|
|
|
|
<!-- btnAuths.ic_house_del && --> |
|
|
<!-- btnAuths.ic_house_del && --> |
|
|
<el-button type="text" |
|
|
<el-button type="text" class="div-table-button--blue" size="small" |
|
|
class="div-table-button--blue" |
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
size="small" |
|
|
|
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
<div> |
|
|
<div> |
|
|
<el-pagination @size-change="handleSizeChange" |
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="pageNo" |
|
|
@current-change="handleCurrentChange" |
|
|
:page-sizes="[20, 50, 100, 200]" :page-size="pageSize" layout="sizes, prev, pager, next, total" |
|
|
:current-page.sync="pageNo" |
|
|
:total="total"> |
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
|
|
:page-size="pageSize" |
|
|
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
|
|
:total="total"> |
|
|
|
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- 修改弹出框 --> |
|
|
<!-- 修改弹出框 --> |
|
|
<el-dialog :visible.sync="formShow" |
|
|
<el-dialog :visible.sync="formShow" :close-on-click-modal="false" :close-on-press-escape="false" :title="formTitle" |
|
|
:close-on-click-modal="false" |
|
|
width="670px" top="5vh" class="dialog-h" @closed="diaClose"> |
|
|
:close-on-press-escape="false" |
|
|
<room-form ref="ref_form" @dialogCancle="addFormCancle" @dialogOk="addFormOk"></room-form> |
|
|
:title="formTitle" |
|
|
|
|
|
width="670px" |
|
|
|
|
|
top="5vh" |
|
|
|
|
|
class="dialog-h" |
|
|
|
|
|
@closed="diaClose"> |
|
|
|
|
|
<room-form ref="ref_form" |
|
|
|
|
|
@dialogCancle="addFormCancle" |
|
|
|
|
|
@dialogOk="addFormOk"></room-form> |
|
|
|
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 详情弹出框 --> |
|
|
<!-- 详情弹出框 --> |
|
|
<el-dialog :visible.sync="detailShow" |
|
|
<el-dialog :visible.sync="detailShow" :close-on-click-modal="false" :close-on-press-escape="false" :title="'查看房屋'" |
|
|
:close-on-click-modal="false" |
|
|
width="820px" top="5vh" class="dialog-h" @closed="detailFormCancle"> |
|
|
:close-on-press-escape="false" |
|
|
|
|
|
:title="'查看房屋'" |
|
|
|
|
|
width="820px" |
|
|
|
|
|
top="5vh" |
|
|
|
|
|
class="dialog-h" |
|
|
|
|
|
@closed="detailFormCancle"> |
|
|
|
|
|
<!-- :view_real_data="btnAuths.ic_house_view_real_data" --> |
|
|
<!-- :view_real_data="btnAuths.ic_house_view_real_data" --> |
|
|
<room-detail ref="ref_form_detail" |
|
|
<room-detail ref="ref_form_detail" @diaDetailClose="detailFormCancle"></room-detail> |
|
|
@diaDetailClose="detailFormCancle"></room-detail> |
|
|
|
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog :visible.sync="diyDialog" |
|
|
<el-dialog :visible.sync="diyDialog" :close-on-click-modal="false" :close-on-press-escape="false" width="1150px" |
|
|
:close-on-click-modal="false" |
|
|
title="导出模板" top="5vh" class="dialog-h"> |
|
|
:close-on-press-escape="false" |
|
|
<community-export-info v-if="diyDialog" ref="ref_diy" :list="exportList" :search="{ |
|
|
width="1150px" |
|
|
formCode: 'community_info', |
|
|
title="导出模板" |
|
|
pageNo: pageNo, |
|
|
top="5vh" |
|
|
pageSize: pageSize, |
|
|
class="dialog-h"> |
|
|
conditions: queryConditions |
|
|
<community-export-info v-if="diyDialog" |
|
|
}" :orgId="agencyObj.id" @close="handleDiyClose"></community-export-info> |
|
|
ref="ref_diy" |
|
|
|
|
|
:list="exportList" |
|
|
|
|
|
:search="{ |
|
|
|
|
|
formCode: 'community_info', |
|
|
|
|
|
pageNo: pageNo, |
|
|
|
|
|
pageSize: pageSize, |
|
|
|
|
|
conditions:queryConditions |
|
|
|
|
|
}" |
|
|
|
|
|
:orgId="agencyObj.id" |
|
|
|
|
|
@close="handleDiyClose"></community-export-info> |
|
|
|
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<baobiao ref="baobiao" /> |
|
|
<baobiao ref="baobiao" /> |
|
|
</div> |
|
|
</div> |
|
@ -331,13 +176,13 @@ import util from "@/js/util"; |
|
|
|
|
|
|
|
|
let loading; // 加载动画 |
|
|
let loading; // 加载动画 |
|
|
export default { |
|
|
export default { |
|
|
data () { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
searchHeight: 190,//搜索栏高度 |
|
|
searchHeight: 190,//搜索栏高度 |
|
|
source: "tree", //来源 |
|
|
source: "tree", //来源 |
|
|
importRoomLoading: false, |
|
|
importRoomLoading: false, |
|
|
total: 0, |
|
|
total: 0, |
|
|
pageSize:window.localStorage.getItem('pageSize') || 20, |
|
|
pageSize: window.localStorage.getItem('pageSize') || 20, |
|
|
pageNo: 0, |
|
|
pageNo: 0, |
|
|
sortType: "asc", //asc:正,desc:倒 |
|
|
sortType: "asc", //asc:正,desc:倒 |
|
|
tableLoading: true, |
|
|
tableLoading: true, |
|
@ -401,10 +246,9 @@ export default { |
|
|
roomDetail, |
|
|
roomDetail, |
|
|
communityExportInfo |
|
|
communityExportInfo |
|
|
}, |
|
|
}, |
|
|
async mounted () { |
|
|
async mounted() { |
|
|
this.updateBtnAuths(); |
|
|
this.updateBtnAuths(); |
|
|
this.getQueryConditions() |
|
|
this.getQueryConditions() |
|
|
|
|
|
|
|
|
// this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({ |
|
|
// this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({ |
|
|
// elseParams: { |
|
|
// elseParams: { |
|
|
// categoryKeys: ["house_info"], |
|
|
// categoryKeys: ["house_info"], |
|
@ -413,7 +257,7 @@ export default { |
|
|
// }); |
|
|
// }); |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
tableHeight () { |
|
|
tableHeight() { |
|
|
console.log(this.searchHeight) |
|
|
console.log(this.searchHeight) |
|
|
let height = this.searchHeight + 270 |
|
|
let height = this.searchHeight + 270 |
|
|
return this.$store.state.inIframe ? this.clientHeight - height + this.iframeHeight : this.clientHeight - height |
|
|
return this.$store.state.inIframe ? this.clientHeight - height + this.iframeHeight : this.clientHeight - height |
|
@ -424,7 +268,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// 更新按钮权限 |
|
|
// 更新按钮权限 |
|
|
updateBtnAuths () { |
|
|
updateBtnAuths() { |
|
|
let rot = this.$route; |
|
|
let rot = this.$route; |
|
|
if (Array.isArray(rot.meta.btns)) { |
|
|
if (Array.isArray(rot.meta.btns)) { |
|
|
rot.meta.btns.forEach((item) => { |
|
|
rot.meta.btns.forEach((item) => { |
|
@ -433,7 +277,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
reportForm () { |
|
|
reportForm() { |
|
|
let paramMap = { |
|
|
let paramMap = { |
|
|
pageSize: this.pageSize, |
|
|
pageSize: this.pageSize, |
|
|
pageNo: this.pageNo, |
|
|
pageNo: this.pageNo, |
|
@ -461,25 +305,25 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
indexMethod (index) { |
|
|
indexMethod(index) { |
|
|
return index + 1; |
|
|
return index + 1; |
|
|
}, |
|
|
}, |
|
|
handleSortOrderChange (value) { |
|
|
handleSortOrderChange(value) { |
|
|
this.sortType = value.order === "ascending" ? "asc" : "desc"; |
|
|
this.sortType = value.order === "ascending" ? "asc" : "desc"; |
|
|
this.loadTable(); |
|
|
this.loadTable(); |
|
|
}, |
|
|
}, |
|
|
handleSortChange (value) { |
|
|
handleSortChange(value) { |
|
|
this.sortType = value.order === "ascending" ? "asc" : "desc"; |
|
|
this.sortType = value.order === "ascending" ? "asc" : "desc"; |
|
|
this.loadTable(); |
|
|
this.loadTable(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleEditSort (row) { |
|
|
handleEditSort(row) { |
|
|
if (!row.isChange) { |
|
|
if (!row.isChange) { |
|
|
row.isChange = true; |
|
|
row.isChange = true; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async handleChangeSort (row, index) { |
|
|
async handleChangeSort(row, index) { |
|
|
// row.isChange = false |
|
|
// row.isChange = false |
|
|
|
|
|
|
|
|
let params = { |
|
|
let params = { |
|
@ -502,7 +346,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
checkSelect (row, index) { |
|
|
checkSelect(row, index) { |
|
|
let isChecked = true; |
|
|
let isChecked = true; |
|
|
// if (row.showBtn) { |
|
|
// if (row.showBtn) { |
|
|
// // 判断里面是否存在某个参数 |
|
|
// // 判断里面是否存在某个参数 |
|
@ -513,9 +357,8 @@ export default { |
|
|
return isChecked; |
|
|
return isChecked; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
loadTreeFromSearch () { }, |
|
|
loadTreeFromSearch() { }, |
|
|
|
|
|
async loadTable(source, treeObj) { |
|
|
async loadTable (source, treeObj) { |
|
|
|
|
|
this.source = source; |
|
|
this.source = source; |
|
|
this.tableLoading = true; |
|
|
this.tableLoading = true; |
|
|
this.addDisabled = true |
|
|
this.addDisabled = true |
|
@ -528,7 +371,6 @@ export default { |
|
|
//来源于查询 |
|
|
//来源于查询 |
|
|
this.agencyObj = treeObj; |
|
|
this.agencyObj = treeObj; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.agencyObj.level === "grid") { |
|
|
if (this.agencyObj.level === "grid") { |
|
|
this.agencyLevel = "grid"; |
|
|
this.agencyLevel = "grid"; |
|
|
} else if (this.agencyObj.level === "neighborHood") { |
|
|
} else if (this.agencyObj.level === "neighborHood") { |
|
@ -541,7 +383,6 @@ export default { |
|
|
|
|
|
|
|
|
// if (fromTree) { |
|
|
// if (fromTree) { |
|
|
// this.agencyObj = treeObj |
|
|
// this.agencyObj = treeObj |
|
|
|
|
|
|
|
|
// } |
|
|
// } |
|
|
// 接口在这里 |
|
|
// 接口在这里 |
|
|
console.log(this.buildingId, '1111'); |
|
|
console.log(this.buildingId, '1111'); |
|
@ -563,7 +404,6 @@ export default { |
|
|
buildingUnitId: this.buildingUnitId, |
|
|
buildingUnitId: this.buildingUnitId, |
|
|
houseId: this.houseId, |
|
|
houseId: this.houseId, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const url = "/actual/base/communityHouse/listHouses"; |
|
|
const url = "/actual/base/communityHouse/listHouses"; |
|
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
const { data, code, msg } = await requestPost(url, params); |
|
@ -596,30 +436,30 @@ export default { |
|
|
this.tableLoading = false; |
|
|
this.tableLoading = false; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
diaClose () { |
|
|
diaClose() { |
|
|
this.$refs.ref_form.resetData(); |
|
|
this.$refs.ref_form.resetData(); |
|
|
this.formShow = false; |
|
|
this.formShow = false; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleDetail (row) { |
|
|
handleDetail(row) { |
|
|
this.lookResiId = row.resiId; |
|
|
this.lookResiId = row.resiId; |
|
|
let { agencyId, gridId, gridName, houseId, houseName} = row |
|
|
let { agencyId, gridId, gridName, houseId, houseName } = row |
|
|
this.$store.dispatch('saveDataH', { agencyId, gridId, gridName, houseId, houseName}); |
|
|
this.$store.dispatch('saveDataH', { agencyId, gridId, gridName, houseId, houseName }); |
|
|
this.$router.push({ name: 'house-huaxiang' }); |
|
|
this.$router.push({ name: 'house-huaxiang' }); |
|
|
this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => { |
|
|
this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => { |
|
|
if (item.name === "house-huaxiang") { |
|
|
if (item.name === "house-huaxiang") { |
|
|
return { ...item, title: name }; |
|
|
return { ...item, title: name }; |
|
|
} |
|
|
} |
|
|
return item; |
|
|
return item; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
detailFormCancle () { |
|
|
detailFormCancle() { |
|
|
// this.$refs.ref_form_detail.diaDestroy() |
|
|
// this.$refs.ref_form_detail.diaDestroy() |
|
|
this.detailShow = false; |
|
|
this.detailShow = false; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleAdd () { |
|
|
handleAdd() { |
|
|
this.formTitle = "新增房屋"; |
|
|
this.formTitle = "新增房屋"; |
|
|
this.formShow = true; |
|
|
this.formShow = true; |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
@ -627,7 +467,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleEdit (row) { |
|
|
handleEdit(row) { |
|
|
this.formTitle = "修改房屋"; |
|
|
this.formTitle = "修改房屋"; |
|
|
this.formShow = true; |
|
|
this.formShow = true; |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
@ -635,24 +475,24 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
addFormCancle () { |
|
|
addFormCancle() { |
|
|
this.formShow = false; |
|
|
this.formShow = false; |
|
|
}, |
|
|
}, |
|
|
addFormOk () { |
|
|
addFormOk() { |
|
|
this.formShow = false; |
|
|
this.formShow = false; |
|
|
this.loadTable(); |
|
|
this.loadTable(); |
|
|
this.$emit('refreshTree') |
|
|
this.$emit('refreshTree') |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectAll (selection) { |
|
|
selectAll(selection) { |
|
|
this.selection = selection; |
|
|
this.selection = selection; |
|
|
}, |
|
|
}, |
|
|
selectionChange (selection) { |
|
|
selectionChange(selection) { |
|
|
this.selection = selection; |
|
|
this.selection = selection; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async handleDelete (row) { |
|
|
async handleDelete(row) { |
|
|
this.$confirm("确认删除?", "提示", { |
|
|
this.$confirm("确认删除?", "提示", { |
|
|
confirmButtonText: "确定", |
|
|
confirmButtonText: "确定", |
|
|
cancelButtonText: "取消", |
|
|
cancelButtonText: "取消", |
|
@ -674,7 +514,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
deleteBatch () { |
|
|
deleteBatch() { |
|
|
if (this.selection.length > 0) { |
|
|
if (this.selection.length > 0) { |
|
|
this.$confirm("确认删除选择的房屋?", "提示", { |
|
|
this.$confirm("确认删除选择的房屋?", "提示", { |
|
|
confirmButtonText: "确定", |
|
|
confirmButtonText: "确定", |
|
@ -704,7 +544,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async deleteRoom (ids, forceDelete) { |
|
|
async deleteRoom(ids, forceDelete) { |
|
|
const url = "/actual/base/communityHouse/deleteCommunityInfoByIds"; |
|
|
const url = "/actual/base/communityHouse/deleteCommunityInfoByIds"; |
|
|
let params = { |
|
|
let params = { |
|
|
forceDelete: forceDelete, |
|
|
forceDelete: forceDelete, |
|
@ -748,7 +588,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//导出表格 |
|
|
//导出表格 |
|
|
async handleExport () { |
|
|
async handleExport() { |
|
|
// let title = this.agencyObj.label; |
|
|
// let title = this.agencyObj.label; |
|
|
// title = title + "—房屋列表"; |
|
|
// title = title + "—房屋列表"; |
|
|
|
|
|
|
|
@ -802,7 +642,7 @@ export default { |
|
|
// ); |
|
|
// ); |
|
|
await this.getExportList(); |
|
|
await this.getExportList(); |
|
|
}, |
|
|
}, |
|
|
async getExportList (type) { |
|
|
async getExportList(type) { |
|
|
const url = "/oper/customize/icformitemgroup/list"; |
|
|
const url = "/oper/customize/icformitemgroup/list"; |
|
|
let params = { |
|
|
let params = { |
|
|
formCode: "community_info", |
|
|
formCode: "community_info", |
|
@ -826,7 +666,7 @@ export default { |
|
|
this.$message.error(msg); |
|
|
this.$message.error(msg); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async getQueryConditions () { |
|
|
async getQueryConditions() { |
|
|
let params = { |
|
|
let params = { |
|
|
formCode: "community_info", |
|
|
formCode: "community_info", |
|
|
customerId: this.$store.state.user.customerId, |
|
|
customerId: this.$store.state.user.customerId, |
|
@ -849,11 +689,11 @@ export default { |
|
|
this.$message.error(data.msg); |
|
|
this.$message.error(data.msg); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleDiyClose () { |
|
|
handleDiyClose() { |
|
|
this.diyDialog = false; |
|
|
this.diyDialog = false; |
|
|
}, |
|
|
}, |
|
|
// 下载文件 |
|
|
// 下载文件 |
|
|
download (data, fileName) { |
|
|
download(data, fileName) { |
|
|
if (!data) { |
|
|
if (!data) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -877,7 +717,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleExportModule (type) { |
|
|
handleExportModule(type) { |
|
|
|
|
|
|
|
|
let title = '' |
|
|
let title = '' |
|
|
let url = "" |
|
|
let url = "" |
|
@ -910,7 +750,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//导出一户一档 |
|
|
//导出一户一档 |
|
|
handleExportYihuyidang () { |
|
|
handleExportYihuyidang() { |
|
|
this.yihuyidangDisabled = true; |
|
|
this.yihuyidangDisabled = true; |
|
|
let title = this.agencyObj.label; |
|
|
let title = this.agencyObj.label; |
|
|
title = title + "-一户一档"; |
|
|
title = title + "-一户一档"; |
|
@ -970,7 +810,7 @@ export default { |
|
|
); |
|
|
); |
|
|
}, |
|
|
}, |
|
|
// 上传文件之前的钩子 |
|
|
// 上传文件之前的钩子 |
|
|
beforeUpload (file) { |
|
|
beforeUpload(file) { |
|
|
this.files = file; |
|
|
this.files = file; |
|
|
|
|
|
|
|
|
const isText = file.type === "application/vnd.ms-excel"; |
|
|
const isText = file.type === "application/vnd.ms-excel"; |
|
@ -987,11 +827,11 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 上传文件个数超过定义的数量 |
|
|
// 上传文件个数超过定义的数量 |
|
|
handleExceed (files, fileList) { |
|
|
handleExceed(files, fileList) { |
|
|
this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`); |
|
|
this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async uploadFile () { |
|
|
async uploadFile() { |
|
|
if (this.fileName == "") { |
|
|
if (this.fileName == "") { |
|
|
this.$message.warning("请选择要上传的文件!"); |
|
|
this.$message.warning("请选择要上传的文件!"); |
|
|
return false; |
|
|
return false; |
|
@ -1045,7 +885,7 @@ export default { |
|
|
); |
|
|
); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
showMessage (msg) { |
|
|
showMessage(msg) { |
|
|
this.$alert(msg, "操作结果", { |
|
|
this.$alert(msg, "操作结果", { |
|
|
confirmButtonText: "关闭", |
|
|
confirmButtonText: "关闭", |
|
|
callback: (action) => { |
|
|
callback: (action) => { |
|
@ -1055,18 +895,18 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleSizeChange (val) { |
|
|
handleSizeChange(val) { |
|
|
this.pageSize = val; |
|
|
this.pageSize = val; |
|
|
this.pageNo = 1; |
|
|
this.pageNo = 1; |
|
|
this.loadTable(); |
|
|
this.loadTable(); |
|
|
}, |
|
|
}, |
|
|
handleCurrentChange (val) { |
|
|
handleCurrentChange(val) { |
|
|
this.pageNo = val; |
|
|
this.pageNo = val; |
|
|
this.loadTable(); |
|
|
this.loadTable(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 开启加载动画 |
|
|
// 开启加载动画 |
|
|
startLoading () { |
|
|
startLoading() { |
|
|
loading = Loading.service({ |
|
|
loading = Loading.service({ |
|
|
lock: true, // 是否锁定 |
|
|
lock: true, // 是否锁定 |
|
|
text: "正在加载……", // 加载中需要显示的文字 |
|
|
text: "正在加载……", // 加载中需要显示的文字 |
|
@ -1074,7 +914,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 结束加载动画 |
|
|
// 结束加载动画 |
|
|
endLoading () { |
|
|
endLoading() { |
|
|
// clearTimeout(timer); |
|
|
// clearTimeout(timer); |
|
|
if (loading) { |
|
|
if (loading) { |
|
|
loading.close(); |
|
|
loading.close(); |
|
@ -1082,7 +922,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
selection (val) { |
|
|
selection(val) { |
|
|
if (val.length > 0) { |
|
|
if (val.length > 0) { |
|
|
this.showDeletBtn = true; |
|
|
this.showDeletBtn = true; |
|
|
} else { |
|
|
} else { |
|
@ -1090,7 +930,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
'$store.state.sidebarFold': { |
|
|
'$store.state.sidebarFold': { |
|
|
handler (newVal, oldVal) { |
|
|
handler(newVal, oldVal) { |
|
|
if (newVal) {//收起 |
|
|
if (newVal) {//收起 |
|
|
this.searchHeight = 155 |
|
|
this.searchHeight = 155 |
|
|
|
|
|
|
|
@ -1160,7 +1000,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
<style lang="scss" scoped > |
|
|
<style lang="scss" scoped> |
|
|
@import "@/assets/scss/modules/visual/communityManage.scss"; |
|
|
@import "@/assets/scss/modules/visual/communityManage.scss"; |
|
|
@import "@/assets/scss/modules/management/list-main.scss"; |
|
|
@import "@/assets/scss/modules/management/list-main.scss"; |
|
|
</style> |
|
|
</style> |
|
|